Notice: This tutorial has been updated to include libx264 library installation and FFmpeg version 0.6.1 installation as well as installing qt-faststart

FFmpeg is a program used to record, convert and stream audio and video. It includes libavcodec - the leading audio/video codec library. This article covers how to install FFmpeg and all required libraries that will allow you to convert videos between the most popular and common formats

Installing FFmpeg (0.6.1) and FFmpeg-php (0.6.0) on your Mac is not a very intuitive thing for the command line novice. This article will guide you through the installation of all the necessary packages to correctly install FFMPEG and FFMPEG-PHP that will allow you to convert the majority of available video and audio formats, including Flash (flv) and Quicktime (mov, mp4).

The programs we will be installing to accomplish this are: Lame, FAAD, FAAC, Libogg, Libvorbis, FLVTool2, Yasm, Libx264 as well as FFmpeg and FFmpeg-php.

Note: You must have Apples (Mac) Developer Tools (XCode) installed on your computer for these installations. Do this before proceeding.

Also, if you would like these packages installed on your Mac or live server, contact me and we can arrange the installation for a resonable fee.