Re(2): Running vlc from another machine.
From: Bob Proulx b...@proulx.com Date: Tue, 1 Jan 2013 15:48:11 -0700 I recommend looking at the vlc network streaming interface. An overview is here. http://www.videolan.org/doc/streaming-howto/en/ch01.html This question of whether to run vlc via incrond or as a stream processor appears to be analogous to the choice of running ftpd under inetd or standalone. The cursory advice I recall is that, when multiple services are offered, all under inetd is more efficient; when only a few services are offered, standalone servers are more efficient. Specifics of the machine should also be relevant. In a lower capacity machine, VLC streaming could impair processes executed more frequently. ... Peter E. -- 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12 Tel +13606390202 Bcc: peasthope at shaw.ca http://carnot.yi.org/ http://members.shaw.ca/peasthope/index.html#Itinerary -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/171057899.34906.26600@cantor.invalid
Re (2): Running vlc from another machine.
From: Bob Proulx b...@proulx.com Date: Tue, 1 Jan 2013 15:48:11 -0700 I recommend looking at the vlc network streaming interface. Will do. Thanks. My intention was to add sound interpretation capability to my task server, http://142.103.107.138/NetworksPage.html#incron;, with this case. *.WAV ) DISPLAY=:0 vlc file:///home/peter/$1 ;; Or this. *.WAV ) cvlc file:///home/peter/$1 ;; (Still haven't found any explanation of cvlc.) The iceweasel cases work with no problem; but any WAV plays endlessly and appears to keep a process for each interpretation. According to the incron documentation, IN_CLOSE_WRITE is the trigger for a file being written. vlc shouldn't need to write the file; it should only be read. So how are vlc processes after the first started? Any ideas are welcome. Regards,... Peter E. -- 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12 Tel +13606390202 Bcc: peasthope at shaw.ca http://carnot.yi.org/ http://members.shaw.ca/peasthope/index.html#Itinerary -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/171057891.35820.30746@cantor.invalid
Re: Running vlc from another machine.
Chris Davies wrote: Ssh is usually (almost always, by default) configured to carry the display across the connection transparently, Bob Proulx b...@proulx.com wrote: Never by default. Yes. My mistake, sorry. It's one of the things I change so early on - along with setting up certificate based logins - that I forget it's not automatically enabled. Agreed. But the natural follow-on to this would be to use the DISPLAY to set to a remote display such as: DISPLAY=otherhost.example.com:0 vlc *.WAV And that will run into the issue that by default X Window servers these days no longer listen to the network for connections. Agreed. Fortunately ssh has options to transport the DISPLAY across the encrypted session, and mostly it all just works. Chris -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/dkfdr9x4io@news.roaima.co.uk
Re (2): Running vlc from another machine.
* From: Chris Davies chris-use...@roaima.co.uk * Date: Tue, 01 Jan 2013 02:11:14 + cvlc *.WAV Documentation for cvlc is sparce. man cvlc invokes man vlc where the only mention is vlc, qvlc, svlc, nvlc, rvlc, cvlc - the VLC media player. Then, SEE ALSO Online documentation: http://www.videolan.org/doc/;. In the first half dozen links from googling site:videolan.org/doc/ cvlc there are 0 occurances of cvlc. Does anyone know of documentation for cvlc, other than source code that is? Thanks,... Peter E. -- 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12 Tel +13606390202 Bcc: peasthope at shaw.ca http://carnot.yi.org/ http://members.shaw.ca/peasthope/index.html#Itinerary -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/171057890.35932.42638@cantor.invalid
Fwd: Re (2): Running vlc from another machine.
Forwarding back to list... -- Forwarded message -- From: peasth...@shaw.ca Date: Mon, Dec 31, 2012 at 11:50 PM Subject: Re (2): Running vlc from another machine. To: stor...@gmail.com Cc: peasth...@shaw.ca From: Chris Davies chris-use...@roaima.co.uk Date: Tue, 01 Jan 2013 02:11:14 + I'm going to assume (dangerously) that since you're running vlc rather than cvlc you don't really mean console but local X Windows screen. Yes, I should have said, In a local LXTerminal, Don't run telnet, use ssh instead. OK, thanks. DISPLAY=:0 vlc *.WAV It produces sound correctly and a flock of messages. peter@dalton:~$ DISPLAY=:0 vlc *.WAV VLC media player 1.1.3 The Luggage (revision exported) Warning: call to srand(1357015068) Warning: call to rand() Blocked: call to unsetenv(DBUS_ACTIVATION_ADDRESS) Blocked: call to unsetenv(DBUS_ACTIVATION_BUS_TYPE) Warning: call to signal(13, 0x1) Blocked: call to setlocale(6, ) Blocked: call to sigaction(17, 0xb71780d4, 0xb7178048) Warning: call to srand(1357015068) Warning: call to rand() Warning: call to srand(1357015068) Warning: call to rand() Warning: call to srand(1357015068) Warning: call to rand() Warning: call to srand(1357015068) cvlc *.WAV Correct sound again and more messages. peter@dalton:~$ cvlc *.WAV VLC media player 1.1.3 The Luggage (revision exported) Warning: call to srand(1357015446) Warning: call to rand() Blocked: call to unsetenv(DBUS_ACTIVATION_ADDRESS) Blocked: call to unsetenv(DBUS_ACTIVATION_BUS_TYPE) [0x9e0b51c] inhibit interface error: Failed to connect to the D-Bus session daem on: /usr/bin/dbus-launch terminated abnormally with the following error: Autolau nch error: X11 initialization failed. [0x9e0b51c] main interface error: no suitable interface module [0x9e08d44] main interface error: no suitable interface module [0x9d618fc] main libvlc error: interface globalhotkeys,none initialization fai led [0x9e08d44] dummy interface: using the dummy interface module... Thanks for the help, ... Peter E. -- 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12 Tel +13606390202 Bcc: peasthope at shaw.ca http://carnot.yi.org/ http://members.shaw.ca/peasthope/index.html#Itinerary -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAKmZw+ZBijSON+uTQJdAyaZkRDX_O7j8jd_z9j=gb7dz3hh...@mail.gmail.com
Fwd: Re (2): Running vlc from another machine.
Forwarding back to the list... -- Forwarded message -- From: peasth...@shaw.ca Date: Mon, Dec 31, 2012 at 11:54 PM Subject: Re (2): Running vlc from another machine. To: stor...@gmail.com Cc: peasth...@shaw.ca From: Brad Alexander stor...@gmail.com Date: Mon, 31 Dec 2012 22:14:01 -0500 Telnet? Aside from the security concerns, you can set up ssh ... OK, thanks. vlc has some sort of streaming interface. ... Here are a couple of links ... Will read. Thanks for the help,... Peter E. -- 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12 Tel +13606390202 Bcc: peasthope at shaw.ca http://carnot.yi.org/ http://members.shaw.ca/peasthope/index.html#Itinerary -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/cakmzw+zkrbrmztq9va2tv9lmykpx77o8jyctavun3xedc3v...@mail.gmail.com
Re: Running vlc from another machine.
Chris Davies wrote: peasth...@shaw.ca wrote: At the console, peter@dalton:~$ vlc *.WAV starts a vlc instance and produces audio. The same command via a telnet connection is not so successful. Don't run telnet, use ssh instead. Agreed. Ssh is usually (almost always, by default) configured to carry the display across the connection transparently, Never by default. It would be a security issue. Think keyboard loggers and other nefarious things. If you want the X Window display forwarded then you would need to enable it explicitly. (You may have enabled it either in your $HOME/.ssh/config for all connections or edited your system /etc/ssh/ssh_config enabling it globally but it isn't enabled by default.) Command line: ssh -X other.example.com Or long form: ssh -o ForwardX11=yes other.example.com Or in the ~/.ssh/config file for a particular host: Host other.example.com ForwardX11 yes Note that while this works to forward the display that the sound from vlc won't be forwarded. The sound will still emit from the underlying host sound system. If that is fine great. I haven't done so but vlc has a streaming interface that I have been wanting to try out. Without having used it I think the streaming interface would probably be the superior solution because it would stream video and sound together to your remote device. Also, vlc doesn't recognize the display as iceweasel does. peter@dalton:~$ vlc --display=:0 *.WAV vlc: unknown option or missing mandatory argument `--display=:0' DISPLAY=:0 vlc *.WAV or export DISPLAY=:0 vlc *.WAV or cvlc *.WAV Agreed. But the natural follow-on to this would be to use the DISPLAY to set to a remote display such as: DISPLAY=otherhost.example.com:0 vlc *.WAV And that will run into the issue that by default X Window servers these days no longer listen to the network for connections. In the old days those were wide open. But these sayd the -nolisten tcp is passed to X on the command line. $ ps -ef | grep X | grep --color -e -nolisten tcp That configuration is a good safe configuration. But it means that X is listening on the localhost 127.0.0.1 address only and won't be available for network connections. See this file for details: /etc/X11/xinit/xserverrc On a local friendly private network behind a firewall or not connected to a hostile network it is probably okay to remove that option and open the machine up for throwing the display from machine to machine. Note that then the additional thing you would need is to use 'xhost' to enable other systems to connect to your display. This still operates in the traditional manor that anyone who has used it before will remember. Read the man page. But if you have decided to go this route then you are probably okay with lowered security in which case most people tend to use xhost + to keep it simple regardless of the security implications. I recommend looking at the vlc network streaming interface. Bob signature.asc Description: Digital signature
Running vlc from another machine.
At the console, peter@dalton:~$ vlc *.WAV starts a vlc instance and produces audio. The same command via a telnet connection is not so successful. peter@dalton:~$ vlc *.WAV VLC media player 1.1.3 The Luggage (revision exported) Warning: call to srand(1356965514) Warning: call to rand() Blocked: call to unsetenv(DBUS_ACTIVATION_ADDRESS) Blocked: call to unsetenv(DBUS_ACTIVATION_BUS_TYPE) [0x9deee24] inhibit interface error: Failed to connect to the D-Bus session daem on: /usr/bin/dbus-launch terminated abnormally with the following error: Autolau nch error: X11 initialization failed. [0x9deee24] main interface error: no suitable interface module [0x9ded9c4] main interface error: no suitable interface module [0x9d478fc] main libvlc error: interface globalhotkeys,none initialization fai led [0x9dee3c4] qt4 interface error: Could not connect to X server [0x9dee3c4] main interface error: no suitable interface module [0x9d478fc] main libvlc error: interface default initialization failed Also, vlc doesn't recognize the display as iceweasel does. peter@dalton:~$ vlc --display=:0 *.WAV VLC media player 1.1.3 The Luggage (revision exported) vlc: unknown option or missing mandatory argument `--display=:0' Try `vlc --help' for more information. Does anyone have a clever way to make vlc cooperate? Thanks, ... Peter E. -- 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12 Tel +13606390202 Bcc: peasthope at shaw.ca http://carnot.yi.org/ http://members.shaw.ca/peasthope/index.html#Itinerary -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/171057759.35371.26211@cantor.invalid
Re: Running vlc from another machine.
peasth...@shaw.ca wrote: At the console, peter@dalton:~$ vlc *.WAV starts a vlc instance and produces audio. I'm going to assume (dangerously) that since you're running vlc rather than cvlc you don't really mean console but local X Windows screen. The same command via a telnet connection is not so successful. Don't run telnet, use ssh instead. Ssh is usually (almost always, by default) configured to carry the display across the connection transparently, so if you must use telnet you'll have to handle that in some other way. Also, vlc doesn't recognize the display as iceweasel does. peter@dalton:~$ vlc --display=:0 *.WAV vlc: unknown option or missing mandatory argument `--display=:0' DISPLAY=:0 vlc *.WAV or export DISPLAY=:0 vlc *.WAV or cvlc *.WAV Chris -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/27t9r9x576@news.roaima.co.uk