Skip to content

Instantly share code, notes, and snippets.

@vokeio vokeio/
Last active May 30, 2019

What would you like to do?

Convert mp4 to webm

ffmpeg -i input.mp4 -vcodec libvpx -qmin 0 -qmax 50 -crf 10 -b:v 1M -acodec libvorbis output.webm

Convert webm to mp4

ffmpeg -i input.webm -vcodec libx264 output.mp4

Compress mp4

ffmpeg -i input.mp4 -vf scale=1280:-1 -c:v libx264 -preset veryslow -crf 24 output.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.