VLC without x on Linux

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
toner303
New Cone
New Cone
Posts: 7
Joined: 25 Jul 2004 14:52
Location: Germany
Contact:

VLC without x on Linux

Postby toner303 » 25 Jul 2004 14:59

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

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 27 Jul 2004 04:29

vlc -I rc -V dummy

-I rc = commanline interface
-V dummy = no video output
Don't use PMs for support questions.

toner303
New Cone
New Cone
Posts: 7
Joined: 25 Jul 2004 14:52
Location: Germany
Contact:

Postby toner303 » 31 Jul 2004 10:49

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

zorglub
Cone that earned his stripes
Cone that earned his stripes
Posts: 482
Joined: 21 Nov 2003 02:53
Location: Paris - France
Contact:

Postby zorglub » 31 Jul 2004 14:17

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
Zorglub
Clément Stenac

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 31 Jul 2004 18:56

And next version will have a primitive daemon mode...
Don't use PMs for support questions.

Riviera
New Cone
New Cone
Posts: 3
Joined: 08 Mar 2007 16:06

Postby Riviera » 08 Mar 2007 16:49

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.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 17 guests