Skip to content

Instantly share code, notes, and snippets.

@jonathanvx
Last active December 29, 2015 10:19
Show Gist options
  • Save jonathanvx/7656383 to your computer and use it in GitHub Desktop.
Save jonathanvx/7656383 to your computer and use it in GitHub Desktop.
My Windows Powershell script (.bat file) that automatically converts all your *.mov files in a directory (usually movies made from DSLRs) to very high quality (and very slow conversion) mp4 movies using Handbrake. Bitrate is set to 3500kb/s (take into account that the compression is very good - try it and see). Audio is 128/44.1k. Output directo…
for /r %%i in (*.mov) do "C:\Program Files\Handbrake\HandBrakeCLI.exe" -i "%%i" -t 1 -o "D:\%%~ni.mp4" -f mp4 --strict-anamorphic -e x264 -b 3500 -2 -T --vfr -a 1 -E faac -B 128 -6 dpl2 -R 44.1 -D 0 --gain=0 --audio-copy-mask none --audio-fallback ffac3 -x ref=6:weightp=1:rc-lookahead=10:b-adapt=2:bframes=6:me=umh:subq=9:merange=32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment