Recently it became available to use binary packages for FFmpeg and other related codecs for media content management without need to compile all of them from the sources. Here is an instruction and packages set. Enjoy.
Enable RPMforge repos:
http://wiki.centos.org/AdditionalResour ... s/RPMForge
i386:
- Code: Select all
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
rpm -ivh rpmforge-release-0.5.2-2.el5.rf.i386.rpm
x86_64
- Code: Select all
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
rpm -ivh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
Installing packages:
- Code: Select all
yum install yasm faad2 faad2-devel opencore-amr opencore-amr-devel libtheora libtheora-devel a52dec a52dec-devel lame lame-devel x264 x264-devel faac faac-devel dirac dirac-devel xvidcore-devel xvidcore ffmpeg ffmpeg-devel ffmpeg-libpostproc libvorbis libvorbis-devel mplayer mencoder directfb
- Code: Select all
===========================================================================================================================================================================================================
Package Arch Version Repository Size
===========================================================================================================================================================================================================
Installing:
a52dec i386 0.7.4-8.el5.rf rpmforge 78 k
a52dec-devel i386 0.7.4-8.el5.rf rpmforge 23 k
dirac i386 1.0.2-1.el5.rf rpmforge 2.9 M
dirac-devel i386 1.0.2-1.el5.rf rpmforge 918 k
directfb i386 1.2.4-1.el5.rf rpmforge 3.5 M
faac i386 1.26-1.el5.rf rpmforge 151 k
faac-devel i386 1.26-1.el5.rf rpmforge 5.6 k
faad2 i386 2.7-1.el5.rf rpmforge 354 k
faad2-devel i386 2.7-1.el5.rf rpmforge 9.5 k
ffmpeg i386 0.5-3.el5.rf rpmforge 2.5 M
ffmpeg-devel i386 0.5-3.el5.rf rpmforge 2.6 M
ffmpeg-libpostproc i386 0.5-3.el5.rf rpmforge 40 k
lame i386 3.98.2-1.el5.rf rpmforge 569 k
lame-devel i386 3.98.2-1.el5.rf rpmforge 21 k
libtheora i386 1.0alpha7-1 base 708 k
libtheora-devel i386 1.0alpha7-1 base 111 k
mencoder i386 1.0-0.41.svn20090711.el5.rf rpmforge 3.4 M
mplayer i386 1.0-0.41.svn20090711.el5.rf rpmforge 5.2 M
opencore-amr i386 0.1.1-0.git20090807.el5.rf rpmforge 378 k
opencore-amr-devel i386 0.1.1-0.git20090807.el5.rf rpmforge 8.3 k
x264 i386 0.0.0-0.4.20090708.el5.rf rpmforge 898 k
x264-devel i386 0.0.0-0.4.20090708.el5.rf rpmforge 299 k
xvidcore i386 1.2.2-1.el5.rf rpmforge 511 k
xvidcore-devel i386 1.2.2-1.el5.rf rpmforge 141 k
yasm i386 0.7.2-1.el5.rf rpmforge 276 k
Installing for dependencies:
SDL i386 1.2.10-8.el5 base 233 k
SDL-devel i386 1.2.10-8.el5 base 643 k
aalib i386 1.4.0-5.el5.rf rpmforge 167 k
amrnb i386 7.0.0.2-1.el5.rf rpmforge 237 k
amrwb i386 7.0.0.3-1.el5.rf rpmforge 190 k
arts i386 8:1.5.4-1 base 1.1 M
cdparanoia-libs i386 alpha9.8-27.2 base 50 k
cppunit i386 1.12.0-3.el5.rf rpmforge 811 k
enca i386 1.10-1.el5.rf rpmforge 166 k
flac i386 1.1.2-28.el5_0.1 base 305 k
freeglut i386 2.4.0-7.1.el5 base 142 k
fribidi i386 0.10.7-5.1 base 52 k
imlib2 i386 1.4.0-1.el5.rf rpmforge 947 k
imlib2-devel i386 1.4.0-1.el5.rf rpmforge 160 k
libXt-devel i386 1.0.2-3.1.fc6 base 332 k
libXvMC i386 1.0.2-2.1 base 18 k
libcaca i386 0.99-0.1.beta11.el5.rf rpmforge 236 k
libdca i386 0.0.5-1.el5.rf rpmforge 136 k
libdv i386 0.104-4.fc6.1 base 79 k
libid3tag i386 0.15.1b-3.el5.rf rpmforge 75 k
libmad i386 0.15.1b-4.el5.rf rpmforge 82 k
libmpcdec i386 1.2.6-1.el5.rf rpmforge 52 k
libsndfile i386 1.0.17-1.el5.rf rpmforge 476 k
lirc i386 0.6.6-4.el5.rf rpmforge 241 k
lzo2 i386 2.02-3.el5.rf rpmforge 131 k
mesa-libGLU i386 6.5.1-7.7.el5 base 227 k
mesa-libGLU-devel i386 6.5.1-7.7.el5 base 91 k
mplayer-fonts noarch 1.1-3.0.rf rpmforge 1.0 M
openal i386 0.0.8-2.el5.rf rpmforge 319 k
speex i386 1.0.5-4.el5_1.1 base 206 k
svgalib i386 1.9.25-1.el5.rf rpmforge 809 k
tslib i386 1.0-1.el5.rf rpmforge 89 k
twolame i386 0.3.12-1.el5.rf rpmforge 131 k
Transaction Summary
===========================================================================================================================================================================================================
Next step is installation of FFmpeg-PHP.
Description
ffmpeg-php is an extension for PHP that adds an easy to use, object-oriented API for accessing and retrieving information from video and audio files. It has methods for returning frames from movie files as images that can be manipulated using PHP's image functions. This works well for automatically creating thumbnail images from movies. ffmpeg-php is also useful for reporting the duration and bitrate of audio files (mp3, wma...). ffmpeg-php can access many of the video formats supported by ffmpeg (mov, avi, mpg, wmv...)
- Code: Select all
yum install subversion
- Code: Select all
cd /root/
svn co https://ffmpeg-php.svn.sourceforge.net/svnroot/ffmpeg-php/trunk ffmpeg-php
cd /root/ffmpeg-php/ffmpeg-php
phpize
./configure
make
make install
You will see smth similar to:
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
Now, locate your PHP configuration file:
- Code: Select all
php -i|grep php.ini
And include ffmpeg extention support:
- Code: Select all
extension="ffmpeg.so"
Restart webserver and check phpinfo() output. This also can be done from the console:
- Code: Select all
php -i|grep ffmpeg
http://www.mysql-apache-php.com/ffmpeg-install.htm
http://ffmpeg-php.sourceforge.net/
http://www.videochat-scripts.com/tag/tutorial/