Answer the question
In order to leave comments, you need to log in
Mediainfo script?
There is a Windows computer, it has a folder with video files (about 30 TB). Mostly files of the same type (codec, resolution, etc.), but there are about 10 files that have a different resolution. Decided to use mediainfo to identify these wrong files. The script looks like this:
set mediainfo=C:\Program Files\MediaInfo\CLI\MediaInfo.exe
set input_folder=C:\test_videos
For %%x in ("%input_folder%\*.*") Do (
"%mediainfo%" --Inform=General;%%FileName%%, "%%~x">>"C:\test_videos\output.csv"
"%mediainfo%" --Inform=Video;%%Width%%:%%Height%%, "%%~x">>"C:\test_videos\output.csv"
)
Answer the question
In order to leave comments, you need to log in
View search plugins of Total Commander, as a rule, there are settings for searching metadata in files
Here is a bash script that will be slightly faster
#!/bin/sh
normalRes="1920x1080"
dir=$1
for f in $(find $dir -name "*.*"); do
res="$(mediainfo '--Inform=Video;%Width%x%Height%' $f)"
if [ "$res" != "$normalRes" ]; then
echo $f
fi
done
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question