重新编译了一下ffmpeg,备份一下记录
root@chenxi-userver:/opt/ffmpeg-0.11.1#uname -a
Linux chenxi-userver 3.2.0-27-generic-pae #43-Ubuntu SMP Fri Jul 6 15:06:05 UTC 2012 i686 i686 i386 GNU/Linux
下载 yasm, ffmpeg-0.11.1 以及各类 codec
root@chenxi-userver:/opt#ls -lrt
总用量 52
drwxrwxr-x 8 chenxi chenxi 4096 5月 23 2011 xvidcore
drwxr-xr-x 16 chenxi chenxi 4096 6月 8 05:01 ffmpeg-0.11.1
drwx------ 2 chenxi chenxi 16384 8月 6 20:38 lost+found
drwxr-xr-x 10 chenxi chenxi 4096 8月 6 22:42 x264-snapshot-20120805-2245
drwxrwxr-x 7 chenxi chenxi 4096 8月 6 22:52 libogg-1.3.0
drwxr-sr-x 13 chenxi chenxi 4096 8月 6 22:58 libvorbis-1.3.3
drwxr-xr-x 9 chenxi chenxi 4096 8月 6 23:31 faad2-2.7
drwxr-xr-x 9 chenxi chenxi 4096 8月 7 21:06 faac-1.28
drwxr-xr-x 15 chenxi chenxi 4096 8月 7 21:08 lame-3.99.5
drwxr-xr-x 8 chenxi chenxi 4096 8月 7 21:16 opencore-amr-0.1.3
还有个 libvpx
如需编译 ffplay 还需安装 SDL:http://www.libsdl.org/download-1.2.php
用 ./configure --help 查看配置选项,编译好各类 Codec
然后再编译 ffmpeg
./configure --enable-gpl --enable-nonfree --enable-version3 --enable-shared --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-libvpx
make
make install