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.

Attachment: 

Comments

osx user (not verified) says:

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:

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:

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

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.