This can be a pain due to a bug in the ffpmeg_frame.c file … here are the commands to get up and going
yum -y install ffmpeg ffmpeg-devel wget http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2/download tar jxvf ffmpeg-php-0.6.0.tbz2 sed -i 's/PIX_FMT_RGBA32/PIX_FMT_RGBA/g' ffmpeg-php-0.6.0/ffmpeg_frame.c cd ffmpeg-php-0.6.0 && phpize ./configure && make && make install echo 'extension=ffmpeg.so' > /etc/php.d/ffmpeg.ini && /etc/init.d/httpd restart php -v && php -m | grep ffmpeg
In this process you:
use yum to install ffmpeg and the ffmpeg development files
download php-ffmepg from sourceforge and extract it
apply the bug fix to the ffmpeg_frace.c file
change directories to the php-ffmpeg directory and phpize the module
configure, make and install the shared object (extension)
add the extension to the loaded php extensions
restart apache and verify no errors are shown on php startup and that ffmepg is loaded
If all is well, you should see your version of PHP with the copyrights on 3 lines and the last line showing ffmpeg
