On Thu, 14 Aug 2025 at 19:19, Mark Filipak via ffmpeg-user <ffmpeg-user@ffmpeg.org> wrote: > > On 14/08/2025 02.55, Paul B Mahol via ffmpeg-user wrote: > > see -xerror flag ? > > > > On Wed, Aug 13, 2025 at 10:08 PM Mark Filipak <markfilipak.i...@gmail.com> > > wrote: > > > >> Here are two notices out of hundreds like them. They are in an FFREPORT > >> log. > >> > >> ===== > >> [h264 @ 00000000198b8040] concealing 7744 DC, 7744 AC, 7744 MV errors in > >> P frame > >> > >> [vist#0:0/h264 @ 0000000006fc2e00] [dec:h264 @ 0000000005a0fc80] corrupt > >> decoded frame > >> ===== > >> > >> FFmpeg continued as though nothing had happened. The resulting video had > >> some seriously f'ed-up frames. > >> > >> The lines above are seen only if one makes and views an FFREPORT log. > >> > >> To state this clearly: When such errors happen, I want FFmpeg to tell > >> me, and I want FFmpeg to immediately stop, abort. How can I get FFmpeg > >> to do that? to do what I want? to stop and tell me? > >> see -xerror flag ? > > I tried it. It's too blunt an instrument, Paul. It aborts on even > trivial errors. Let me explain...
There are also various flags to the err_detect option [1] which could be tried; and -max_error_rate, but that only lets you set a threshold for detection after the fact [2]. I haven't seen a way to get ffmpeg to exit on a specific error, or to ignore a specific error. If the monotonic DTS error is i) the sole other error reported and ii) you definitely don't care about it: it would be possible to modify the source and recompile ffmpeg to stop it doing so. I am no expert in either C or the ffmpeg source so I would welcome correction, but the conditional on line 188 of ffmpeg_mux.c [3] looks like the one you would need to remove. Alternatively, you could go the other way: find "corrupt decoded frame" and add a line there to cause ffmpeg to always exit if so. Cheers, Rob [1]: https://ffmpeg.org/ffmpeg-formats.html#toc-Format-Options [2]: https://ffmpeg.org/ffmpeg-all.html#toc-Advanced-options [3]: https://github.com/FFmpeg/FFmpeg/blob/a7c8c4ee1ce1f0d66953ec1d924ab9c48ee14199/fftools/ffmpeg_mux.c#L188 _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".