VLC fails to reconnect
Posted: 27 Oct 2015 03:32
Hy everybody this is my fist post here.
I had set up a homemade surveillance system that uses 14.04 ubuntu server with 2.1.6 Rincewind (default settings) vlc to transcode several incoming http streams, and then sends them (again over the http) to the internet. The network is set up properly and there are usually no disturbances of the stream except for the fact that one of those sources will from time to time reset. The stream from that source stops for 2 minutes and 40 seconds. When that happens vlc that is transcoding that stream fails to reconnect.
I had included the "--loop --http-continuous --http-reconnect" options into the transcoding line but it appears vlc will stop trying to reconnect before the incoming stream starts, so that task is just standing there doing nothing. I had made a script that detects (with crontab) if all the vlc tasks are on and restarts a given script if it shuts down. But it doesn't help because that tasks doesn't shut down... it just "sits" there doing nothing.
Now I had been googling about this specific problem, and haven't found any solution, I did saw that other people had posted about this problem, and I had read about why letting the vlc to just try to reconnect like mad 24/7 is a bad idea, but still I'm asking the devs.
Why not include more options with "--http-reconnect" option? For instance I know that my stream is going to be up and running in max 3 minutes. I would really like the option of telling my vlc transcoder to (for instance) keep trying to reconnect for 3 minutes. Or shut down if you fail to reconnect?
And if that is not possible, are there any recommendations or workaround for this problem?
I had set up a homemade surveillance system that uses 14.04 ubuntu server with 2.1.6 Rincewind (default settings) vlc to transcode several incoming http streams, and then sends them (again over the http) to the internet. The network is set up properly and there are usually no disturbances of the stream except for the fact that one of those sources will from time to time reset. The stream from that source stops for 2 minutes and 40 seconds. When that happens vlc that is transcoding that stream fails to reconnect.
I had included the "--loop --http-continuous --http-reconnect" options into the transcoding line but it appears vlc will stop trying to reconnect before the incoming stream starts, so that task is just standing there doing nothing. I had made a script that detects (with crontab) if all the vlc tasks are on and restarts a given script if it shuts down. But it doesn't help because that tasks doesn't shut down... it just "sits" there doing nothing.
Now I had been googling about this specific problem, and haven't found any solution, I did saw that other people had posted about this problem, and I had read about why letting the vlc to just try to reconnect like mad 24/7 is a bad idea, but still I'm asking the devs.
Why not include more options with "--http-reconnect" option? For instance I know that my stream is going to be up and running in max 3 minutes. I would really like the option of telling my vlc transcoder to (for instance) keep trying to reconnect for 3 minutes. Or shut down if you fail to reconnect?
And if that is not possible, are there any recommendations or workaround for this problem?