How do I run vlc on linux startup?

About encoding, codec settings, muxers and filter usage
rkleemann
Blank Cone
Blank Cone
Posts: 68
Joined: 08 Sep 2004 16:51

How do I run vlc on linux startup?

Postby rkleemann » 31 Aug 2006 16:50

Hi,

I'm trying to setup an initscript to startup vlc for streaming. But when I run the script, vlc fails with a "cannot open DISPLAY". I assume this is because it doesn't have a controlling tty.

Anyone have an initscript that works?

Thanks
Ricardo

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 01 Sep 2006 00:00

Code: Select all

vlc -I dummy -V dummy -A dummy
(basically disable interface, video output and audio output)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

Umberto
Blank Cone
Blank Cone
Posts: 28
Joined: 23 Aug 2006 07:41

Postby Umberto » 01 Sep 2006 09:20

If you start vlc like that, what can you with it after it starts? you don't have control of it and you don't have output.

I did make a way to start vlc from boot, with an unix control socket to connect to, but my problem (see the memory leaking post) is that vlc does work as it should be, accept it's eating all the resources

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 01 Sep 2006 10:25

You can start it with the http interface or telnet interface or rc interface (with the option to listen on a socket and not stdin) to control the process. You can also launch VLC with the -d switch to make it a daemon.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

somjuk
New Cone
New Cone
Posts: 4
Joined: 24 Aug 2006 15:11

Postby somjuk » 04 Sep 2006 23:53

i'am using screen to do it.

Code: Select all

screen -d -m /usr/bin/vlc .... option

Umberto
Blank Cone
Blank Cone
Posts: 28
Joined: 23 Aug 2006 07:41

Postby Umberto » 05 Sep 2006 07:16

You can start it with the http interface or telnet interface or rc interface (with the option to listen on a socket and not stdin) to control the process. You can also launch VLC with the -d switch to make it a daemon.
That doesn't work, in daemon mode, it won't make the control sockets anymore.
i'am using screen to do it.

Code: Select all

screen -d -m /usr/bin/vlc .... option
That doesn't work either, it's the same as the daemon, it won't make the control sockets


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 12 guests