Building ffmpeg with libfdk-aac and x265

If the audio track is a major component of what you're doing, you'll find in listening tests that Fraunhofer FDK AAC codec library sounds markedly better. This is best demonstrated on things like crashing ocean surf. Enough that you notice without even doing a side-by-side comparison.  The ffmpeg info is here.

However, this codec is no longer distributed with ffmpeg. You can build it and dynamically link it as a shared library like so

https://trac.ffmpeg.org/wiki/CompilationGuide/Quick/libfdk-aac

You may find that the version distributed doesn't decode DTS perfectly and gets errors like: 

[dca @ 0xa41a00] Overread auxiliary data by 32 bitss/s
[dca @ 0xa41a00] error decoding block
Error while decoding stream #0:0: Invalid data found when processing input

One option is to build from their guide lines. Some notes though. 
  • Refer to the quick compilation guide to grab the packages out of git when possible.
  • sudo apt-get install libass-dev libtheora-dev libvorbis-dev


Comments