Page 1 of 1

Controlling a VLC streaming server through rc interface

Posted: 04 May 2009 14:24
by jucas_lo
Hi

I would like to know how can I control a VLC through rc or telnet interface when using the daemon flag (-d or --daemon).

The only thing I really need is reliable way to stop and restart the streaming server, when the vlc instance is running in the background.

I've tried something like this:

Code: Select all

cvlc -d --quiet --extraintf rc --rc-host localhost:8092 --color v4l:// :v4l-vdev=/dev/video0 --sout '#transcode{vcodec=MJPG,vb=8000,scale=1}:std{access=http,mux=ts,dst=0.0.0.0:1234/webcam.mjpeg}:sout-all
But that doesn't work...

Strangely enough when I supress the -d option, I can do telnet on the port and control VLC, but when I use the -d option, I always get a Connection Refused

I would appreciate all your suggestions.
Anything that lets me stop and start the streaming remotely will work it doesn't need to be an specific interface. But I need it to run as a daemon, in the background.

thanks

Edit: I'm using OpenSuse 10.3, installed VLC from VideoLan Repositories using version 0.9.9a Grishenko

Re: Controlling a VLC streaming server through rc interface

Posted: 05 May 2009 14:23
by Jean-Baptiste Kempf
Are you allowed to bind localhost:8092 ?
Have you tried webinterface?

Re: Controlling a VLC streaming server through rc interface

Posted: 06 May 2009 11:00
by jucas_lo
Thanks for your answer.

I haven't tried the web interface, but I need to be able to control (basically just start and stop) the server from command line, and I don't know if I can do that with the web interface, is it possible?

(And yes I'm allowed to bind to that port)

Re: Controlling a VLC streaming server through rc interface

Posted: 06 May 2009 12:27
by Jean-Baptiste Kempf
you can get the request page to do that... What are the messages?