You are here
Easy OS X Ffmpeg
1. You'll need XCode in your life (for many other things like gcc for other programs), go to the App Store and install it. Make sure you find the installer after it downloads and load it up.
2. Now if you don't have Homebrew you should, I'm even surprised I'm bothering to tell you how but here it is, in the terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
3. Install ffmpeg:
brew install ffmpeg
This will put ffmpeg in usr/local/Cellar which is where homebrew puts everything but it also creates a symlink to /usr/local/bin/ffmpeg so it's in your path and you have no additional work! That's as easy as ffmpeg gets.
4. Want to add the ability to encode ogg and ogv files? We'll need ffmpeg2theora... here's an OS X installer, just install like you would any common os x app it puts it in /usr/local/bin as well.
5. Ffmpeg has been coming with less and less stuff these days that you have to find on your own - take this zip file, unzip it and put the contents into /usr/local/Cellar/ffmpeg/0.8.4/share/ffmpeg or whatever ffmpeg you might get vs. 0.8.4 if this article gets a little dated.
6. Test in the command line by firing off ffmpeg and ffmpeg2theora... if it gives you stuff that looks like man pages you're good 2 go.


Comments
osx user (not verified) says:
Sat, 12/03/2011 - 09:14
Permalink
while running brew install ffmpeg i got these errors at the end of the sequence. Is this normal?
MAKEFLAGS: -j4
Error: Failed executing: make install
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/8456
https://github.com/mxcl/homebrew/issues/8815
Otherwise, please report the bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
shane says:
Sat, 12/03/2011 - 09:35
Permalink
I too just ran into that issue, I tired using "brew install ffmpeg --use-clang" as suggested in the second link on your post. It saw that I had already downloaded it and then just installed it. Seemed to work for me.
matt says:
Fri, 02/17/2012 - 13:12
Permalink
Good news for those who use a Mac as their development machine. It looks like with the new XCode release Apple has made the necessary tools available in an installer outside of XCode.
You currently still need an Apple Id to download the tools and I'm not sure what EULAs related to development that entails. However according to the developer (writing on the Homebrew mailing list,) it should soon be possible to download them from http://opensource.apple.com without any Apple ID or EULA.
More details here:
http://kennethreitz.com/xcode-gcc-and-homebrew.html
Add new comment