ffmpeg安装
http://coralzd.blog.51cto.com/90341/647184
http://ahead51.blog.51cto.com/179590/405081
http://blog.joyl.cc/log/69.html
yum -y install lame lame-devel libogg libogg-devel dirac dirac-devel libvorbis libvorbis-devel SDL SDL-devel gsm gsm-devel libvpx libvpx-devel libvpxlame-devel xvidcore xvidcore-devel faac faac-devel opencore-amr opencore-amr-devel yasm faad2 a52dec libfaac
yum -y install libfaac
wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2
tar jxf libtheora-1.1.1.tar.bz2
cd libtheora-1.1.1
./configure --prefix=/usr --with-ogg=/usr --with-vorbis=/usr --with-sdl-prefix=/usr
wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
tar jxf last_x264.tar.bz2
cd x264-snapshot-20110822-2245
./configure --prefix=/usr --enable-shared --disable-asm
make
make install
wget http://ffmpeg.org/releases/ffmpeg-0.8.12.tar.gz
wget http://ffmpeg.org/releases/ffmpeg-0.8.2.tar.gz
tar zxf ffmpeg-0.8.2.tar.gz
cd ffmpeg-0.8.2
./configure --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --disable-indev=v4l --disable-indev=v4l2 --enable-avfilter --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab --disable-yasm
make install
./configure --enable-libvorbis --enable-libxvid --enable-gpl --enable-shared --disable-yasm --enable-filter=drawtext
./configure --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-gpl --enable-shared --disable-yasm --enable-filter=drawtext
export LD_LIBRARY_PATH=/usr/local/lib/
./configure --enable-gpl --enable-postproc --enable-nonfree --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libfaac --disable-ffserver --disable-ffplay --disable-yasm