Attempting to Analyze ~1000 Movies. It will stop after a few

Here is a small excerpt that will help you. Simply saveas whatever.cmd and drag a file you want to check. Oh yeah, you need ffmpeg.exe in the same folder as batch file.

@ECHO OFF

TITLE IntegrityCheck

CD /D %~DP0

IF NOT EXIST ffmpeg.exe ECHO ffmpeg.exe not found! & ECHO Hit a key to exit. & PAUSE>NUL & EXIT

IF [%1] EQU [] ECHO. & ECHO ERROR! You must drag over a file. & PAUSE>NUL & EXIT
IF [%2] NEQ [] IF [%Total%] EQU [] ECHO. & ECHO Sorry, you may only drag over one file at a time. & PAUSE>NUL & EXIT
IF [%Total%] EQU [] CALL:CheckIntegrity "%~1" "%~1.ErrorsDetected.log"

:CheckIntegrity
ECHO Analyzing %~nx1

ffmpeg.exe -v error -i "%~1" -f null - >"%~1.ErrorsDetected.log" 2>&1

IF %~Z2 EQU 0 DEL %2
IF EXIST "%~1.ErrorsDetected.log" COLOR 4F & ECHO ERROR(S) DETECTED !!! Look at the log file for a detailed report. & PAUSE>NUL & EXIT

COLOR 2F & ECHO. & ECHO All file(s) passed integrity check !! & PAUSE>NUL & EXIT
2 Likes