Steps To Install FFMPEG

 

Install rpmforge repo

rpm -Uvh http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm

Install dependencies related to the ffmpeg package

yum install openjade

rpm -Uvh ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/core/3/x86_64/os/Fedora/RPMS/perl-SGMLSpm-1.03ii-14.noarch.rpm

Now Install ffmpeg package

yum install ffmpeg ffmpeg-devel mplayer mencoder

ffmpeg -version

 

Steps to install ffmpeg-php

cd /usr/local/src

wget http://downloads.sourceforge.net/project/ffmpeg-php/OldFiles/ffmpeg-php-0.6.2.tbz2?r=&ts=1444249024&use_mirror=iweb

mv ffmpeg-php-0.6.2.tbz2?r\= ffmpeg-php-0.6.2.tbz2

tar -xjf ffmpeg-php-0.6.2.tbz2

cd ffmpeg-php-0.6.2/

phpize

./configure

make

make install

echo ‘extension=ffmpeg.so’ >> /usr/local/lib/php.ini

Usual errors noticed during installation are:

While Performing ‘make’ , at times ¬†you get the error “error: ‘PIX_FMT_RGBA32’ undeclared (first use in this function)”,
then run following command in ffmpeg-php source directory and run ‘make’ command again:
sed -i ‘s/PIX_FMT_RGBA32/PIX_FMT_RGB32/g’ ffmpeg_frame.c