Skip to content

Instantly share code, notes, and snippets.

@theorm
Last active January 2, 2016 06:58
Show Gist options
  • Select an option

  • Save theorm/8266483 to your computer and use it in GitHub Desktop.

Select an option

Save theorm/8266483 to your computer and use it in GitHub Desktop.

Install

Make sure we have Final Cut Pro X and correct version of ffmpeg installed.

brew uninstall ffmpeg
brew install ffmpeg --with-theora --with-libogg --with-libvorbis --with-libvpx

Export

Export master file from FCPX.

Encode

Ogg

ffmpeg -i input.mov -codec:v libtheora -qscale:v 3 -codec:a libvorbis -qscale:a 2 output.ogv

Webm

ffmpeg -i input.mov -codec:v libvpx -b:v 2M -crf 30 -codec:a libvorbis -qscale:a 2 output.webm

better 2 pass:

ffmpeg -y -i i.mov -vcodec libvpx -b 2000k -acodec libvorbis -ab 128k -pass 2 o.webm
ffmpeg -y -i i.mov -vcodec libvpx -b 2000k -acodec libvorbis -ab 128k -pass 2 o.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment