当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 5 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : ffmpeg安装aac1.28
帖子发表于 : 2010-03-27 18:35 

注册: 2008-04-12 12:44
帖子: 980
送出感谢: 1
接收感谢: 2
我的ffmpeg经常出现问题,
Unknown encoder 'libfaac'
估计是aac的包没有安装,于是我下载了faac-1.28
准备自己编译安装,
make 的时候出现下面的问题,
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -Wall -g -O2 -MT 3gp.o -MD -MP -MF ".deps/3gp.Tpo" -c -o 3gp.o 3gp.cpp; \
then mv -f ".deps/3gp.Tpo" ".deps/3gp.Po"; else rm -f ".deps/3gp.Tpo"; exit 1; fi
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/pt/faac-1.28/common/mp4v2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/pt/faac-1.28/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pt/faac-1.28'
make: *** [all] Error 2
make install 出现下面的错误,
sudo make install
Making install in include
make[1]: Entering directory `/home/pt/faac-1.28/include'
make[2]: Entering directory `/home/pt/faac-1.28/include'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/include" || mkdir -p -- "/usr/local/include"
/usr/bin/install -c -m 644 'faac.h' '/usr/local/include/faac.h'
/usr/bin/install -c -m 644 'faaccfg.h' '/usr/local/include/faaccfg.h'
make[2]: Leaving directory `/home/pt/faac-1.28/include'
make[1]: Leaving directory `/home/pt/faac-1.28/include'
Making install in libfaac
make[1]: Entering directory `/home/pt/faac-1.28/libfaac'
make[2]: Entering directory `/home/pt/faac-1.28/libfaac'
test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib"
/bin/bash ../libtool --mode=install /usr/bin/install -c 'libfaac.la' '/usr/local/lib/libfaac.la'
/usr/bin/install -c .libs/libfaac.so.0.0.0 /usr/local/lib/libfaac.so.0.0.0
(cd /usr/local/lib && { ln -s -f libfaac.so.0.0.0 libfaac.so.0 || { rm -f libfaac.so.0 && ln -s libfaac.so.0.0.0 libfaac.so.0; }; })
(cd /usr/local/lib && { ln -s -f libfaac.so.0.0.0 libfaac.so || { rm -f libfaac.so && ln -s libfaac.so.0.0.0 libfaac.so; }; })
/usr/bin/install -c .libs/libfaac.lai /usr/local/lib/libfaac.la
/usr/bin/install -c .libs/libfaac.a /usr/local/lib/libfaac.a
chmod 644 /usr/local/lib/libfaac.a
ranlib /usr/local/lib/libfaac.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/pt/faac-1.28/libfaac'
make[1]: Leaving directory `/home/pt/faac-1.28/libfaac'
Making install in common
make[1]: Entering directory `/home/pt/faac-1.28/common'
Making install in mp4v2
make[2]: Entering directory `/home/pt/faac-1.28/common/mp4v2'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -Wall -g -O2 -MT 3gp.o -MD -MP -MF ".deps/3gp.Tpo" -c -o 3gp.o 3gp.cpp; \
then mv -f ".deps/3gp.Tpo" ".deps/3gp.Po"; else rm -f ".deps/3gp.Tpo"; exit 1; fi
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[2]: *** [3gp.o] Error 1
make[2]: Leaving directory `/home/pt/faac-1.28/common/mp4v2'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/pt/faac-1.28/common'
make: *** [install-recursive] Error 1
请问,这个问题如何解决??


页首
 用户资料  
 
2 楼 
 文章标题 : Re: ffmpeg安装aac1.28
帖子发表于 : 2010-03-27 18:46 

注册: 2008-04-12 12:44
帖子: 980
送出感谢: 1
接收感谢: 2
使用命令
whereis libfaac
得到输出,
libfaac: /usr/local/lib/libfaac.la /usr/local/lib/libfaac.so /usr/local/lib/libfaac.a
好像我的libfaac已经安装了,
但是看这个
FFmpeg version SVN-r19352-4:0.5+svn20090706-2ubuntu2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-version=4:0.5+svn20090706-2ubuntu2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include --enable-shared --disable-static
似乎又没有libfaac
请问,如何解决这个问题?


页首
 用户资料  
 
3 楼 
 文章标题 : Re: ffmpeg安装aac1.28
帖子发表于 : 2010-03-27 20:50 

注册: 2005-05-01 12:54
帖子: 920
送出感谢: 0 次
接收感谢: 0 次
ffmpeg的AAC的包应该是内部静态代码,跟外部的libfaac没什么关系


页首
 用户资料  
 
4 楼 
 文章标题 : Re: ffmpeg安装aac1.28
帖子发表于 : 2011-05-30 11:17 

注册: 2011-05-30 11:13
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
我也有同样的问题。最近做课题要用到ffmpeg,但是安装的时候也遇到LZ所述问题,求高人指点!


页首
 用户资料  
 
5 楼 
 文章标题 : Re: ffmpeg安装aac1.28
帖子发表于 : 2011-05-30 11:22 

注册: 2010-07-19 21:41
帖子: 22323
系统: OS X
送出感谢: 8
接收感谢: 42
aac 的解码应该是外置的 libfaac 的说,看似版权之类的问题…………


_________________
NO DO NO DIE
http://a/%%30%30


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 5 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译