Skip to content

Instantly share code, notes, and snippets.

@victor-torres
Created October 25, 2017 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victor-torres/eaed025745c4f400461175c9b34be80d to your computer and use it in GitHub Desktop.
Save victor-torres/eaed025745c4f400461175c9b34be80d to your computer and use it in GitHub Desktop.
Convert and compress GoPro videos to reduce file size keeping regular quality
# Convert and compress GoPro videos to reduce file size keeping regular quality
# Run in the same directory as the original files
# Output is MP4 H.264
# Be awere that convertions may take several minutes or even hours!
# I do recommend to run with small sets of video files for each iteraction
time find . -type f -name "G*PR*.MP4" -exec handbrakecli -i {} -o /<dest dir>/{} -e x264 -x "level=4.0:vbv-maxrate=20000:weightp=1:vbv-bufsize=25000:ref=1:8x8dct=0:subme=2:mixed-refs=0:trellis=0:rc-lookahead=10" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment