LinuxQuestions.org
Social Bookmarking all things Linux and Open Source
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Thread Tools
Old 10-05-2008, 05:08 AM   #1
mitesh.ever
LQ Newbie
 
Registered: May 2006
Posts: 22
Thanked: 0
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod


[Log in to get rid of this advertisement]
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encoder, and Libog. we are using CentOS release 5.2 (Final)

I want to install these from SSH.

i am using this code but getting problem.

WTO - Install ffmpeg and ffmpeg-php on CentOS system

Following the laces to be used for installing ffmpeg and ffmpeg-php (and relative codecs and dependences) in a system CENTOS. To suit the run of the file php.ini for the system.

cd /usr/src/
mkdir ffmpeg
cd ffmpeg/
wget http://www3.mplayerhq.hu/MPlayer/rel...061022.tar.bz2
wget http://rubyforge.org/frs/download.ph..._1.0.5_rc6.tgz
wget http://easynews.dl.sourceforge.net/s...me-3.97.tar.gz
wget http://superb-west.dl.sourceforge.ne...php-0.5.0.tbz2
wget http://downloads.xiph.org/releases/o...g-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/v...s-1.1.2.tar.gz
bunzip2 essential-20061022.tar.bz2
tar xvf essential-20061022.tar
tar zxvf flvtool2_1.0.5_rc6.tgz
tar zxvf lame-3.97.tar.gz
bunzip2 ffmpeg-php-0.5.0.tbz2
tar xvf ffmpeg-php-0.5.0.tar
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz
mkdir /usr/local/lib/codecs/
mv essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/
yum install -y subversion
yum install -y ruby
yum install -y ncurses-devel
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd lame-3.97
./configure
make
make install
cd ..
cd libogg-1.1.3
./configure
make
make install
cd ..
cd libvorbis-1.1.2
./configure
make
make install
cd ..
cd flvtool2_1.0.5_rc6
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
cd ..
cd mplayer/
./configure
make
make install
cd ..
cd ffmpeg
mkdir /home/tmp
export TMPDIR=/home/tmp
./configure --enable-libmp3lame --enable-libogg --enable-libvorbis --disable-mmx --enable-shared
echo '#define HAVE_LRINTF 1' >> config.h
make
make install
ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51
cd ..
cd ffmpeg-php-0.5.0
phpize
./configure
make
make install
### for cpanel insert in /usr/lib/php.ini
### for other system insert in /etc/php.ini
echo 'extension=ffmpeg.so' >> /usr/lib/php.ini
service httpd restart
php -r 'phpinfo();' | grep ffmpeg
mitesh.ever is offline     Reply With Quote
Old 10-06-2008, 02:00 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 16,716
Blog Entries: 30
Thanked: 283
So what's your question?
unSpawn is offline     Reply With Quote
Old 10-06-2008, 02:02 PM   #3
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 610
Thanked: 5
If you have root access try yum, you can install many if not all those apps with yum. Might have to enable extra repos.
ncsuapex is offline     Reply With Quote
Old 10-15-2008, 10:59 AM   #4
kromberg
Member
 
Registered: Feb 2007
Location: Colorado
Distribution: FC6, FC7 x86_64
Posts: 216
Thanked: 0
Do you have to add a repository because yum can not find many of those packages for RHEL5?
kromberg is offline     Reply With Quote
Old 05-16-2009, 12:50 PM   #5
jjrjr1
LQ Newbie
 
Registered: May 2009
Location: San Pedro - Los Angeles Harbor, California, USA
Distribution: CentOS 5 64bit
Posts: 4
Thanked: 0
A solution I found for installing FFMPEG and Mencoder and all the required codecs

Hi

I needed to install a complete ffmpeg and mencoder setup including all the codecs to allow conversion of all video formats. I came across this and it was everything I needed for installing ffmpeg and mencoder with all the codecs required for converting all video formats.

This package has included in it complete instructions for installing ffmpeg, mencoder, flvtool2, mp3lame, faad, faac, h264, vorbis, 3gp and 3g2 codecs and more. It even included the current ffmpeg-php. All the software was the latest and most current version.

Before I found this I found myself spending hours searching, downloading source code and codecs to find out I did not have the proper stuff.

After finding this package, I found everything needed for a complete installation of ffmpeg and mencoder including every utility, codec, software, and instructions required to implement it properly.

I have already used it a half a dozen times and this thing saved me so much time and money, I actually am making some money on the installation projects.

Anyway you can find it here: removed advertising

I hope this is helpful.

Let me know.

John

Last edited by XavierP; 05-17-2009 at 02:46 AM..
jjrjr1 is offline     Reply With Quote
Old 05-16-2009, 01:14 PM   #6
TB0ne
Senior Member
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, Mandrake, RedHat, Gentoo, Slack
Posts: 4,069
Thanked: 142
Quote:
Originally Posted by jjrjr1 View Post
Hi

I needed to install a complete ffmpeg and mencoder setup including all the codecs to allow conversion of all video formats. I came across this and it was everything I needed for installing ffmpeg and mencoder with all the codecs required for converting all video formats.

This package has included in it complete instructions for installing ffmpeg, mencoder, flvtool2, mp3lame, faad, faac, h264, vorbis, 3gp and 3g2 codecs and more. It even included the current ffmpeg-php. All the software was the latest and most current version.

Before I found this I found myself spending hours searching, downloading source code and codecs to find out I did not have the proper stuff.

After finding this package, I found everything needed for a complete installation of ffmpeg and mencoder including every utility, codec, software, and instructions required to implement it properly.

I have already used it a half a dozen times and this thing saved me so much time and money, I actually am making some money on the installation projects.

Anyway you can find it here: removed advertising

I hope this is helpful.

Let me know.

John
Yes, for only $50, too...what a deal. Much cheaper than typing in "yum install ffmpeg", or reading some instructions.

Last edited by XavierP; 05-17-2009 at 02:46 AM..
TB0ne is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Green screen after video conversion, AVI to MP4 using Mencoder,Mplayer,FFmpeg,x264, manuken Linux - Newbie 4 10-29-2008 07:40 PM
Does the latest version of ffmpeg not work with ffmpeg-php? whitey4900 Linux - Software 0 08-06-2008 02:44 AM
ffmpeg mencoder and lavc keratos Ubuntu 2 05-17-2007 02:48 PM
FFMPEG vs MPLAYER vs MENCODER and batch conversions to MP4 ? AngusM Linux - Software 2 11-08-2006 09:20 AM
Using FFMPEG with Xvid and lame mashed Linux - Software 1 04-08-2006 12:42 PM


All times are GMT -5. The time now is 12:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration