up2date -i subversion up2date -i ruby cd ~ svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2 tar xvjpf essential-20061022.tar.bz2 cd essential-20061022 mkdir /usr/local/lib/codecs mv * /usr/local/lib/codecs/ chmod -R 755 /usr/local/lib/codecs/ cd ~ wget http://superb-east.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz tar xvzpf lame-3.97.tar.gz cd lame-3.97 ./configure make make install cd ~ wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz tar xvzpf libogg-1.1.3.tar.gz cd libogg-1.1.3 ./configure make make install cd ~ wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz tar xvzpf libvorbis-1.1.2.tar.gz cd libvorbis-1.1.2 ./configure make make install cd ~ wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz tar xvzpf flvtool2_1.0.5_rc6.tgz 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 ~ mkdir /usr/local/src/tmp chmod 777 /usr/local/src/tmp export TMPDIR=/usr/local/src/tmp cd ffmpeg ./configure --enable-libmp3lame --enable-libogg --enable-libvorbis --disable-mmx --enable-shared make make install cd ~ 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 wget http://umn.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2 tar xvjpf ffmpeg-php-0.5.0.tbz2 cd ffmpeg-php-0.5.0 phpize ./configure make make install cd ~ cp /usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so /usr/local/lib/php/extensions/
Modify /usr/local/Zend/etc/php.ini (or equivalent) and add the module to the list of extensions:
extension_dir = "/usr/local/lib/php/extensions/" extension=ffmpeg.so
Now save and restart apache and test php for ffmpeg:
service httpd stop killall -9 httpd service httpd startssl php -i | grep -i ffmpeg
