Eu já me perguntei sobre isso e ffmpeg
não oferece uma maneira fácil de fazer isso. Com base no feedback que recebi sobre o Lista de discussão do FFmpeg , você pode usar a opção global
-err_detect explode
Esta opção parece não funcionar em todos os casos. Veja ffmpeg -h full
para a lista de opções:
-f_err_detect <flags> .D.... set error detection flags (deprecated; use err_detect, save via avconv)
crccheck .D.... verify embedded CRCs
bitstream .D.... detect bitstream specification deviations
buffer .D.... detect improper bitstream length
explode .D.... abort decoding on minor error detection
careful .D.... consider things that violate the spec and have not been seen in the wild as errors
compliant .D.... consider all spec non compliancies as errors
aggressive .D.... consider things that a sane encoder shouldnt do as an error
-err_detect <flags> .D.... set error detection flags
crccheck .D.... verify embedded CRCs
bitstream .D.... detect bitstream specification deviations
buffer .D.... detect improper bitstream length
explode .D.... abort decoding on minor error detection
careful .D.... consider things that violate the spec and have not been seen in the wild as errors
compliant .D.... consider all spec non compliancies as errors
aggressive .D.... consider things that a sane encoder shouldnt do as an error