I know this question has been asked infinite times, but it has not been answered with a decent answer infinite times as well.
How to make ffmpeg keep working even if source becomes unavailable? VLC waits until connection comes back again, why ffmepg does not have such functionality?
I have tried with:
-reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_delay_max 4962 -timeout 2000000000
but none works as expected. FFmpeg quits after only few seconds. I don't want to restart ffmpeg if connection interrupts because I need output HLS fragments to be available. Restarting ffmpeg makes fragments to be overwritten from the beginning.