使用:
- faac
- faad
- x264
- mplayer
- ffmpeg
- amrwb+amrnb+26204-700.zip+26104-700.zip(用以解码3gp视频)
faac:
faad:./configure
make
make install
x264:./configure
make
make install
mplayer和ffmpeg下载每日完全快照:./configure --enable-shared
make
make install
http://www.mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2
http://www.ffmpeg.org/releases/ffmpeg-checkout-snapshot.tar.bz2
amrwb+amrnb+26204-700.zip+26104-700.zip:
amrwb是3gp的amr解码器,后面那两个zip文件是3gpp的ts的标准的源代码,对这个的解释如下:
The library itself is actually just a wrapper around the original code
released by 3GPP.
如果你的服务器不能连接外网,需要把这两个文档从
http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-700.zip
http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-700.zip
这两个地址下载来分别放在amrwb和amrnb的源代码的根目录下。
./configure
make
make install
ffmpeg:
./configure --prefix=/opt/DistributedConvertProgram/mediaPrograms/ffmpeg --enable-libfaac --enable-libfaad --enable-libx264 --enable-gpl --enable-shared --enable-libamr-nb --enable-libamr-wb --enable-nonfree
make
make install
简单说明:
x264要使用--enable-shared的原因是ffmpeg编译的时候需要libx264.so
ffmpeg使用--enable-shared的原因也是如此.
最后:
注意,你可能要修改/etc/ld.so.conf这个文件,在其中加入对应的lib地址,并ldconfig才能保证不出现*.so文件找不到的情况
---------------------------------------------------------------------------------
09-03-11更新:ffmpeg编译时未添加amr支持,导致不支持3gp解码,已添加在上面.
没有评论:
发表评论