Ok, Get ready. start putty & login to your server as root.
- First we will have to install the DAG RPM repositories which contains huge amount of rpm packages. It’s very easy
run:
# nano -w /etc/yum.repos.d/dag.repo
Insert :
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
Then Click 'Ctrl+O' , after 'Ctrl+X'.
2.Then save the repo file also you can update RPM through rpmforge:
if you have CentOS 32 Bit (i386), run :
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
if you have CentOS 64 Bit (x86_64), Run :
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
- Now we need to update yum database:
run:
yum update
- Install FFMPEG
run:
yum install ffmpeg ffmpeg-devel
- Install FFMPEG PHP Extension
run:
cd /usr/local/src
wget http://downloads.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2?use_mirror=nchc
tar -xjf ffmpeg-php-0.6.0.tbz2
phpize
./configure
make
make install
- Add FFMPEG extension to php.ini file
run:
nano /usr/local/lib/php.ini
Put the below two lines at the end of the php.ini file
[ffmpeg] extension=ffmpeg.so
ok, Then Click 'Ctrl+O' , after 'Ctrl+X' and restart apache.for restart apache, run:
service httpd restart
if you want to install additional tools like mencoder / flvtools2
for install men coder, run:
yum install mplayer mencoder
for install flvtool2, run:
yum install flvtool2
Check your phpinfo file for verify the ffmpeg php installation.
That's all. good luck!
Like this? follow me via twitter http://twitter.com/lakshanz for more updates
Firemax.
External image (may be gone) Free Mobile Web Scripts by me: Free Youtube Downloader, Tweets Reader, Facebook Wall Posts Reader PHP Tutorials: [How to Secure Your PHP Script (PHP SECURITY)](http://coding-talk.com/f14/how-to-secure-you…