HOWTO - Install ffmpeg and ffmpeg-php on CentOS system
From wiki.morphey.org
Following the laces to be used for installing ffmpeg and ffmpeg-php (and relative codecs and dependences) in a system CENTOS. To suit the run of the file php.ini for the system.
cd /usr/src/ mkdir ffmpeg cd ffmpeg/ wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2 wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz wget http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2 wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz bunzip2 essential-20061022.tar.bz2 tar xvf essential-20061022.tar tar zxvf flvtool2_1.0.5_rc6.tgz tar zxvf lame-3.97.tar.gz bunzip2 ffmpeg-php-0.5.0.tbz2 tar xvf ffmpeg-php-0.5.0.tar tar zxvf libogg-1.1.3.tar.gz tar zxvf libvorbis-1.1.2.tar.gz mkdir /usr/local/lib/codecs/ mv essential-20061022/* /usr/local/lib/codecs/ chmod -R 755 /usr/local/lib/codecs/ yum install -y subversion yum install -y ruby yum install -y ncurses-devel svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer cd lame-3.97 ./configure make make install cd .. cd libogg-1.1.3 ./configure make make install cd .. cd libvorbis-1.1.2 ./configure make make install cd .. cd flvtool2_1.0.5_rc6 ruby setup.rb config ruby setup.rb setup ruby setup.rb install cd .. cd mplayer/ ./configure make make install cd .. cd ffmpeg mkdir /home/tmp export TMPDIR=/home/tmp ./configure --enable-libmp3lame --enable-libogg --enable-libvorbis --disable-mmx --enable-shared echo '#define HAVE_LRINTF 1' >> config.h make make install ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50 ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51 ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49 ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0 ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51 cd .. cd ffmpeg-php-0.5.0 phpize ./configure make make install ### for cpanel insert in /usr/lib/php.ini ### for other system insert in /etc/php.ini echo 'extension=ffmpeg.so' >> /usr/lib/php.ini service httpd restart php -r 'phpinfo();' | grep ffmpeg
