Configuring Media Derivatives API on OSX with MAMP and ffmpegX
Last updated on
30 April 2025
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:
- Download ffmpegX from http://www.ffmpegx.com/download.html
- Copy the ffmpegX.app from the .dmg to your Applications directory.
- 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:
- Control-click on the ffmpegX application, choose Show Package Contents from the pop-up menu, and navigate into Resources.
- Drag and drop ffmpeg to /usr/local/bin (may require showing hidden folders)
- Right click on /usr/local/bin/ffmpeg and Get Info
- 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.
- If this is not the case, unlock the permissions by clicking the small lock icon and adjust.
For users who are more comfortable using Terminal:
- As a root user or using sudo type cp /Applications/ffmpegX.app/Contents/Resources/ffmpeg /usr/local/bin
- chown root:wheel /usr/local/bin/ffmpeg
- chmod 755 /usr/local/bin/ffmpeg
Now you have a working version of ffmpeg that can be called by PHP.
You can also create an FFMPEG Dropbox with bash scripting or OSX's Automator.
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion