aacenc: implement the complete AAC-Main profile

Multimedia / FFmpeg - Rostislav Pehlivanov [gmail.com] - 21 August 2015 13:38 UTC

This commit finalizes AAC-Main profile encoding support by implementing all mandatory and optional tools available in the specifications and current decoders.

The AAC-Main profile reqires that prediction support be present (although decoders don't require it to be enabled) for an encoder to be deemed capable of AAC-Main encoding, as well as TNS, PNS and IS, all of which were implemented with previous commits or earlier of this year.

Users are encouraged to test the new functionality using either-profile:a aac_main or -aac_pred 1, the former of which will enable the prediction option by default and the latter will change the profile to AAC-Main. No other options shall be changed by enabling either, it's currently up to the users to decide what's best.

The current implementation works best using M/S and/or IS, so users are also welcome to enable both options and any other options (TNS, PNS) for maximum quality.

76b81b1 aacenc: implement the complete AAC-Main profile
libavcodec/Makefile | 1 +
libavcodec/aac.h | 5 +
libavcodec/aaccoder.c | 21 +++
libavcodec/aacenc.c | 33 ++++-
libavcodec/aacenc.h | 5 +
libavcodec/aacenc_pred.c | 365 ++++++++++++++++++++++++++++++++++++++++++++++
libavcodec/aacenc_pred.h | 51 +++++++
7 files changed, 479 insertions(+), 2 deletions(-)

  • Share