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

Andrew Wood andrewjameswood at ymail.com
Tue Aug 12 23:35:55 EEST 2025


Ive just upgraded to ffmpeg 5.1.6 (the version that comes with Debian 
12) from an older version. A command which has worked fine for years 
recording a camera rtsp stream and automatically exiting if the camera 
connection dies has now started hanging forever if the camera stops 
responding.

Has something been altered in ffmpeg and is there a command option to 
make it work as before? I tried -xerror but that is causing it to exit 
due to 'Non-monotonous DTS in output stream 0:0; previous: 0, current: 
0; aborting' even when the stream is working

Thanks




More information about the ffmpeg-user mailing list