Thiago Benine , see step by step how I would do it (considering that the video files are in a folder only in C:\videos
and that the names of the files are without space and without accent the Bulk Rename Utility if you need to standardize the file names at once):
Create a list in a text document with ALL the names of video files:
Open MS-DOS, navigate to the folder with the videos ( cd C:\videos
for example)
Still in MS-DOS, export the name of .mp4 files using:
-
dir *.mp4 /b >>arquivos_de_video.txt
With the names of video files in C:\videos\arquivos_de_video.txt
, download the FFMPEG for Windows.
Open the file C:\videos\arquivos_de_video.txt
with a good text editor (I recommend Sublime Text 3 , because with it, it is possible click the middle mouse button and drag by selecting MULTIPLE lines) and enter the command line of FFMPEG
to check EACH video file:
-
ffmpeg.exe -v error -i video.mp4 -f null - >video.txt 2>&1
Rename C:\videos\arquivos_de_video.txt
to C:\videos\verifica_videos.bat
(extension .bat
)
Execute via MS-DOS
your new .bat file: C:\videos\verifica_videos.bat
Example of how C:\videos\verifica_videos.bat
would look like:
ffmpeg.exe -v error -i video1.mp4 -f null - >video1_erro.txt 2>&1
ffmpeg.exe -v error -i video2.mp4 -f null - >video2_erro.txt 2>&1
ffmpeg.exe -v error -i video3.mp4 -f null - >video3_erro.txt 2>&1
(...)
This is obviously the simplest example that could be given. The ideal would be to program (C # or other language) a faster and more dynamic output.
Do not forget to correctly enter the path of ffmpeg.exe
downloaded in step 2)
.
Do not forget to also change the name of the error file video.txt
to nome_do_video_erro.txt
so the files errors will be displayed in the same order in your Windows Explorer.
Unfortunately the verification time (with or without FFMPEG) is pretty much the same as when converting a video, so 10,000 videos can take a long time.
SUMMARY
Create a list of videos in a text document.
Edit the text file with the names of the videos with a good text editor (Sublime, for example) and insert the FFMPEG check command line in each line of the text file.
Rename the list of video files to the .bat extension
Run the .bat file via MS-DOS