Skip to content

Instantly share code, notes, and snippets.

@wookietreiber
Last active August 29, 2015 13:57
Show Gist options
  • Save wookietreiber/9689414 to your computer and use it in GitHub Desktop.
Save wookietreiber/9689414 to your computer and use it in GitHub Desktop.
ffmpeg-based animation converter, converts from * to high quality x264 and good libvorbis, is quite slow, however
#!/bin/bash
[[ -z $2 ]] && {
echo "usage $0 /path/to/movie/in /path/to/movie/out" > /dev/stderr
exit 1
}
PRESET=veryslow
TUNE=animation
CRF=18
ionice -c 3 -p $$
renice +12 -p $$ > /dev/null 2>&1
ffmpeg -i "$1" \
-c:v libx264 -preset $PRESET -tune $TUNE -crf $CRF \
-c:a libvorbis -aq 4 \
"$2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment