在Linux上下载和安装AAC音频编码器FAAC
Linux上FAAC的安装
安装
-
解压
tar zxvf faac-1.28.tar.gz
./bootstrap
./configure --prefix=/usr/local/ --enable-shared
make && make install -
运行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.
如果出现上述结果则表示正确
错误处理
-
我在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
-
运行错误:
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