Created
April 5, 2012 04:59
-
-
Save collinschaafsma/2308101 to your computer and use it in GitHub Desktop.
FFMPEG Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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