Posted by: linuxtags on: February 23, 2012
This is the easy way to install ffmpeg on CentOS or RHEL/Redhat Enterprise Linux the easy way.
# vi /etc/yum.repos.d/dag.repo
Insert the following:
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el5/en/x86_64/dag
gpgcheck=1
enabled=1
save the file.
Add the
#/usr/local/lib
to
#/etc/ld.so.conf
Then run:
#ldconfig -v
Then run the following:
#rpm -Uvh http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-1.el5.rf.x86_64.rpm
#yum update
#yum install ffmpeg ffmpeg-devel
To check whether ffmpeg installed use:
#ffmpeg -formats
#wget http://space.dl.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2
#tar -xjf ffmpeg-php-0.6.0.tbz2
#cd ffmpeg-php-0.6.0
#phpize
#./configure
config.status: creating config.h
#make
Build complete. Don't forget to run 'make test'.
#make install
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20090626/ #ls -al /usr/local/lib/php/extensions/no-debug-non-zts-20090626/
-rwxr-xr-x 1 root root 185285 Sep 20 03:36 ffmpeg.so* ...
#php -i | grep php.ini
#vi php.ini
Insert the following lines
[ffmpeg]
extension=ffmpeg.so
save the file
Now check in the phpinfo page.
Enjoying Linux!