auto-restart stream?

*nix specific usage questions
tonj
Blank Cone
Blank Cone
Posts: 18
Joined: 08 Jun 2011 10:42

auto-restart stream?

Postby tonj » 12 Sep 2013 06:59

I'm streaming video from an axis ip cam using vlc-2.0.3-6 on a centos6 server with the following command
cvlc http://user:pass@<cam-ip-address>/axis-cgi/mjpg/video.cgi? --sout '#transcode{vcodec=FLV1,vb=512,acodec=mpga,ab=64,samplerate=44100}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8082/cam.flv}'
The stream works fine and it can run for hours but sometimes it just stops for no reason and the console says: 'connection reset by peer'. I don't blame vlc, I blame the camera, but Is there a way or a command that will get vlc to auto-restart the stream?

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: auto-restart stream?

Postby Jean-Baptiste Kempf » 12 Sep 2013 13:35

--http-reconnect ?
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 22 guests