Created
October 25, 2017 20:17
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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