Restore input stream after connection failure

About encoding, codec settings, muxers and filter usage
rambler82
New Cone
New Cone
Posts: 2
Joined: 14 May 2008 12:02

Restore input stream after connection failure

Postby rambler82 » 14 May 2008 12:13

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

ph0t0n
Blank Cone
Blank Cone
Posts: 81
Joined: 02 Apr 2008 22:36
VLC version: 0.8.6f
Operating System: Mac OS X 10.4.11
Location: Norway

Re: Restore input stream after connection failure

Postby ph0t0n » 21 May 2008 02:39

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.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 9 guests