Под Debian Squeeze
echo "deb
http://www.deb-multimedia.org squeeze main non-free" >> /etc/apt/sources.list
apt-get install deb-multimedia-keyring
sudo apt-get update
sudo apt-get install build-essential subversion git-core checkinstall yasm libfaac-dev libfaad-dev libmp3lame-dev libtheora-dev libxvidcore4-dev libopencore-amrnb-dev libopencore-amrwb-dev libspeex-dev libavdevice52 libavfilter0 libavformat52 libdc1394-22 libswscale0 libusb-1.0-0 libdc1394-dev liba52-0.7.4 liba52-0.7.4-dev zlib1g-dev
1. YASM
cd ~
wget
http://www.tortall.net/projects/yasm/releases/yasm-1.1.0.tar.gz && \
tar -xf yasm-1.1.0.tar.gz && cd yasm-1.1.0 && ./configure
make
sudo checkinstall --pakdir "$HOME/Desktop" --pkgname yasm --pkgversion 1.1.0 \
--backup=no --default
2. ставим x264
cd ~
git clone git://git.videolan.org/x264.git
cd x264
./configure --enable-shared --enable-pic
make
sudo checkinstall --fstrans=no --install=yes --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`" --default
sudo ldconfig
3. Собираем ffmpeg
cd ~
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --enable-gpl --enable-postproc --enable-libdc1394 --enable-libmp3lame --enable-libfaac --enable-pthreads --enable-libx264 --enable-libxvid --enable-shared --enable-nonfree --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-version3
make
sudo checkinstall --fstrans=no --install=yes --pkgname=ffmpeg --pkgversion "4:0.5+svn`date +%Y%m%d`" --default