yasm,aptitude install pkg-config
x264,http://www.videolan.org/developers/x264.html,
./configure --enable-shared --prefix=【自定義目錄】
make
make install
export PKG_CONFIG_PATH=【上面定義的目錄裏的那個pkgconfig目錄】ffmpeg,https://github.com/ffmpeg
./configure --enable-shared --enable-libx264 --enable-gpl --prefix=【自定義目錄】
make
make install