Page 1 of 1

FFmpeg: Find invalid video files

Posted: Tue Oct 18, 2016 8:54 pm
by peter_b
On Windows OS:

Code: Select all

@echo off
cls

@echo.
@echo Finding broken AVIs...
@echo.


for /r %%f in (*.avi) do (
    @echo.
    @echo File: "%%f"
    "C:\Program Files\ffmpeg\bin\ffmpeg.exe" -ss 59.9 -v error -i %%f -f null - 2> %%f.log
)

@pause
cls
Tries to seek to 59.9 seconds and lists all errors found while trying to do so.

Quick and dirty hack to debug 1-minute-segment debugging.