My Automated Handbrake Video Conversion Batch File Script
How my automated Handbrake batch file works for transcoding all my original RAW video files using the RTX2060 GPU in H.265 format.
I’m using this to transcode 10’s of thousands of raw camera video files.
CODE:
@echo off
REM Loop through each argument (dragged item)
:loop
if “%~1″==”” goto end
REM Create a directory for the current item
mkdir “D:videotemp%~n1”
FOR /F “tokens=*” %%G IN (‘DIR “%~1” /B /S /A:-d’) do (
FOR /F “tokens=*” %%H IN (‘DIR “%%G” /B /A:-d’) do (
“C:Program FilesHandbrakeHandBrakeCLI” -i “%%G” –optimize -o “D:videotemp%~n1%%~nH.mp4” -e nvenc_h265 -q 26 –cfr –aencoder av_aac –verbose=1
)
)
REM Shift arguments to process the next item
shift
goto loop
:end
pause
END CODE
If you find my videos useful you may consider supporting the EEVblog on Patreon: http://www.patreon.com/eevblog
Web Site: http://www.eevblog.com
Main Channel: http://www.youtube.com/EEVblog
EEVdiscover: https://www.youtube.com/eevdiscover
AliExpress Affiliate: http://s.click.aliexpress.com/e/c2LRpe8g
Buy anything through that link and Dave gets a commission at no cost to you.
T-Shirts: http://teespring.com/stores/eevblog
#ElectronicsCreators #Handbrake #GPU