Page 1 of 1

Restore input stream after connection failure

Posted: 14 May 2008 12:13
by rambler82
Hi everybody

I have this script running:

Code: Select all

vlc -I dummy --verbose 2 --loop --sout '#transcode{vcodec=DIV3,vb=512,scale=1}:standard{access=mmsh,mux=asfh,dst=<dest-IP>:8080}' http://source_URL
It has as input source a mjpeg video pushed from a webcam to the server which is transcoded and streamed towards the server IP.
My problem is that when the connection to the webcam (input source) fails i still have a pending VLC object which does not restore the connection as soon as the link is up again. I tried to solve by adding the --loop option but it doesn't work if the period of failure is longer than about 20 minutes.
Is there any way to keep VLC constantly poll for the connection when it is down so that it can be restored??

Thank you very much in advance

Chris

Re: Restore input stream after connection failure

Posted: 21 May 2008 02:39
by ph0t0n
There is the --http-reconnect option you can use, but you really should look into why your webcam drops the connection for such long periods of time in the first place.