zoukankan      html  css  js  c++  java
  • RHEL6.3下编译安装ffmpeg

    首先是安装ffmpeg的环境
    RHEL6.3 i386

    本文中安装所需包可在这里下载:http://pan.baidu.com/share/link?shareid=2927227960&uk=4045574093
    参考文档http://yezi.iteye.com/blog/139399
    本人以2为准 参考文档2 http://www.ubooo.com/Linux/Other/48331.html
    问题灵感文章:http://translate.googleusercontent.com/translate_c?depth=1&langpair=auto%7Czh-CN&rurl=translate.google.com.hk&u=http://serverfault.com/questions/122974/ffmpeg-installation-error&usg=ALkJrhj8N6fpiNI7GYN0sauJELUMgjiXlQ
    https://github.com/mxcl/homebrew/issues/15288
    RHEL6.3-253 源码解压目录统一放在/root/mp3/
    http://ffmpeg.org/releases/ 可以下载所有版本的ffmpeg 建议使用0.5.1

    重要!!!./configure --enable-gpl --enable-shared --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-pthreads --disable-ffserver --disable-ffplay
    由于精简过后 有些包的支持不需要安装了 因为ffmpeg已经不再支持扩展了!!
    1.lame
    Url:http://sourceforge.net/project/showfiles.php?group_id=290&package_id=309
    下载最新的就可以
    1.tar -zxvf lame-3.97.tar.gz
    2.cd lame-3.97
    3../configure --enable-shared
    4.make
    5.make install

    2、libogg
    Url:http://downloads.xiph.org/releases/ogg/
    1../configure
    2.make
    3.make install

    3、libvorbis
    Url:http://downloads.xiph.org/releases/vorbis/
    1../configure
    2.make
    3.make install

    4、xvid
    Url:http://downloads.xvid.org/downloads/
    1.tar zvxf xvidcore-1.1.3.tar.gz
    2.cd xvidcore-1.1.3/build/generic
    3../configure
    4.make
    5.make install

    5、x264
    Url:http://www.videolan.org/developers/x264.html
    ftp://ftp.videolan.org/pub/videolan/x264/snapshots/
    1.bunzip2 x264-snapshot-20070913-2245.tar.bz2
    2.tar xvf x264-snapshot-20070913-2245.tar
    3../configure --enable-shared
    4.make
    5.make install

    6、libdts
    [url]http://download.videolan.org/pub/videolan/libdca/0.0.2/
    1.tar zxvf libdts-0.0.2.tar.gz
    2.cd libdts-0.0.2
    3../configure
    4.make
    5.make install

    7、a52
    这个包没找到 在网上搜寻下载的 a52dec-0.7.4.tar.gz
    gzip -d a52dec-0.7.4.tar.gz
    解压tar xvf a52dec-0.7.4.tar.gz
    cd a52dec-0.7.4
    ./configure
    make
    make install

    8、faad2
    http://www.audiocoding.com/downloads.html
    tar zxvf
    2../configure --with-mp4v2 --enable-shared
    3.make
    4.make install

    9、faac
    http://linux.softpedia.com/progDownload/FAAC-Download-554.html
    这里需要注意下我下载的最新版本的包faac-1.26.tar.gz 可用 而最新版本的包28的用不了
    原因是在执行./bootstrap 时没反应 而26版执行时会有读条
    tar zxvf faac-1.26.tar.gz
    cd faac
    ./bootstrap
    ./configure --prefix=/usr
    make
    make install ////这篇文章比较新http://www.ubooo.com/Linux/Other/48331.html

    10、amr-nb
    amrnb-6.1.0.4.tar.bz2
    http://ftp.penguin.cz/pub/users/utx/amr/amrnb-6.1.0.4.tar.bz2

    ./configure --prefix=/usr
    make
    make install


    11、amr-wb
    amrwb-7.0.0.1.tar.bz2
    http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.1.tar.bz2
    安装方法:

    ./configure --prefix=/usr
    make
    make install

    12、lib52
    a52dec-0.7.4.tar.gz
    http://liba52.sourceforge.net/downloads.html
    安装方法:

    ./configure --prefix=/usr
    make
    make install

    ./configure --enable-gpl --enable-shared --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libamr-nb --enable-libamr-wb --enable-libxvid --enable-libx264 --enable-liba52 --enable-liba52bin --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-pp --enable-pthreads --disable-ffserver --disable-ffplay


    ./configure --prefix=/usr/local/lib/ --enable-gpl --enable-shared --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libamr-nb --enable-libamr-wb --enable-libxvid --enable-libx264 --enable-liba52 --enable-liba52bin --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-pp --enable-pthreads --disable-ffserver --disable-ffplay

    7、a52
    a52dec-0.7.4.tar.gz
    http://liba52.sourceforge.net/downloads.html
    安装方法:
    Java代码
    1../configure --prefix=/usr
    2.make
    3.make install

    12、lib52
    a52dec-0.7.4.tar.gz
    http://liba52.sourceforge.net/downloads.html


    上述的./configure 选项报错五
    nknown option "--enable-libogg".
    See ./configure --help for available options.

    ./configure --help 查看了下备选项 确实没有 --enable-libogg选项的支持
    只好去掉 然后有提示另一个--enable-lib*** 果断去掉该支持 根据提示全部
    不支持的都统统去掉 最终运行成功以下为:
    ./configure --enable-gpl --enable-shared --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-pthreads --disable-ffserver --disable-ffplay
    然后
    make 好长时间的等待 这下送了口气
    完成后没有error 和相关的错误
    make install
    安装完成 ///////在此时放松心情又看了外国的一个论坛也遇到同样的问题说可以试试ffmpeg 0.5.1 我在下载一个看看help支持 不

    INSTALL libpostproc/libpostproc.pc

    验证下 直接敲
    ffmpeg
    报错 提示找不到很多库
    find / -name | grep ****
    cat /usr/local/lib/
    发现找到了库文件
    这里有两种方法 1 把提示需要的库cp到/usr/lib/下 或者2 做连接:
    ln /usr/local/lib/* /usr/lib/ 忽略提示的信息
    在运行 ffmpeg
    出现了 ffmpeg软件的版本信息 哈哈
    这里说明安装成功!!

  • 相关阅读:
    88. Merge Sorted Array
    87. Scramble String
    86. Partition List
    85. Maximal Rectangle
    84. Largest Rectangle in Histogram
    83. Remove Duplicates from Sorted List
    82. Remove Duplicates from Sorted List II
    81. Search in Rotated Sorted Array II
    80. Remove Duplicates from Sorted Array II
    计算几何——点线关系(叉积)poj2318
  • 原文地址:https://www.cnblogs.com/patf/p/3135779.html
Copyright © 2011-2022 走看看