Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(529)

Issue 1415173005: Prevent Opus DTX from generating intermittent noise during silence (Closed)

Created:
5 years, 1 month ago by minyue-webrtc
Modified:
5 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, hlundin-webrtc, peah-webrtc, tlegrand-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Prevent Opus DTX from generating intermittent noise during silence. Opus may have an internal error that causes this. Here we make a workaround by adding some small disturbance to the input signals to break a long sequence of zeros. BUG=webrtc:5127 Committed: https://crrev.com/f475add57eada116bc960fe2935876ec8c077977 Cr-Commit-Position: refs/heads/master@{#10565}

Patch Set 1 #

Total comments: 3

Patch Set 2 : adding various frame sizes to unittest #

Total comments: 2

Patch Set 3 : new memory treatment and a test #

Total comments: 25

Patch Set 4 : refinement #

Patch Set 5 : rebase and a small fix #

Total comments: 13

Patch Set 6 : differentiate fixed-point from floating-point #

Patch Set 7 : some style changes #

Patch Set 8 : rebase #

Patch Set 9 : a fix after rebase #

Total comments: 27

Patch Set 10 : on Fredrik's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+372 lines, -62 lines) Patch
M webrtc/modules/audio_coding/codecs/opus/opus_inst.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/opus_interface.c View 1 2 3 4 5 6 3 chunks +74 lines, -31 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc View 1 2 3 4 5 6 7 8 9 10 chunks +83 lines, -31 lines 0 comments Download
M webrtc/modules/audio_coding/main/audio_coding_module.gypi View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
A webrtc/voice_engine/test/auto_test/voe_output_test.cc View 1 2 3 4 5 6 7 8 9 1 chunk +198 lines, -0 lines 0 comments Download
M webrtc/voice_engine/voice_engine.gyp View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (18 generated)
minyue-webrtc
Hi Tina, This is a fix to the DTX problem. The time to add disturbance ...
5 years, 1 month ago (2015-10-27 13:04:51 UTC) #3
tlegrand-webrtc
A question: is it necessary to check previous frame, to find if there are a ...
5 years, 1 month ago (2015-10-27 13:51:22 UTC) #4
minyue-webrtc
On 2015/10/27 13:51:22, tlegrand-webrtc wrote: > A question: is it necessary to check previous frame, ...
5 years, 1 month ago (2015-10-27 14:01:44 UTC) #5
minyue-webrtc
Hi Tina, It is gonna be an interesting discussion. I wrote some words but let's ...
5 years, 1 month ago (2015-10-27 18:29:01 UTC) #7
tlegrand-webrtc
Thanks for adding the new tests, and for the explanation. As we talked about offline, ...
5 years, 1 month ago (2015-10-28 13:20:37 UTC) #8
minyue-webrtc
I addressed the comment and added another test. I also added Karl to review since ...
5 years, 1 month ago (2015-10-29 14:31:11 UTC) #10
kwiberg-webrtc
https://codereview.webrtc.org/1415173005/diff/50001/webrtc/modules/audio_coding/codecs/opus/opus_inst.h File webrtc/modules/audio_coding/codecs/opus/opus_inst.h (right): https://codereview.webrtc.org/1415173005/diff/50001/webrtc/modules/audio_coding/codecs/opus/opus_inst.h#newcode22 webrtc/modules/audio_coding/codecs/opus/opus_inst.h:22: size_t* zero_counts; What is this number more exactly? The ...
5 years, 1 month ago (2015-10-29 16:35:22 UTC) #11
minyue-webrtc
Thank you for the review! now comes an undate. https://codereview.webrtc.org/1415173005/diff/50001/webrtc/modules/audio_coding/codecs/opus/opus_inst.h File webrtc/modules/audio_coding/codecs/opus/opus_inst.h (right): https://codereview.webrtc.org/1415173005/diff/50001/webrtc/modules/audio_coding/codecs/opus/opus_inst.h#newcode22 webrtc/modules/audio_coding/codecs/opus/opus_inst.h:22: ...
5 years, 1 month ago (2015-10-30 14:06:47 UTC) #12
minyue-webrtc
https://codereview.webrtc.org/1415173005/diff/50001/webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc File webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc (right): https://codereview.webrtc.org/1415173005/diff/50001/webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc#newcode107 webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc:107: EXPECT_LE(*audio, bound); On 2015/10/29 16:35:21, kwiberg-webrtc wrote: > Hmm, ...
5 years, 1 month ago (2015-10-30 14:08:40 UTC) #13
minyue-webrtc
clearly, a rebase is needed, plus that android compiler do not like "for (int i ...
5 years, 1 month ago (2015-10-30 16:53:06 UTC) #14
kwiberg-webrtc
On 2015/10/30 16:53:06, minyue-webrtc wrote: > clearly, a rebase is needed, plus that android compiler ...
5 years, 1 month ago (2015-11-01 01:39:49 UTC) #15
kwiberg-webrtc
https://codereview.webrtc.org/1415173005/diff/50001/webrtc/modules/audio_coding/codecs/opus/opus_interface.c File webrtc/modules/audio_coding/codecs/opus/opus_interface.c (right): https://codereview.webrtc.org/1415173005/diff/50001/webrtc/modules/audio_coding/codecs/opus/opus_interface.c#newcode127 webrtc/modules/audio_coding/codecs/opus/opus_interface.c:127: } On 2015/10/30 14:06:46, minyue-webrtc wrote: > On 2015/10/29 ...
5 years, 1 month ago (2015-11-01 02:01:55 UTC) #16
minyue-webrtc
To solve the failures on Android bots, I made a change, which offers a different ...
5 years, 1 month ago (2015-11-04 19:50:44 UTC) #17
minyue-webrtc
Now the changes around coding style that Karl commented on are also done. With massive ...
5 years, 1 month ago (2015-11-06 10:33:18 UTC) #18
kwiberg-webrtc
lgtm
5 years, 1 month ago (2015-11-07 16:09:23 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415173005/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415173005/130001
5 years, 1 month ago (2015-11-07 20:09:49 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_clang_dbg/builds/8734) ios_arm64_dbg on tryserver.webrtc (JOB_FAILED, ...
5 years, 1 month ago (2015-11-07 20:10:40 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415173005/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415173005/210001
5 years, 1 month ago (2015-11-07 21:39:27 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/1605)
5 years, 1 month ago (2015-11-07 21:44:08 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415173005/230001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415173005/230001
5 years, 1 month ago (2015-11-08 09:34:15 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/1608)
5 years, 1 month ago (2015-11-08 09:39:12 UTC) #36
minyue-webrtc
Hi Fredrik, I added a test in VoE, I need you to take a look.
5 years, 1 month ago (2015-11-08 10:52:15 UTC) #38
the sun
https://codereview.webrtc.org/1415173005/diff/230001/webrtc/modules/audio_coding/codecs/opus/opus_inst.h File webrtc/modules/audio_coding/codecs/opus/opus_inst.h (right): https://codereview.webrtc.org/1415173005/diff/230001/webrtc/modules/audio_coding/codecs/opus/opus_inst.h#newcode20 webrtc/modules/audio_coding/codecs/opus/opus_inst.h:20: // When Opus is in DTX mode, we use ...
5 years, 1 month ago (2015-11-09 12:41:01 UTC) #39
minyue-webrtc
Hi Fredrik, Thanks for the comments! I did some changes. For some comments, I put ...
5 years, 1 month ago (2015-11-09 15:13:00 UTC) #40
the sun
lgtm https://codereview.webrtc.org/1415173005/diff/230001/webrtc/modules/audio_coding/codecs/opus/opus_interface.c File webrtc/modules/audio_coding/codecs/opus/opus_interface.c (right): https://codereview.webrtc.org/1415173005/diff/230001/webrtc/modules/audio_coding/codecs/opus/opus_interface.c#newcode104 webrtc/modules/audio_coding/codecs/opus/opus_interface.c:104: int16_t buffer[2 * 48 * kWebRtcOpusMaxEncodeFrameSizeMs]; On 2015/11/09 ...
5 years, 1 month ago (2015-11-09 15:29:56 UTC) #41
minyue-webrtc
https://codereview.webrtc.org/1415173005/diff/230001/webrtc/modules/audio_coding/codecs/opus/opus_interface.c File webrtc/modules/audio_coding/codecs/opus/opus_interface.c (right): https://codereview.webrtc.org/1415173005/diff/230001/webrtc/modules/audio_coding/codecs/opus/opus_interface.c#newcode104 webrtc/modules/audio_coding/codecs/opus/opus_interface.c:104: int16_t buffer[2 * 48 * kWebRtcOpusMaxEncodeFrameSizeMs]; On 2015/11/09 15:29:56, ...
5 years, 1 month ago (2015-11-09 16:03:02 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415173005/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415173005/250001
5 years, 1 month ago (2015-11-09 16:21:58 UTC) #45
commit-bot: I haz the power
Committed patchset #10 (id:250001)
5 years, 1 month ago (2015-11-09 18:08:19 UTC) #46
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/f475add57eada116bc960fe2935876ec8c077977 Cr-Commit-Position: refs/heads/master@{#10565}
5 years, 1 month ago (2015-11-09 18:08:30 UTC) #47
kwiberg-webrtc
https://codereview.webrtc.org/1415173005/diff/230001/webrtc/modules/audio_coding/codecs/opus/opus_interface.c File webrtc/modules/audio_coding/codecs/opus/opus_interface.c (right): https://codereview.webrtc.org/1415173005/diff/230001/webrtc/modules/audio_coding/codecs/opus/opus_interface.c#newcode101 webrtc/modules/audio_coding/codecs/opus/opus_interface.c:101: size_t i; On 2015/11/09 15:13:00, minyue-webrtc wrote: > On ...
5 years, 1 month ago (2015-11-09 19:15:05 UTC) #48
kjellander_webrtc
5 years, 1 month ago (2015-11-09 21:26:50 UTC) #49
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:250001) has been created in
https://codereview.webrtc.org/1428613004/ by kjellander@webrtc.org.

The reason for reverting is: Breaks voe_auto_test on all three "large tests
bots".
https://build.chromium.org/p/client.webrtc/builders/Win32%20Release%20%5Blarg...
https://build.chromium.org/p/client.webrtc/builders/Mac32%20Release%20%5Blarg...
https://build.chromium.org/p/client.webrtc/builders/Linux64%20Release%20%5Bla...

Notice these bots are no longer a part of the default trybot set, so they have
to be run manually when working with code that affects their tests (they were
removed as they queued up all the time in the CQ, and usually don't catch
breakages)..

Powered by Google App Engine
This is Rietveld 408576698