The Linux Journey

Getting Started

- What is Linux?
- Installing Ubuntu

Site Navigation

- Home
- About
- Recent News
- Downloads

Account

- Login
- Register
- Logout

Search



Other Links

free search engine website submission top optimization
Latest News


Installing a Fully Enabled ffmpeg
March 27th, 2008

There are some useful programs and scripts out there that require ffmpeg to work correctly, so I've decided to write a tutorial on getting it installed. This tutorial is aimed at Ubuntu users, but it may work for other distributions as well. The problem with ffmpeg on Ubuntu is that it doesn't come fully enabled, due to legal reasons. To fix this problem we need to build it from source. Type each of these line into the terminal. (Note that there are 3 lines here, each beginning with "sudo", however the formatting of this page may cause them to wrap to the next line.):

sudo apt-get build-dep ffmpeg
sudo apt-get install ffmpeg
sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 liba52-0.7.4-dev libx264-dev

The following line is for 64-bit Ubuntu users only:

sudo cp /usr/lib/libx264_pic.a /usr/lib/libx264.a

Now we are going to download the source code and go to the directory it was downloaded to:

apt-get source ffmpeg
cd ffmpeg-*/

Time to configure. Assuming you are using Ubuntu 7.04 or 7.10 type this command into the terminal:

./configure --enable-gpl --enable-pp --enable-pthreads \
        --enable-libogg --enable-liba52 --enable-libdts \
        --enable-dc1394 --enable-libgsm --disable-debug --enable-libmp3lame \
        --enable-libfaad --enable-libfaac --enable-xvid --enable-x264 


All that is left to do is install, which can be done with these commands:

make
sudo make install

OK hopefully everything went as planned and we didn't get any serious errors. If you are using 64-bit Ubuntu you have one more command to finish installing ffmpeg:

sudo apt-get install --reinstall libx264-dev

When installing ffmpeg myself I got my information from help.ubuntu.com, so if you run into any problems check that site out. That site isn't specifically for installing ffmpeg, but all of the information you need is there.





Comments




Type Your Comment Here. You must be logged in to comment.