Page 1 of 1

Is there a way to have max HTTP reconnects for a stream?

Posted: 13 Nov 2018 16:21
by shortenedpiston
I understand --http-reconnect and --no-http-reconnect determine whether or not to reconnect to an HTTP stream if disconnected. Is there any way to say "max reconnects" so that the stream is aborted after X reconnects? It would really help to be able to determine a stream has ended, say if you can't reconnect after 10 times it's probably over. Currently it seems like you either have to never reconnect or always reconnect.

Re: Is there a way to have max HTTP reconnects for a stream?

Posted: 13 Nov 2018 17:32
by Rémi Denis-Courmont
In VLC 3.0, reconnection is automatic based on the size of the stream.

Re: Is there a way to have max HTTP reconnects for a stream?

Posted: 13 Nov 2018 18:47
by shortenedpiston
In VLC 3.0, reconnection is automatic based on the size of the stream.

Thanks, Rémi. It does still seem like --no-http-reconnect and --http-reconnect will override this though. Is there a way I can tell VLC to give up on a stream once it starts getting too many "http stream error: cannot connect"? Currently it seems like it will just retry forever, and using --no-http-reconnect means it will never retry which could end the stream prematurely if there's a network hiccup.