Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: libfdk_aac must be installed

Tags:

macos

ffmpeg

Hi I am trying to compile ffmpeg but this error shows:

☁  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
[email protected] 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.

I am simply following this compilation guide: https://trac.ffmpeg.org/wiki/MacOSXCompilationGuide

like image 536
xirukitepe Avatar asked Feb 04 '14 13:02

xirukitepe


3 Answers

homebrew-ffmpeg

A few FFmpeg contributors and community members created a new Homebrew tap*, homebrew-ffmpeg, that includes many options. This is in response to the removal of options from the core Homebrew FFmpeg formulae.

  1. Uninstall ffmpeg you installed it from Homebrew core:

    brew uninstall ffmpeg
    
  2. Enable the repository:

    brew tap homebrew-ffmpeg/ffmpeg
    
  3. View available options (optional):

    brew options homebrew-ffmpeg/ffmpeg/ffmpeg
    
  4. Install ffmpeg with the libfdk-aac AAC encoder:

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

See homebrew-ffmpeg and FFmpeg Wiki: macOS for more info.

* Note that this tap is not from the FFmpeg Project itself.

like image 180
llogan Avatar answered Nov 08 '22 04:11

llogan


You can install ffmpeg with that encoding library like so:

brew install ffmpeg --with-fdk-aac

like image 21
tmadsen Avatar answered Nov 08 '22 03:11

tmadsen


First try

brew install fdk-aac

Failing that you can compile like I do

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

Example

like image 13
Zombo Avatar answered Nov 08 '22 03:11

Zombo