Skip to content

Instantly share code, notes, and snippets.

@kanreisa
Last active December 10, 2015 01:48
Show Gist options
  • Save kanreisa/4362619 to your computer and use it in GitHub Desktop.
Save kanreisa/4362619 to your computer and use it in GitHub Desktop.
#!/bin/bash
ENCODER="HandBrakeCLI"
EXT="mp4"
VERSION="r11f18"
OUTPUT="$1_$VERSION.$EXT"
OPTS='-t 1 -c 1 -f mp4 --denoise="2:1.5:3:2.25" \
-w 1280 -l 720 --crop 0:8:0:0 --modulus 2 -e x264 -q 18 \
-a 1 -E faac -6 stereo -R Auto -B 128 -D 0 \
-x b-adapt=2:me=umh:merange=64:subq=10:trellis=2:ref=12:bframes=6:analyse=all:b-pyramid=strict:deblock=2,2 --verbose=1'
$ENCODER $OPTS -i "$1" -o "$OUTPUT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment