$ aptitude install yasm libvorbis-dev libvpx-dev libsdl1.2-dev
$ mkdir -p ~/tmp/build && cd ~/tmp/build
$ git clone git://source.ffmpeg.org/ffmpeg.git
$ cd ffmpeg
$ ./configure --enable-libvorbis --enable-libvpx --prefix="$HOME/opt/pkg/ffmpeg"
$ make
$ make install