Installing FFMpeg on CentOS/RedHat 5.x successfully
My primary Linux distribution of choice is CentOS. CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by RedHat. Thus CentOS is merely speaking a copy of RedHat and provides the same stability and security.
The trade off with stability and security is, that you mostly run packages which are not cutting edge and thus you run into issues where you need the cutting edge. This is the case with FFMpeg.
There is a DAG repository that give you FFMpeg in the yum installation, but that version is not working with libx264 or libfaac and still uses the older way of and might break some applications.
Thus I set out to find the best way to install FFMpeg. Since FFMpeg depends on a lot of external libraries we first have to install this external libraries.
Please follow the below steps one by one to install FFMpeg on CentOS/RedHat 5.x. successfully. Some of these libraries might be older (some even from 2008), thought I used what worked best for me and were stable in production environment.
Lets create a directory first
mkdir -p /opt/ffmpeg-packages
cd /opt/ffmpeg-packages
Installing FAAD2
wget http://downloads.sourceforge.net/faac/faad2-2.6.1.tar.gz
tar zxf faad2-2.6.1.tar.gz
cd faad2
autoreconf -vif
./configure –disable-drm –disable-mpeg4ip
make && make install
Installing FAAC
wget http://downloads.sourceforge.net/faac/faac-1.26.tar.gz
tar zxfv faac-1.26.tar.gz
cd faac
./bootstrap
./configure –disable-mp4v2
make && make install
Installing LAME
wget http://superb-east.dl.sourceforge.net/sourceforge/lame/lame-3.98b8.tar.gz
tar zxfv lame-3.98b8.tar.gz
cd lame-3.98b8
./configure
make && make install
Installing yasm
wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.0.tar.gz
tar zfvx yasm-0.7.0.tar.gz
cd yasm-0.7.0
./configure
make && make install
Installing x264
FFMpeg requires that you get the latest x264 codec. Thus we use the latest from their GIT repository.
git clone git://git.videolan.org/x264.git
cd x264
./configure –enable-shared –prefix=/usr && make && sudo make install
Installing Xvid
wget http://downloads.xvid.org/downloads/xvidcore-1.2.1.tar.gz
tar zxfv xvidcore-1.2.1.tar.gz
cd xvidcore/build/generic
./configure
make && make install
Installing FFmpeg
For FFMPEG, you will need to get the latest out of SVN.
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure –enable-gpl –enable-postproc –enable-nonfree –enable-postproc \
–enable-libfaad –enable-avfilter –enable-pthreads –enable-libxvid \
–enable-libx264 –enable-libmp3lame –enable-libfaac –disable-ffserver –disable-ffplay
make
make install
The “make” of FFmpeg can take up to 5 minutes, so please be patience. I also disable “FFServer” and “FFplay” on my servers. Please adjust to your environment.
Hope this helps.
Dear admin, thnx for sharing this blog post. I discovered it wonderful. Finest regards, Victoria…
Took me time to be able to examine most the remarks, but I genuinely appreciated the post. It turned out to be Really helpful to me and I am certain to just about all the commenters here as well! It’s definitely great when you can not merely be enlightened, but additionally amused! I’m sure you had fun composing this kind of post.
I like this site. Very useful and very inspirational. Thanks a lot. This will help me a lot.
I was wondering what I’d do with my three-dimensional devices
Holla, dis blog is da bomb, aiii!
Indeed yes! Thank you so much
Wow! Thank you! I continually wanted to write in my site one thing like that. Can I get important part of your post to my weblog?
Awesome post. Gracias!
Killer post. Gracias!
I like the writing structure of your site and it does a pretty good job of presenting the information.
It’s interesting how many videos and news come out on a weekly basis.
This is my first time visiting your blog. I do envy you since you seem to get a lot more comments then I do. Do you have any secret tips on how I can get more comments or do I just have to be paitent? Anyway, keep up the good work.
Wonderful post. Gracias!
This blog post hits the spot. I’ve been craving for some excellent information and finally discovered it right here. I’ve been browsing around the entire morning to find a good post to tell me what I need to know, but I have determined like 34 other blogs that just gave me senseless information!
Substantially, the post is actually the sweetest topic on curing acne naturally. I concur with your conclusions and will thirstily look forward to your future updates. Just saying thanks will not just be sufficient, for the tremendous lucidity in your writing. I will right away grab your rss feed to stay abreast of any updates.
Hi,
I just wanted to let you know that I have been following for a a couple of months on and off and I would like to sign up for the daily feed. I am not to computer smart so I’ll give it a try but I will need some help. This is a good find and I would hate to lose contact, and maybe never find it again.
Anyway, thanks again and I look forward to posting again in the future!
I like the writing theme of your site and it does a pretty nice job of presenting the info.
blog is erroring for me
hi there, nice blog this is that you have – i am really interested in reading more of your posts,keep up the good work!
Yikes this definitely takes me back, where is your contact details though?
Finally found something useful. You really have good points here. Thank you for sharing them!
Hi, was just browsing through the internet looking for some information and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject. Bookmarked this page, will come back for more. You, my friend, ROCK!!!
Well said, I could not agree more with you on this issue. I think your blog is very popular on this topic judging by all the other comments posted to it. I just wanted to leave a comment to appreciate your hard work.
In related news, Tiger Woods will play at The Masters. Every time he tees off the gallery will shout out an update on that traditional golf warning: “Whore”
I wanted to give thanks for this great read!! I added to my bookmarks, thanks a ton
I still cant afford an ipad for myself
Do u have any thoughts on what Apple will come out with after the ipad?
Hopefully ill get an ipad within the next 2 weeks. Where did u buy yours?