linuxtags

How to Install ffmpeg in CentOS 5.6 x86-64

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

How to install ffmpeg-php module

#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!








Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

linuxtags calender

February 2012
M T W T F S S
« Mar    
 12345
6789101112
13141516171819
20212223242526
272829  

Ashwin

Follow

Get every new post delivered to your Inbox.