I have created a template for MediaInfo to output specific information about the video files inside a specific folder. The output will then be written to a txt-file.
This is the command I Use:
Code: Select all
for %%A in (*.mkv) do C:\System\Mediainfo\MediaInfo.exe --Inform=file://C:\System\Mediainfo\template1.txt %%A >> Output1.txt
for %%A in (*.jpg) do C:\System\Mediainfo\MediaInfo.exe --Inform=file://C:\System\Mediainfo\template2.txt %%A >> Output2.txt
Code: Select all
General;--------------------------------------------------------------------\n%fileCounter%\n--------------------------------------------------------------------\n\nFile-Name...............: %CompleteName%\nFile-Size...............: %FileSize/String%\nDuration................: %Duration/String%\nOverall-Bitrate.........: %OverallBitRate/String%\n
Video;Video-Codec.............: %Format/String%\nVideo-Bitrate...........: %BitRate_Maximum/String%\nVideo-Auflösung.........: %Width%x%Height%\nVideo-Size..............: %StreamSize/String%\n
Audio;Audio-Langauge %audioCounter%........: %Language/String%\nAudio-Format %audioCounter%..........: %Format/String% (%CodecID%)\nAudio-Bitrate %audioCounter%.........: %BitRate/String% (%SamplingRate/String%)\nAudio-Size %audioCounter%............: %StreamSize/String%\n
Text;Text-Bitrate %textCounter%..........: %Language/String%\nText-Codec %textCounter%............: %Format/String%\nText-Bitrate %textCounter%..........: %BitRate/String%\nText-Size %textCounter%.............: %StreamSize/String%\n
File_End;\n
Code: Select all
General;--------------------------------------------------------------------\n%fileCounter%\n--------------------------------------------------------------------\n\nFile-Name...............: %CompleteName%\nPhoto-Codec.............: %Format/String%\n
Image;Photo-Auflösung.........: %Width%x%Height%\nPhoto-Size..............: %StreamSize/String%\n
File_End;\n
Code: Select all
set /A fileCounter=0 for
set /B audioCounter=0
set /C textCounter=0
for %%A in (*.mkv) do C:\System\Mediainfo\MediaInfo.exe --Inform=file://C:\System\Mediainfo\template1.txt %%A >> Output1.txt
set /B audioCounter=0
set /C textCounter=0
for %%A in (*.jpg) do C:\System\Mediainfo\MediaInfo.exe --Inform=file://C:\System\Mediainfo\template2.txt %%A >> Output2.txt
set /B audioCounter=0
set /C textCounter=0