aacenc_tns: implement temporal noise shaping

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

This commit implements temporal noise shaping support in the encoder, along with an -aac_tns option to toggle it on or off (off by default for now). TNS will increase audio quality and reduce quantization noise by applying a multitap FIR filter across allowed coefficients and transmit side information to the decoder so it could create an inverse filter.

Users are encouraged to test the new functionality by enabling
-aac_tns 1 during encoding.

No major bugs are observable at this time so after a while if no new problems appear and if the current implementation is deemed of high enough quality and stability it will be enabled by default, possibly at the same time the encoder has its experimental flag removed and becomes the standard aac encoder in ffmpeg.

a1c487e aacenc_tns: implement temporal noise shaping
libavcodec/Makefile | 1 +
libavcodec/aac.h | 1 +
libavcodec/aaccoder.c | 9 ++
libavcodec/aacenc.c | 23 +++--
libavcodec/aacenc.h | 3 +
libavcodec/aacenc_tns.c | 235 +++++++++++++++++++++++++++++++++++++++++++++++
libavcodec/aacenc_tns.h | 45 +++++++++
7 files changed, 311 insertions(+), 6 deletions(-)

  • Share