Tag Archives: aac

Compile ffmpeg with libfdk_aac support: encoding AAC with ffmpeg

I wanted to add libfdk_aac support to ffmpeg because the documentation says it’s the best quality option for AAC encoding.


The problem was that when I tried to configure ffmpeg with libfdk_aac using the “–enable-libfdk-aac” flag it gave me this error:

Unknown option "--enable-libfdk-aac".
See ./configure --help for available options.

I was compiling the what I thought it was latest ffmpeg version (0.11.5) available from the releases site and that was a huge mistake: the last release is 2.3.3 and ffmpeg is now using git. So I cloned the repository and then the “–enable-libfdk-aac” flag worked fine:

git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg

If you want to be sure ffmpeg will have support for libfdk_aac look for this line inside the “Enabled encoders” section when you run the configure command:

a64multi5          libfdk_aac         prores