FDK AAC encoder supports many different AAC profiles and is considered to be one of the best AAC encoders there are, and certainly the best and most feature-complete AAC encoder supported by FFmpeg. It is originally from the Android Open Source Project (AOSP) as the standard AAC encoder in the Android platform, but it is packaged into a form suitable for system-wide installation as well.
In order to quickly compile your libfdk-aac library, you can type the following commands in your shell:
# apt-get install pkg-config autoconf automake libtool $ git clone https://github.com/mstorsjo/fdk-aac.git $ cd fdk-aac $ ./autogen.sh $ ./configure --enable-shared --enable-static $ make # make install # ldconfig
NOTE: You won't be able to build GPL-licensed FFmpeg with libfdk-aac. If you do, your FFmpeg will not be redistributable.