![]() log file"Ĭall :colour 0a "Verifying complete!" & echo. REM ffmpeg -v error -i "%%G" -map 0:1 -f null - 2>"%%G.log"Ĭall :colour 0e "This can be found in the video's. Mplayer -tsprobe 10000000 -benchmark -forcedsubsonly -mc 0 -nosound -nosub -noautosub -vo null "%%G" 2>"%%G.log" REM Confirm if already checked or not from log fileįor /F "usebackq tokens=*" %%s in ("integritychecked.log") do ( REM Append date and time to integritychecked.log fileįor /f "tokens=1-9 delims=/. Please ensure mplayer.exe is accessible in PATH.Įcho Either run this script from the desired (parent) directory or specify the directory when running this script. if not "%1" equ "" (įor /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (Įcho This script with validate video files in the folder/sub-folders. Using the below (.bat) script will recursively check video files and save validated ones in a integritychecked.log file (to skip next time its run). However, for a full video file check, you can use mplayer.exe. Īlthough this is an old post, and I'm sure there's other ways to valid video files now. Video.mp4: Invalid data found when processing inputĪdjust the for loop to check only specific extensions or files: for i in *.mkv do. OK => 'How To Be A Gardener 1x1 - Know Your Plot.mp4' The actual ffprobe errors can be shown by removing the 2>/dev/null redirection: for i in * do ffprobe -v error "$i" & echo "OK => '$i'" || echo "ERROR => '$i'" done OK => 'How To Be A Gardener 1x8 - The Gardening Year.mp4' OK => 'How To Be A Gardener 1x7 - The Productive Garden.mp4' OK => 'How To Be A Gardener 1圆 - Problem Solving.mp4' OK => 'How To Be A Gardener 1x5 - Caring For Your Garden.mp4' ![]() ![]() OK => 'How To Be A Gardener 1x4 - Practical Planting.mp4' OK => 'How To Be A Gardener 1x3 - Planting Schemes & Themes.mp4' OK => 'How To Be A Gardener 1x2 - Understand Plants.mp4' Result: OK => 'How To Be A Gardener 1x1 - Know Your Plot.mp4' mp4 file by running touch video.mp4 to simulate a corrupted video. for i in * do ffprobe -v error "$i" 2>/dev/null & echo "OK => '$i'" || echo "ERROR => '$i'" done This one liner using ffprobe checks each input and returns either OK or ERROR, followed by the name of the file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |