patsissons
December 26th, 2006, 08:13 PM
This is a (very) quick tutorial on how to get ffmpeg installed with all the options enabled. It's really very easy.
first make sure that you have your deb-src entries uncommented in /etc/apt/sources.list otherwise you won't be able to get the build dependencies.
sudo apt-get install build-essential fakeroot
sudo apt-get build-dep ffmpeg
cd /tmp
apt-get source ffmpeg
cd ffmpeg*
DEB_BUILD_OPTIONS=risky fakeroot debian/rules binary
This will most likely error quickly, but this is expected. Look near the top of the build ouptut for a line similar to this:
debian/rules:41: Make sure these packages are installed: liblame-dev libfaad2-dev libfaac-dev libxvidcore-dev
take the packages listed there and install them, as well as their respective libraries (if they aren't already)
sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore-dev liblame0 libfaad2-0 libfaac0 libxvidcore4
DEB_BUILD_OPTIONS=risky fakeroot debian/rules binary
This will take a little while to compile, but afterwards you will be left with a few fresh new deb's in the parent folder
sudo dpkg -i ../*.deb
====================================
NOTE: this does not compile with x264 enabled. If you want x264 you have to do one more step after you download the ffmpeg source package. You must edit ./debian/rules and add the following lines:
weak-build-deps += libx264-dev
confflags += --enable-x264
above
$(warning Make sure these packages are installed: $(weak-build-deps))
first make sure that you have your deb-src entries uncommented in /etc/apt/sources.list otherwise you won't be able to get the build dependencies.
sudo apt-get install build-essential fakeroot
sudo apt-get build-dep ffmpeg
cd /tmp
apt-get source ffmpeg
cd ffmpeg*
DEB_BUILD_OPTIONS=risky fakeroot debian/rules binary
This will most likely error quickly, but this is expected. Look near the top of the build ouptut for a line similar to this:
debian/rules:41: Make sure these packages are installed: liblame-dev libfaad2-dev libfaac-dev libxvidcore-dev
take the packages listed there and install them, as well as their respective libraries (if they aren't already)
sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore-dev liblame0 libfaad2-0 libfaac0 libxvidcore4
DEB_BUILD_OPTIONS=risky fakeroot debian/rules binary
This will take a little while to compile, but afterwards you will be left with a few fresh new deb's in the parent folder
sudo dpkg -i ../*.deb
====================================
NOTE: this does not compile with x264 enabled. If you want x264 you have to do one more step after you download the ffmpeg source package. You must edit ./debian/rules and add the following lines:
weak-build-deps += libx264-dev
confflags += --enable-x264
above
$(warning Make sure these packages are installed: $(weak-build-deps))