• 在Linux上下载和安装AAC音频编码器FAAC


    Linux上FAAC的安装

    安装

    1. 下载
      http://downloads.sourceforge.net/faac/faac-1.28.tar.gz

    2. 解压
      tar zxvf faac-1.28.tar.gz
      ./bootstrap
      ./configure --prefix=/usr/local/ --enable-shared
      make && make install

    3. 运行faac

       [root@localhost faac-1.28]# faac
       
       Freeware Advanced Audio Coder
       FAAC 1.28
      
       Usage: faac [options] [-o outfile] infiles ...
           <infiles> and/or <outfile> can be "-", which means stdin/stdout.
      
       See also:
       	"faac --help" for short help on using FAAC
       	"faac --long-help" for a description of all options for FAAC.
       	"faac --license" for the license terms for FAAC.
      

    如果出现上述结果则表示正确

    错误处理

    1. 我在make的时候就出现了两次错误,总结出来跟大家分享

       In file included from mp4common.h:29,
                    from 3gp.cpp:28:
       mpeg4ip.h:126: error: new declaration ‘char* strcasestr(const char*, const char*)’
       /usr/include/string.h:367: error: ambiguates old declaration ‘const char* strcasestr(const char*, const char*)’
       make[3]: *** [3gp.o] Error 1
       make[3]: Leaving directory `/home/rexevol/FFMEPG_preinstall_toolkit/faac-1.28/common/mp4v2'
       make[2]: *** [all-recursive] Error 1
       make[2]: Leaving directory `/home/rexevol/FFMEPG_preinstall_toolkit/faac-1.28/common'
       make[1]: *** [all-recursive] Error 1
       make[1]: Leaving directory `/home/rexevol/FFMEPG_preinstall_toolkit/faac-1.28'
       make: *** [all] Error 2
      

      解决办法:http://blog.csdn.net/yymcool/article/details/7185857

    2. 运行错误:

       error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory
      

      解决办法:http://blog.csdn.net/newthinker_wei/article/details/8843133

      详细解决办法:
      vi /etc/ld.so.conf.d/facc.conf
      添加一行faac库的安装地址,如:/usr/local/lib
      执行/sbin/ldconfig -v

  • 相关阅读:
    pymysql
    flask WTForms
    线程安全问题
    flask学习2
    @functools.wraps(func)
    Solidity开发神器Remix
    Web3j实现智能合约
    基于Ubuntu Docker环境下进行以太坊实践
    以太坊RLP机制分析
    以太坊网络服务分析
  • 原文地址:https://www.cnblogs.com/wayns/p/faac-install.html
Copyright © 2020-2023  润新知