Skip to content

Instantly share code, notes, and snippets.

@larryhou
Last active March 6, 2018 07:54
Show Gist options
  • Save larryhou/08c98481cb76dc15fb933ab6437c6e61 to your computer and use it in GitHub Desktop.
Save larryhou/08c98481cb76dc15fb933ab6437c6e61 to your computer and use it in GitHub Desktop.

-crf bigger value leads to lower quality output, set to 18-28 for good quality with small size.

ffmpeg -i sample.mp4 -c:v libx264 -crf 22 -preset slow -an output.mp4 -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment