Skip to content

Instantly share code, notes, and snippets.

@psaia
Last active March 29, 2020 19:33
Show Gist options
  • Save psaia/3241cc16aae23ef836e611ffbf1adaae to your computer and use it in GitHub Desktop.
Save psaia/3241cc16aae23ef836e611ffbf1adaae to your computer and use it in GitHub Desktop.
Some handy ffmpeg configs
# Note: Lower the -crf, higher the quality.
# Good for screencasts:
ffmpeg -i INPUT.mov -preset veryslow -tune stillimage -y -vcodec h264 -crf 29 -an OUTPUT.mp4
# Cropping (84px from top, 555 height):
ffmpeg -i INPUT.mov -filter:v "scale=-1:700,crop=iw:555:0:84" -preset veryslow -tune stillimage -y -vcodec h264 -crf 29 -an OUTPUT.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment