Skip to content

Instantly share code, notes, and snippets.

@kaishin
Created February 23, 2015 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaishin/42fe111c60b4f7037258 to your computer and use it in GitHub Desktop.
Save kaishin/42fe111c60b4f7037258 to your computer and use it in GitHub Desktop.
ffmpeg 2-pass encoding
ffmpeg -i source.mp4 -pass 1 -codec:v libvpx -b:v 650k -codec:a libvorbis -b:a 100k -s 640x360 -f webm -y /dev/null
ffmpeg -i source.mp4 -pass 2 -codec:v libvpx -b:v 650k -codec:a libvorbis -b:a 100k -s 640x360 -y output.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment