CentOS6.2安装ffmpeg简单记录

ffmpeg
下载地址:http://ffmpeg.mplayerhq.hu/download.html#releases
下载文件:ffmpeg-2.0.1.tar.bz2
编译:./configure –prefix=/usr –enable-gpl –enable-shared –enable-version3 –enable-nonfree –enable-libmp3lame –enable-libvorbis –enable-libxvid –enable-libx264 –enable-libfaac –enable-pthreads –disable-ffserver –disable-ffplay –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libtheora

下面开始解决各种错误
1,ERROR: libmp3lame >= 3.98.3 not found

http://sourceforge.net/projects/lame/files/lame/

lame-3.99.5.tar.gz
PS:没有多说就是按通常源码安装三板斧进行即可。

2,yasm not found,use –disable-yasm for a crippled build

http://www.tortall.net/projects/yasm/releases/

yasm-1.2.0.tar.gz
[root@localhost yasm-1.2.0]# ./configure
[root@localhost yasm-1.2.0]# make
[root@localhost yasm-1.2.0]# make install

3,ERROR: libfaac not found

http://sourceforge.net/projects/faac/files/faac-src/faac-1.28/

faac-1.28.tar.bz2
编译FAAC-1.28时遇到错误
mpeg4ip.h:126: error: new declaration ‘char* strcasestr(const char*,const char*)’
解决方法
从123行开始修改文件mpeg4ip.h,到129行结束。
修改前:
#ifdef __cplusplus
extern “C” {
#endif
char *strcasestr(const char *haystack,const char *needle);
#ifdef __cplusplus
}
#endif

修改后:
#ifdef __cplusplus
extern “C++” {
#endif
const char *strcasestr(const char *haystack,sans-serif; line-height:17.4px"> 再编译:
1035 ./bootstrap
1044 ./configure –with-mp4v2
1045 make
1046 make install

4,ERROR: libopencore_amrnb not found

http://sourceforge.net/projects/opencore-amr/files/opencore-amr/

opencore-amr-0.1.3.tar.gz
1034 ./configure
1035 make
1036 make install

5,ERROR: libvorbis not found

http://downloads.xiph.org/releases/vorbis/

libvorbis-1.3.3.tar.gz

*** Could not run Ogg test program,checking why…
*** The test program Failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means Ogg was incorrectly installed
*** or that you have moved Ogg since it was installed.
configure: error: must have Ogg installed!

http://downloads.xiph.org/releases/ogg/?C=M;O=D

libogg-1.3.1.tar.gz
1048 ./configure
1049 make install

6,ERROR: libx264 not found
git clone git://git.videolan.org/x264.git
x264.tar.bz2
1009 ./configure –enable-shared
1010 make
1011 make install

7,ERROR: libxvid not found

http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz

1030 cd build/
1031 ls
1032 cd generic/
1033 ls
1034 ./configure
1035 make
1036 make install

8,ERROR: libtheora not found

http://downloads.xiph.org/releases/theora/?C=M;O=D

libtheora-1.2.0alpha1.tar.gz
1042 tar xzf libtheora-1.2.0alpha1.tar.gz
1043 cd libtheora-1.2.0alpha1
1044 ls
1045 ./configure
1046 make
1047 make install
1048 history


http://www.lenky.info/archives/2013/10/2349

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native