VLC fails to reconnect

*nix specific usage questions
klesk4ever
New Cone
New Cone
Posts: 2
Joined: 27 Oct 2015 02:41

VLC fails to reconnect

Postby klesk4ever » 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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLC fails to reconnect

Postby Rémi Denis-Courmont » 27 Oct 2015 07:27

Because nobody wrote code for that.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

klesk4ever
New Cone
New Cone
Posts: 2
Joined: 27 Oct 2015 02:41

Re: VLC fails to reconnect

Postby klesk4ever » 27 Oct 2015 07:58

:D

Well somebody did wrote code for --http-reconnect, and maybe I can "tweak" that code to suit my system.

Any advice on where to look for?

Ultrapower
Blank Cone
Blank Cone
Posts: 72
Joined: 11 Feb 2013 00:28

Re: VLC fails to reconnect

Postby Ultrapower » 22 Dec 2015 01:17

http-reconnect Option is not working here too.


Are there other possibilities for reconnection to streams ?


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 28 guests