Handbrake cmd-line batch conversion

Create batch file with below script.
%%~nxf = filename with extension (file type)
%%~nf = filename without extension
-s 1 = subtitle no. 1
–decomb may be unneccessary as it is part of High Profile, but the purpose is to ensure removal of interlacing-noise.

Batch file example converting all mkv files in the folder to m4v:
for %%f in (*.mkv) do (
“C:\Program Files\Handbrake\HandBrakeCLI.exe” -i %%~nxf -o %%~nf.m4v –preset=”High Profile” –decomb -s 1 –subtitle-burn