[FFmpeg-user] Verify integrity of a video file?

Ben Stover bxstover at yahoo.co.uk
Sat Nov 14 10:46:55 CET 2015


I want to verify (on Win 7) the integrity of a video file (e.g. *.avi or *.mp4 or *.mkv)

Therefore I enter according to some suggestions:

ffmpeg -i videofile.avi -f null -

This seems to work. However a lot of "normal" stuff is outputted as well.

I only want an output message in case of error.

As far as I read the "-v error" should do the trick:

ffmpeg -v error -i videofile.avi -f null -

but this yields absolutely NEVER an output (even if I verify a non-video *.png or *.log file).

So how else can I get only-a-short-error-message-in-case-of error?

Just a second question:

Is it possible to verify with ONE ffmpeg command all *.avi/video files in a directory tree?

Something like that:

ffmpeg -i:recursivedir D:\videos\*.avi -f null -

or do I have to search for all videofiles in dir tree beforehand and enter the command for each file separately?

Thank you







More information about the ffmpeg-user mailing list