错误:必须安装libfdk_aac

 手机用户2502913375 发布于 2023-01-29 14:40

嗨,我正在尝试编译ffmpeg,但此错误显示:

?  ffmpeg [master] ./configure --enable-gpl --enable-version3 --enable-nonfree \
--enable-postproc --enable-libass \
--enable-libfaac --enable-nonfree --enable-libfdk-aac --enable-libfreetype \
--enable-libmp3lame --enable-libopencore-amrnb \
--enable-libopencore-amrwb --enable-libopenjpeg \
--enable-openssl --enable-libschroedinger --enable-libtheora \
--enable-libvo-aacenc --enable-libvorbis --enable-libvpx \
--enable-libx264 --enable-libxvid --prefix=/usr
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
ERROR: libfdk_aac must be installed and version must be >= 3.4.12.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.

我只是按照这个编译指南:https://trac.ffmpeg.org/wiki/MacOSXCompilationGuide

3 个回答
  • 自制ffmpeg

    几个FFmpeg贡献者和社区成员创建了一个新的Homebrew水龙头,其中包括许多选项*。这是因为从Homebrew FFmpeg核心公式中删除了选项。

      卸载ffmpeg是从Homebrew core安装的:

      brew uninstall ffmpeg
      

      启用存储库:

      brew tap homebrew-ffmpeg/ffmpeg
      

      查看可用选项(可选):

      brew options homebrew-ffmpeg/ffmpeg/ffmpeg
      

      安装ffmpeg与libfdk-AAC AAC编码器:

      brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac --HEAD
      

    有关更多信息,请参见varenc / homebrew-ffmpeg和FFmpeg Wiki:macOS。

    *请注意,此拍子不是来自FFmpeg项目本身。

    2023-01-29 14:41 回答
  • 您可以使用该编码库安装ffmpeg,如下所示:

    brew install ffmpeg --with-fdk-aac

    2023-01-29 14:41 回答
  • 第一次尝试

    brew install fdk-aac
    

    如果没有你可以像我一样编译

    git clone git://github.com/mstorsjo/fdk-aac
    cd fdk-aac
    autoreconf -i
    ./configure
    make install
    

    2023-01-29 14:42 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有