[FFmpeg-user] Can ffmpeg be set to wait if a stream stop happens?
barsnick at gmx.net
Thu Apr 22 15:22:17 EEST 2021
On Wed, Apr 21, 2021 at 16:59:10 +0200, Bo Berglund wrote:
> But what I have noticed lately is that sometimes the stream it downloads from
> stops feeding data for a few seconds (don't know for how long) and it seems like
> ffmpeg at that times finishes up the output file and exits.
ffmpeg shouldn't interrupt if the input stream just "stalls". It will
interrupt if the stream server actually closes the connection. With
HLS, where the URLs to open continuously change, ffmpeg will retry a
certain number of times (IIRC) before giving up.
> Is there a way to tell ffmpeg to stay online for that full amount even if the
> stream pauses for some reason?
I suspect it isn't "pausing". It would be practical to see a complete
log output, of course. (You can generate them by using the "-report"
option, but they may become large, unless you reduce the default report
More information about the ffmpeg-user