Skip to content

Instantly share code, notes, and snippets.

@garygan89
Created February 9, 2023 18:34
Show Gist options
  • Save garygan89/1458ba1d7d5dd0408f2541dff0d0b9e1 to your computer and use it in GitHub Desktop.
Save garygan89/1458ba1d7d5dd0408f2541dff0d0b9e1 to your computer and use it in GitHub Desktop.
Check video for corruption using ffmpeg on Windows
@echo off
set "filtro=%1"
if [%filtro%]==[] (
set "filtro=*.mp4"
)
for /R %%a in (%filtro%) do call :doWork "%%a"
PAUSE
exit /B
:doWork
C:\Programs\ffmpeg-20200206-343ccfc-win64-static\bin\ffmpeg.exe -v error -i %1 -f null - > "%~1.log" 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment