ffmpeg -v error -i input.mp4 -f null -

Category: Media & Conversion

ffmpeg -v error -i input.mp4 -f null -

Test whether a video decodes without errors

Decodes the whole file and discards the result, so no output file is produced. -v error hides normal chatter and shows only real errors, while -f null - writes to the null muxer. An exit code of 0 means the file decodes cleanly.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.