Fixing ffmpeg on Ubuntu
For various boring legal reasons, Ubuntu Linux’s various packages are separated out into different repositories based on their licensing restrictions. As a result of this, packages which are in the main repository but require packages in other repositories for additional functionality are compiled without those extra features.
Very tedious.
Here’s how to get a copy of ffmpeg to work with things like AAC, MP3, and so on. I am assuming that you have already enabled the ‘multiverse’ and ‘universe’ repositories. If not, do so first. Now, bust out a terminal, and type this (changing the cvs date as appropriate):
sudo apt-get build-dep ffmpeg
sudo apt-get install liblame-dev libfaad2-dev \
libfaac-dev libxvidcore4-dev checkinstall fakeroot
apt-get source ffmpeg
cd ffmpeg-0.cvs20050121
vi debian/rules
Add the following lines to debian/rules, under the other confflags lines:
confflags += --enable-mp3lame --enable-faad
confflags += --enable-faac --enable-xvid
Continuing in the terminal:
fakeroot debian/rules binary
sudo checkinstall
This will take some time, after which the process asks for some details. You can accept the default choices, except for the following changes:
* Set ‘Name’ to ‘ffmpeg’.
* Set ‘Version’ to something newer than the currently installed ffmpeg (I called mine ‘3:0.cvs20050121-1ubuntu2’).
After that, you should have a system-recognised, fully-loaded version of ffmpeg. If you have problems, leave a comment. The above method worked for me on 5.04; it might not work on also works on 5.10 according to reports. (Thanks, Kyle.)
Bookmarks