@echo off
REM ReadMe Notes:
REM *************
REM This batch file measures automatically all video files in various drives and shares. Your network shares simply have to be mapped as drives in windows.
REM You need to edit the path to MadMeasureHDR, and of course the paths to the shares or files extentions you want to measure.
REM In this example, the first three blocks measure all my .mkv, .mp4 and .ts in the folder that contains all my 4K HDR test files.
REM The next block measures all the files I've put in a special MadMeasureHDR folder in my 4K Movies share, so that they are measured before all the others
REM The last block measures all the files in my 4K Movies share
REM To get the output of MadMeasureHDR both to the screen and to a log file (same_name.txt), I use a free utility called Wintee (wtee.exe)
REM You can download it here: https://code.google.com/archive/p/wintee/
REM Then simply copy it into your c:\Windows directory so that the batch file can find it when it calls it
REM The main advantage is that you can get both near realtime progress while the measurements are made, and a log file containing the output of the MadMeasureHDR utility
REM The main downside is that the progress isn't updated as often as without using Wintee.
REM If you want to get rid of the log file, simply delete the end of the command line: | wtee "%%f.txt" in each block
REM By default, this batch file only shows the log of the files it measures.
REM If you get an error and don't know which file it relates to, or if you would like to display all the scanned files, simply set verbose to "ON" below.
REM Happy measurements!
REM Manni
set pathToMadMeasure="C:\Program Files\MadVR\MadMeasureHDR.exe"
REM Set verbose to ON to display files checked when measurements already exists. Leave it to OFF to only display files that are measured.
set verbose="OFF"
REM Mkv Test Videos\
set pathToVideos="L:\4K Test Files\HDR"
cd /d %pathToVideos%
@echo Parsing folder %pathToVideos% for new MKV files to measure...
for /R %%f in (*.mkv) do (
if %verbose% == "ON" @echo Checking measurements for %%f...
if NOT exist %%f.measurements %pathToMadMeasure% "%%f" | wtee "%%f.txt"
)
@echo Done!"
@echo -----
REM Mp4 Test Videos
set pathToVideos="L:\4K Test Files\HDR"
cd /d %pathToVideos%
@echo Parsing folder %pathToVideos% for new MP4 files to measure...
for /R %%f in (*.mp4) do (
if %verbose% == "ON" @echo Checking measurements for %%f...
if NOT exist %%f.measurements %pathToMadMeasure% "%%f" | wtee "%%f.txt"
)
@echo Done!"
@echo -----
REM Ts Test Videos
set pathToVideos="L:\4K Test Files\HDR"
cd /d %pathToVideos%
@echo Parsing folder %pathToVideos% for new TS files to measure...
for /R %%f in (*.ts) do (
if %verbose% == "ON" @echo Checking measurements for %%f...
if NOT exist %%f.measurements %pathToMadMeasure% "%%f" | wtee "%%f.txt"
)
@echo Done!"
@echo -----
REM 4K Movies in @MadMeasureHDR folder for priority measurements to be done before the main folder
set pathToVideos="U:\@MadMeasureHDR"
cd /d %pathToVideos%
@echo Parsing folder %pathToVideos% for new MKV files to measure...
for /R %%f in (*.mkv) do (
if %verbose% == "ON" @echo Checking measurements for %%f...
if NOT exist %%f.measurements %pathToMadMeasure% "%%f" | wtee "%%f.txt"
)
@echo Done!"
@echo -----
REM 4K Movies
set pathToVideos="U:\"
cd /d %pathToVideos%
@echo Parsing folder %pathToVideos% for new MKV files to measure...
for /R %%f in (*.mkv) do (
if %verbose% == "ON" @echo Checking measurements for %%f...
if NOT exist %%f.measurements %pathToMadMeasure% "%%f" | wtee "%%f.txt"
)
@echo Done!"
@echo -----
@echo All Folder Measurements done!
PAUSE