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