IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    CentOS安装ffmpeg简单记录

    陈华发表于 2015-08-28 13:13:14
    love 0

    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

    自由转载,转载请注明: 转载自WEB开发笔记 www.chhua.com

    本文链接地址: CentOS安装ffmpeg简单记录 http://www.chhua.com/web-note5247

    随机笔记

    • PHP抽象类和抽象方法的使用
    • smarty实现PHP静态化的两种方法
    • jqueryUI slider插件详解
    • 给 Web 开发者的 25 款最有用的 AngularJS 工具
    • jQuery中的support属性详解



沪ICP备19023445号-2号
友情链接