FFmpeg: Find invalid video files

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
peter_b
Chatterbox
Posts: 371
Joined: Tue Nov 12, 2013 2:05 am

FFmpeg: Find invalid video files

Post 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.
Post Reply