Configuring Media Derivatives API on OSX with MAMP and ffmpegX

Configuring the Media Derivatives API module requires ffmpeg. There are dozens of tutorials on configuring FFMPEG for Ubunutu or your favoriate flavor of unix, but compiling and configuring FFMPEG on OSX can be tricky because of the way Apple implements some unix packages. Using the precompiled FFPEG found in ffmpegX can save you a lot of time.

To install FFMPEG this way follow these steps:

  1. Download ffmpegX from http://www.ffmpegx.com/download.html
  2. Copy the ffmpegX.app from the .dmg to your Applications directory.
  3. Open ffmpegX and follow the instructions to download and add mpeg2enc, mencoder, and mplayer to the installation. This requires you to download each item and then locate it with ffmpegx

If you are more comfortable using a graphical UI:

  1. Control-click on the ffmpegX application, choose Show Package Contents from the pop-up menu, and navigate into Resources.
  2. Drag and drop ffmpeg to /usr/local/bin (may require showing hidden folders)
  3. Right click on /usr/local/bin/ffmpeg and Get Info
  4. Check the Sharing and Permissions that system is the file owner and wheel is the group and that system has Read & Write and that wheel and everyone have Read access.

HowTo: Installing ffmpeg-php extension for MAMP (Mac)

  • First of all point your php and phpize to your MAMP environment
    • Add/change following line in ~/.profile or ~/.bashrc (for bash):
      export PATH=/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php/php5.2.17/bin:/usr/local/bin:$PATH:/opt/local/bin
      and after that please re-login (or just execute e.g. /bin/bash).

Subscribe with RSS Subscribe to RSS - ffmpeg