您好我正在尝试编译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
答案 0 :(得分:19)
您可以使用该编码库安装ffmpeg,如下所示:
brew install ffmpeg --with-fdk-aac
答案 1 :(得分:11)
首先尝试
brew install fdk-aac
如果没有你可以像我一样编译
git clone git://github.com/mstorsjo/fdk-aac
cd fdk-aac
autoreconf -i
./configure
make install
答案 2 :(得分:1)
一些FFmpeg贡献者和社区成员创建了一个新的Homebrew水龙头,其中包括许多选项*。这是对删除Homebrew FFmpeg核心公式中的选项的反应。
卸载ffmpeg
是从Homebrew核心安装的:
brew uninstall ffmpeg
启用存储库:
brew tap varenc/ffmpeg
查看可用选项(可选):
brew options varenc/ffmpeg/ffmpeg
使用libfdk-aac AAC编码器安装ffmpeg
:
brew install varenc/ffmpeg/ffmpeg --with-fdk-aac --HEAD
有关更多信息,请参见varenc/homebrew-ffmpeg和FFmpeg Wiki: macOS。
*请注意,此拍子不是来自FFmpeg项目本身。