Skip to content

Instantly share code, notes, and snippets.

@jhixson
Last active May 18, 2018 07:54
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 jhixson/16bac1370985cb00653fd7140f825141 to your computer and use it in GitHub Desktop.
Save jhixson/16bac1370985cb00653fd7140f825141 to your computer and use it in GitHub Desktop.
Converting videos with ffmpeg

First we need to install ffmpeg and add a bunch of codecs

brew install ffmpeg --with-libass --with-openssl --with-libvorbis --with-libvpx --with-theora

Converting mp4 => ogv

ffmpeg -i input.mp4 -q:v 10 -c:v libtheora -c:a libvorbis output.ogv

Converting mp4 => webm

ffmpeg -i input.mp4 -q:v 10 -c:v libvpx -c:a libvorbis output.webm

@jhixson
Copy link
Author

jhixson commented Sep 25, 2017

Change the -q:v setting to adjust quality vs. size output.

@ballliang
Copy link

did you try free hd video converter factory? A free tool for converting videos. I am using it to convert video easily, maybe you should try too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment