首页 > *nix技术 > CentOS6.2安装ffmpeg简单记录

CentOS6.2安装ffmpeg简单记录

2013年10月6日 发表评论 阅读评论 118 次浏览

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, const char *needle);
#ifdef __cplusplus
}
#endif

再编译:
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://lenky.info/archives/2013/10/06/2349http://lenky.info/?p=2349


备注:如无特殊说明,文章内容均出自Lenky个人的真实理解而并非存心妄自揣测来故意愚人耳目。由于个人水平有限,虽力求内容正确无误,但仍然难免出错,请勿见怪,如果可以则请留言告之,并欢迎来讨论。另外值得说明的是,Lenky的部分文章以及部分内容参考借鉴了网络上各位网友的热心分享,特别是一些带有完全参考的文章,其后附带的链接内容也许更直接、更丰富,而我只是做了一下归纳&转述,在此也一并表示感谢。关于本站的所有技术文章,欢迎转载,但请遵从CC创作共享协议,而一些私人性质较强的心情随笔,建议不要转载。

法律:根据最新颁布的《信息网络传播权保护条例》,如果您认为本文章的任何内容侵犯了您的权利,请以或书面等方式告知,本站将及时删除相关内容或链接。

分类: *nix技术 标签: ,
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.