Controlling a VLC streaming server through rc interface

*nix specific usage questions
jucas_lo
New Cone
New Cone
Posts: 3
Joined: 24 Apr 2009 15:13

Controlling a VLC streaming server through rc interface

Postby jucas_lo » 04 May 2009 14:24

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Controlling a VLC streaming server through rc interface

Postby Jean-Baptiste Kempf » 05 May 2009 14:23

Are you allowed to bind localhost:8092 ?
Have you tried webinterface?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

jucas_lo
New Cone
New Cone
Posts: 3
Joined: 24 Apr 2009 15:13

Re: Controlling a VLC streaming server through rc interface

Postby jucas_lo » 06 May 2009 11:00

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)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Controlling a VLC streaming server through rc interface

Postby Jean-Baptiste Kempf » 06 May 2009 12:27

you can get the request page to do that... What are the messages?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 10 guests