View Full Version : Good AVI file compare?
mpucoder
19th July 2011, 17:49
Does anyone know of an avi file compare program that will ignore data that is not relevant to the images? I use automated testing for MuxMan and motion composites are checked by rendering to lossless avi and comparing to known good (ie manually checked) renders. But every new compile, even with changes that could not possibly affect rendered composites, fails on a bit-by-bit comparison, forcing me to visually inspect the renders. I'm guessing that the junk chunks contain random stuff and are the culprit. So is there a program, preferably cli and can set ERRORLEVEL on a mis-compare, that will ignore junk chunks and any other irrelevant data? Or a program to fill junk chunks with zeroes? My only other option at this time is to extract the images as a bmp sequence.
LoRd_MuldeR
19th July 2011, 18:45
Maybe something like:
ffmpeg.exe -i "C:\Sample Clips\akiyo_cif.352x288.avi" -vcodec rawvideo -f rawvideo - 2>NUL | md5.exe
C326EEF702488AF7F726F1E8AB325605 -
mpucoder
19th July 2011, 19:36
That, or something like it, might work since afterward the regular cmp (from linux) could be used to set ERRORLEVEL. thanks
LoRd_MuldeR
19th July 2011, 20:07
This should also do the job:
ffmpeg.exe -i "C:\Sample Clips\A.avi" -vcodec rawvideo -f rawvideo - 2>NUL | md5.exe -n > TMP1
ffmpeg.exe -i "C:\Sample Clips\B.avi" -vcodec rawvideo -f rawvideo - 2>NUL | md5.exe -n > TMP2
set /p RESULT1= < TMP1
set /p RESULT2= < TMP2
if "%RESULT1%"=="%RESULT2%" (
echo OKAY
) else (
echo FAILURE
)
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.