Skip to content

Instantly share code, notes, and snippets.

@fundon
Forked from collinschaafsma/gist:2308101
Created February 20, 2013 08:02
Show Gist options
  • Save fundon/4993808 to your computer and use it in GitHub Desktop.
Save fundon/4993808 to your computer and use it in GitHub Desktop.
# Add speex, for Red5
brew edit ffmpeg
args << "--enable-libspeex" if Formula.factory('speex').installed?
brew install --use-gcc ffmpeg
# H.264 / ACC
ffmpeg -i video.flv -acodec libfaac -ab 19k -ar 16000 -vsync 1 -async 1 -r 25.0 -b 193k -vcodec libx264 -s 420x340 video.mp4
# VP8 / Vorbis
ffmpeg -i video.flv -acodec libvorbis -ab 19k -ar 16000 -vsync 1 -async 1 -r 25.0 -b 193k -vcodec libvpx -s 420x340 video.webm
# Theora / Vorbis
ffmpeg -i video.flv -acodec libvorbis -ab 19k -ar 16000 -vsync 1 -async 1 -r 25.0 -b 193k -vcodec libtheora -s 420x340 video.ogv
# Screenshot at 10 seconds
ffmpeg -i video.flv -ss 00:10 -vframes 1 -r 1 -s 420x340 -f image2 video.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment