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?
+ Reply to Thread
Results 1 to 4 of 4
-
-
My two cents:
a. iirc. '-v' is deprecated, better use '-loglevel', see: https://www.ffmpeg.org/ffmpeg-all.html#Generic-options -> loglevel for the different log levels
Personally I wouldn't rely on ffmpeg as integrity checker, especially if those files got recovered somehow.
Best way (assuming the files at first are okay) is normally to keep checksums for each file (in example crc) and whenever you want to check the integrity recreate the checksum and compare it to the original check sum.
b. you would need to use a batch script to analyze each file inside a folder, see: https://forum.videohelp.com/threads/356314-How-to-batch-convert-multiplex-any-files-with-ffmpeg
Cu Selurusers currently on my ignore list: deadrats, Stears555, marcorocchini -
Early this year, I wrote a checksum app. I wanted to test it against some of the checksums I was seeing on some websites that were posting them. Anyway. If you need a command line version, I could probably convert this one to that version, it would just dump the text to command line and it would be up to you how you parse/extract them for your purpose, like this guy did here.
https://forum.videohelp.com/attachments/34487-1447518347/vhelp.app.checksum.png
* gui version only
Similar Threads
-
FFMPEG: can open a video file directly on ftp?
By marcorocchini in forum Newbie / General discussionsReplies: 6Last Post: 15th Feb 2015, 02:55 -
checksum integrity and video quality
By yanyancr in forum Newbie / General discussionsReplies: 14Last Post: 24th Jan 2015, 15:49 -
Let ffmpeg show used audio and video codec inside a (.mp4) video file?
By pxstein in forum Newbie / General discussionsReplies: 1Last Post: 26th Jan 2013, 02:47 -
Check the integrity of the video
By wotdefcuk in forum RestorationReplies: 1Last Post: 19th Jan 2013, 01:19 -
Diagnosing video file integrity?
By gaikokujinkyofusho in forum Video ConversionReplies: 0Last Post: 3rd Dec 2010, 23:37