-
SIMPLE FFMpeg OSX Installation
The following is for anyone wanting to install FFMpeg onto a 10.5.x or 10.6.x OSX box (should work for Tiger as well but not tested)
NOTE: Internet connection required.
STEP 1: Install Xcode (Apple developer tools)
https://connect.apple.com/
version 3.2.1 or later for Snow Leopard, 3.1.4 or later for Leopard.
You will have to join the Apple Developer Program which is free on the web. This will be a 700-900MB download and contain a usual apple installer package.STEP 2: Install Macports 1.8.2
https://www.macports.org/install.php
There is a separate version of Macports 1.8.2 for Snow Leopard, Leopard and Tiger… make sure you get the right one. This will be a tiny download and contain a usual apple installer package.STEP 3: Open the Terminal application found in your utilities folder.
Once logged in, type the following into the terminal and hit return:sudo port install ffmpeg
You will be prompted for your password. Enter your password and hit return. Sit back and relax as it will take a while for Macports to download, compile and install all of the required dependencies of FFMpeg and FFmpeg itself. This can take an hour or two even with a fast internet connection.
When it is finished, type:
ffmpeg
…and hit return. It should list the currently installed version as well as your configure settings.
Type: man ffmpeg
…for the manual
Type: ffmpeg -codecs
…for a list of available codecs
Type: ffmpeg -formats
…for a list of available containersThat’s it, your done installing FFMpeg the easy way with a broader range of codecs usually available on the mac without paid software.
Basic usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
For example:
ffmpeg -i inputfile.mov -vcodec libx264 -vpre libx264-hq -b 1500k -acodec libmp3lame -ab 192k -f mp4 outputfile.mp4Up until now, I have been installing and compiling ffmpeg and it’s dependent libraries the hard way. This involves finding the source codes or grabbing them from git or svn and configuring, compiling and installing yourself with the terminal command line shell. The good thing about this approach is that git and svn usually give you the latest developer version, not the last stable version (0.5.1) which the above method installs.
Happy encoding, decoding and wrapping.
Michael