Page 1 of 1
VLC without x on Linux
Posted: 25 Jul 2004 14:59
by toner303
Hi,
I want to start a VLC to dump a stream from a VLS. But I don't know how to start the Client without a x-server... It alway says that it does not connect to the x server.
When I start the x server, everthing works fine.
I think it's a little bit to much that I have to start the x server to have VLC running perfectly... If the X crashs VLC stops dumping...
Can I start VLC dumping a stream without X?
regards,
Tom
Posted: 27 Jul 2004 04:29
by The DJ
vlc -I rc -V dummy
-I rc = commanline interface
-V dummy = no video output
Posted: 31 Jul 2004 10:49
by toner303
Thanks, it works fine for me in runlevel 3 and when I start it manualy. But when I try it to start with a script (for cronjobs) like this :
Code: Select all
#!/bin/sh
vlc -I rc -V dummy -v udp:@224.0.0.1:1234 --sout '#duplicate{dst=std{access=file,mux=ps,url="/tmp/test.mpeg"}}' &
sleep 15
killall vlc
VLC writes the following :
Code: Select all
[00000161] main input: playlist item `udp:@224.0.0.1:1234'
[00000162] rc interface warning: fd 0 is not a TTY
[00000161] mp4 input warning: MP4 plugin discarded (unseekable)
[00000161] avi input warning: avi module discarded (invalid header)
[00000161] asf input warning: ASF v1.0 plugin discarded (not a valid file)
Gdk-WARNING **: locale not supported by C library
Gtk-WARNING **: cannot open display:
[00000166] access_output_file private: Open: name:`/home/recorder/test.mpeg'
[00000167] mux_ps private: Open
[00000161] mpeg_system input warning: duplicate packet received for PID 0 (counter 15)
[00000161] mpeg_system input warning: first packet for PID 400 received by TS demux
Where is the difference between the manual call on the commandline or the execution by the script?!
thanks a lot for your help
Tom
Posted: 31 Jul 2004 14:17
by zorglub
Hello,
the rc interface is not happy because your script is not attached to a TTY,
Either use the dummy interface ( -I dummy ) if you don't need to control vlc while it runs or use the --fake-tty option with the RC interface
Posted: 31 Jul 2004 18:56
by The DJ
And next version will have a primitive daemon mode...
Posted: 08 Mar 2007 16:49
by Riviera
In case anyone is having this problem at the moment. The command line option is --rc-fake-tty.
I don't know whether this has changed since the original post was made, but it took me a few minutes to find it so I thought I'd leave a note here.