ffmpeg-php is a PHP extension that adds functions for accessing and retrieving information from movies and audio files.
Here’s quick steps which worked for me and you can try to install this library in a RedHat based distro (I’ve checked in a fresh CentOS 5).
Step 1. Install standard ffmpeg and its dependencies using yum:
# yum install ffmpeg ffmpeg-devel php-devel
Step 2. Download and install ffmpeg-php:
# cd /usr/src
# wget http://biznetnetworks.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.6.0.tbz2
# tar xjf ffmpeg-php-0.6.0.tbz2
# cd ffmpeg-php-0.6.0
# ./configure –enable-shared –prefix=/usr
# make install
Here, we used phpize to create config files. You should check installation docs to enable more libraries through configure command.