Page 1 of 1

auto-restart stream?

Posted: 12 Sep 2013 06:59
by tonj
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?

Re: auto-restart stream?

Posted: 12 Sep 2013 13:35
by Jean-Baptiste Kempf
--http-reconnect ?