Ok, Get ready. start putty & login to your server as root.
--------------------------------------------------------
1. First we will have to install the DAG RPM repositories which contains huge amount of rpm packages. It’s very easy
run:
Insert :
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 :
if you have CentOS 64 Bit (x86_64), Run :
----------------------------------------------------------
3. Now we need to update yum database:
run:
-----------------------------------------------------------
4. Install FFMPEG
run:
-----------------------------------------------------------
5. Install FFMPEG PHP Extension
run:
-------------------------------------------------------------
6. Add FFMPEG extension to php.ini file
run:
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:
--------------------------------------------------------------
if you want to install additional tools like mencoder / flvtools2
for install men coder, run:
for install flvtool2, run:
--------------------------------------------------------------
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.
--------------------------------------------------------
1. First we will have to install the DAG RPM repositories which contains huge amount of rpm packages. It’s very easy
run:
Code:
# nano -w /etc/yum.repos.d/dag.repo
Code:
[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
----------------------------------------------------------
2. Then save the repo file also you can update RPM through rpmforge:
if you have CentOS 32 Bit (i386), run :
Code:
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
Code:
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
3. Now we need to update yum database:
run:
Code:
yum update
4. Install FFMPEG
run:
Code:
yum install ffmpeg ffmpeg-devel
5. Install FFMPEG PHP Extension
run:
Code:
cd /usr/local/src
Code:
wget http://downloads.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2?use_mirror=nchc
Code:
tar -xjf ffmpeg-php-0.6.0.tbz2
Code:
phpize
Code:
./configure
Code:
make
Code:
make install
6. Add FFMPEG extension to php.ini file
run:
Code:
nano /usr/local/lib/php.ini
[ffmpeg]
extension=ffmpeg.so
ok, Then Click 'Ctrl+O' , after 'Ctrl+X' and restart apache.for restart apache, run:
Code:
service httpd restart
if you want to install additional tools like mencoder / flvtools2
for install men coder, run:
Code:
yum install mplayer mencoder
Code:
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.
Comment