Restore input stream after connection failure
Posted: 14 May 2008 12:13
Hi everybody
I have this script running:
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
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
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