[opus] Fwd: [codec] Last proposal for the update draft
jmvalin at jmvalin.ca
Fri Jun 17 15:02:35 UTC 2016
FYI, I'm proposing the following update to the Opus spec to improve
low-bitrate hybrid quality. If you'd like to comment, you can reply to
-------- Forwarded Message --------
Subject: [codec] Last proposal for the update draft
Date: Fri, 17 Jun 2016 08:26:04 -0400
From: Jean-Marc Valin <jmvalin at jmvalin.ca>
To: codec at ietf.org <codec at ietf.org>
I've been working on completing the update draft and have come across
one last thing that I think should be updated in the spec. This was
discovered through running hybrid mode at low rates, around 16 kb/s.
At those rates, we sometimes only have enough bits to code a single
CELT band (8 - 9.6 kHz). When that happens in hybrid mode (unlike
CELT-only), the second band (CELT band 18, from 9.6 to 12 kHz) cannot
use folding because it is wider than the amount already coded, and
falls back to LCG noise. Because it can also happen on transients
(e.g. stops), it can cause audible pre-echo.
My proposed solution is to fix the folding behaviour so that it is
never forced to fall back to LCG due to not enough folding data. This
is achieved by simply repeating part of the first band in the folding
of the second band. The proposed patch is available at:
It's a decoder-only change and it fixes the low-bitrate pre-echo
problem. I uploaded a short example that demonstrates the problem and
the fix. This is before the change:
and this is after the change:
Note especially the "t" in the word "tour", which has noticeable HF
pre-echo in the "before" file. Both files are decoded from the same 16
kb/s CBR bit-stream.
The fix does not impact compatibility, because the improvement does
not depend on the encoder doing anything special. I also do not see
any case where an encoder could have effectively used the current
broken behaviour to improve quality over the proposed change.
For these reasons, I think it should be included in the update draft.
codec mailing list
codec at ietf.org
More information about the opus