AAC encoder: make pe.min a local minimum

Multimedia / FFmpeg - Claudio Freire [gmail.com] - 29 November 2015 12:03 UTC

As noted in a comment, pe.min in the reference encoder is centered around current pe. The bit reservoir algo needs pe.min to be a local minimum, because it can only account for local PE variations. If it's set to a global minimum as was being done, bit reservoir logic doesn't work as efficiently.

This patch tries to forget old minimums and converge to a local minimum without losing the stability of the previous solution. Listening tests until now suggest this solves numerous RC issues.

88e498a AAC encoder: make pe.min a local minimum
libavcodec/aacpsy.c | 13 ++++++++++---
tests/fate/aac.mak | 4 ++--
2 files changed, 12 insertions(+), 5 deletions(-)

  • Share