[FFmpeg-user] ffmpeg hanging indefinately if streaming connection dies

Rob Hallam ffmpeg at roberthallam.com
Wed Aug 13 16:05:24 EEST 2025


On Wed, 13 Aug 2025 at 12:05, Andrew Wood via ffmpeg-user
<ffmpeg-user at ffmpeg.org> wrote:
>
>
> On 13/08/2025 09:40, Rob Hallam wrote:
> > On
> > As Ferdi mentioned, sharing the full, uncut console output (without
> > errors suppressed) from an instance where you have the problem will
> > help others help you.
> >
> When it hangs it just stops at this:
>
> ffmpeg -i rtsp://192.168.111.2:554 -acodec copy -vcodec copy -metadata
> title=MyVideo /root/video.mp4

Does the timeout option make any difference? [1]

Something may have changed in default behaviour; eg [2] reports a
previously hardcoded 10 seconds.

Cheers,
Rob

[1]: https://ffmpeg.org/ffmpeg-protocols.html#Demuxer
[2]: https://github.com/FFmpeg/FFmpeg/commit/8257d6dda6cfdd62eeeecb00bb551539949b2297


More information about the ffmpeg-user mailing list