CentOS编译ffmpeg和mencoder

  本来,在一起的博客上写的已经很完整了,可惜原来的纯技术博客被墙了,而同时,必须用到的一个amrnb和amrwb的下载网站也貌似被墙了,或者是挂了,无奈之下,又必须要用这个东西,所以用那个新的open amr。下载完编译好以后用这样的参数编译就好了。

mencoder的配置如下:(这次的配置关了不少东西,主要是没用)

因为开了theora,所以要去下个theora和ogg的源代码放到mplayer的目录下

cp -R include/theora ../mplayer-checkout-2009-11-20/ cp -R inclde/ogg ../mplayer-checkout-2009-11-20/

注意,这个ogg里面有个config_type.h.in,内容不对,且需要的文件名是config_type.h,这里搞不清楚什么原因没有,从1.0版里面直接拷了份内容过来:

#ifndef __CONFIG_TYPES_H__ #define __CONFIG_TYPES_H__ /* these are filled in by configure */ typedef int16_t ogg_int16_t; typedef int32_t ogg_int32_t; typedef u_int32_t ogg_uint32_t; typedef int64_t ogg_int64_t; #endif

  ./configure --prefix=/usr/local/mencoder --codecsdir=/usr/local/mencoder/codecs --win32codecsdir=/usr/local/mencoder/codecs --realcodecsdir=/usr/local/codecs --enable-x264 --enable-theora --enable-faad --enable-faac --enable-libopencore_amrnb --enable-libopencore_amrwb

 

ffmpeg的编译参数

./configure --prefix=/usr/local/ffmpeg --enable-libfaac --enable-libfaad --enable-libx264 --enable-gpl --enable-shared --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-nonfree --enable-version3

 

 

你可能感兴趣的:(centos,Types)