Skip to content

Instantly share code, notes, and snippets.

@pomle
Last active January 13, 2017 20:23
Show Gist options
  • Save pomle/17fcae66334d864e3bb6d2078c52971b to your computer and use it in GitHub Desktop.
Save pomle/17fcae66334d864e3bb6d2078c52971b to your computer and use it in GitHub Desktop.
for CRF in 20 21 22 23 24 25 26 27 28;
do ffmpeg -i original.mov \
-vf scale=1280:800 \
-c:v libx264 \
-preset veryslow -crf $CRF \
-movflags faststart \
-pix_fmt yuv420p \
output_1280_crf$CRF.mp4
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment