1>
sudo apt-get -y install autoconf automake build-essential git libass-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev
libvorbis-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html zlib1g-dev
2>
sed -i 's#) ytasm.*#)#' Makefile.in && ./configure --prefix=/usr && make
3>
ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/
bin" --enable-static
4>
git clone git@github.com:mstorsjo/fdk-aac.git
autoreconf –fiv
./configure --prefix="$HOME/ffmpeg_build" --disable-shared
5>
sudo apt-get install libmp3lame-dev libopus-dev
6>
git clone http://git.chromium.org/webm/libvpx.git
./configure --prefix="$HOME/ffmpeg_build" --disable-examples
7>
git clone --depth 1 git://source.ffmpeg.org/ffmpeg
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"
export PKG_CONFIG_PATH
./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --extra-libs="-ldl" --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab