I have had the pleasure to install and reinstall ffmpeg on an linux (debian) host and thought that i should share my experience. Or at least save it for myself.

I have tried getting ffmpeg directly from apt-get but it didn’t have all the libraries that i needed for the server dependencies, so i ended up having to install it directly from source.

This simple steps worked fine for me..

First of all, add the debian multimedia deb repositories to your sources.list.

deb http://www.debian-multimedia.org/ etch main
deb-src http://www.debian-multimedia.org/ etch main

run command apt-get install debian-multimedia-keyring and apt-get update to get the package lists.

Install subversion, we will need it to get source from ffmpeg homesite
apt-get install subversion

Get all the libraries needed
apt-get install liba52-dev libdts-dev libgsm1-dev libvorbis-dev libxvidcore4 libxvidcore-dev libdc1394-dev libfaac-dev libfaad-dev liblame-dev libx264-dev libtheora-dev libsdl1.2-dev

Get all the build dependencies for ffmpeg
apt-get build-dep ffmpeg

install yasm, needed for x264

wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.1.tar.gz
tar xzvf yasm-0.7.1.tar.gz
make install

get and install x264

wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20080630-2245.tar.bz2
bunzip2 < x264-snapshot-20080630-2245.tar.bz2 | tar -xf -
./configure --enable-shared
make install

get the ffmpeg code

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk

go into the dir, then configure and make

./configure --enable-libmp3lame --enable-libtheora --enable-liba52 --enable-libx264 --enable-libgsm --enable-postproc --enable-libxvid --enable-libfaac --enable-pthreads --enable-libvorbis --enable-libfaad --enable-gpl --enable-x11grab --enable-libamr-nb --enable-libamr-wb --enable-nonfree --enable-shared --disable-vhook --prefix=/usr/local --extra-cflags=-I/usr/include --extra-ldflags=-L/usr/lib
make install

Run ldconfig to update lib-paths and then check to se if ffmpeg is responding. If not, reinstall it.. :(

ldconfig -v
ffmpeg -version