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

Issue 2613543003: Fix BitrateProber to match the requested bitrate more precisely (Closed)

Created:
3 years, 11 months ago by Sergey Ulanov
Modified:
3 years, 11 months ago
Reviewers:
philipel, stefan-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhuangzesen_agora.io, stefan-webrtc, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix BitrateProber to match the requested bitrate more precisely Previously BirateProber was calculating delay between probes based on the size of the previous probe. Because of that the actual sent bitrate can deviate greatly from the target value. With this change it uses total number of bytes in the cluster to estimate delay before each probe. BUG=webrtc:6952 Review-Url: https://codereview.webrtc.org/2613543003 Cr-Original-Commit-Position: refs/heads/master@{#15971} Committed: https://chromium.googlesource.com/external/webrtc/+/599c5011e7569a269f5521a8c7e6ab930e7adbd5 Review-Url: https://codereview.webrtc.org/2613543003 Cr-Commit-Position: refs/heads/master@{#16127} Committed: https://chromium.googlesource.com/external/webrtc/+/6dbbd89f1876df167cbd4c6eb8b4ade488de1fc1

Patch Set 1 #

Total comments: 7

Patch Set 2 : sync #

Total comments: 2

Patch Set 3 : . #

Patch Set 4 : fix test #

Patch Set 5 : Limit number of retries #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -70 lines) Patch
M webrtc/modules/pacing/bitrate_prober.h View 1 2 3 4 1 chunk +16 lines, -7 lines 0 comments Download
M webrtc/modules/pacing/bitrate_prober.cc View 1 2 3 4 6 chunks +43 lines, -46 lines 0 comments Download
M webrtc/modules/pacing/bitrate_prober_unittest.cc View 1 1 chunk +32 lines, -14 lines 0 comments Download
M webrtc/modules/pacing/paced_sender_unittest.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 36 (21 generated)
Sergey Ulanov
https://codereview.webrtc.org/2613543003/diff/1/webrtc/modules/pacing/bitrate_prober.cc File webrtc/modules/pacing/bitrate_prober.cc (left): https://codereview.webrtc.org/2613543003/diff/1/webrtc/modules/pacing/bitrate_prober.cc#oldcode115 webrtc/modules/pacing/bitrate_prober.cc:115: if (elapsed_time_ms > kInactivityThresholdMs) { I couldn't see any ...
3 years, 11 months ago (2017-01-03 23:29:00 UTC) #3
philipel
lg, this makes BitrateProber both cleaner and more correct. But I realized I should have ...
3 years, 11 months ago (2017-01-04 10:13:18 UTC) #5
Sergey Ulanov
I like what you did in your CL. I'll merge this change with trunk. https://codereview.webrtc.org/2613543003/diff/1/webrtc/modules/pacing/bitrate_prober.cc ...
3 years, 11 months ago (2017-01-05 23:31:53 UTC) #6
Sergey Ulanov
Updated, PTAL
3 years, 11 months ago (2017-01-06 00:09:54 UTC) #7
philipel
https://codereview.webrtc.org/2613543003/diff/1/webrtc/modules/pacing/bitrate_prober.cc File webrtc/modules/pacing/bitrate_prober.cc (right): https://codereview.webrtc.org/2613543003/diff/1/webrtc/modules/pacing/bitrate_prober.cc#newcode141 webrtc/modules/pacing/bitrate_prober.cc:141: if (clusters_.empty()) On 2017/01/05 23:31:53, Sergey Ulanov wrote: > ...
3 years, 11 months ago (2017-01-09 09:34:34 UTC) #8
philipel
lgtm
3 years, 11 months ago (2017-01-09 09:34:45 UTC) #9
Sergey Ulanov
https://codereview.webrtc.org/2613543003/diff/20001/webrtc/modules/pacing/bitrate_prober.cc File webrtc/modules/pacing/bitrate_prober.cc (left): https://codereview.webrtc.org/2613543003/diff/20001/webrtc/modules/pacing/bitrate_prober.cc#oldcode169 webrtc/modules/pacing/bitrate_prober.cc:169: cluster->sent_bytes += static_cast<int>(bytes); On 2017/01/09 09:34:34, philipel wrote: > ...
3 years, 11 months ago (2017-01-09 18:37:16 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2613543003/40001
3 years, 11 months ago (2017-01-09 18:37:49 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_rel/builds/21485)
3 years, 11 months ago (2017-01-09 18:49:39 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2613543003/60001
3 years, 11 months ago (2017-01-09 19:51:21 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/external/webrtc/+/599c5011e7569a269f5521a8c7e6ab930e7adbd5
3 years, 11 months ago (2017-01-09 20:38:10 UTC) #26
sprang_webrtc
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.webrtc.org/2626473004/ by sprang@webrtc.org. ...
3 years, 11 months ago (2017-01-10 09:27:18 UTC) #27
Sergey Ulanov
The problem with valgrind bots is that the test executed very slowly and as result ...
3 years, 11 months ago (2017-01-17 22:04:45 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2613543003/100001
3 years, 11 months ago (2017-01-17 22:05:28 UTC) #33
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 23:08:04 UTC) #36
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/external/webrtc/+/6dbbd89f1876df167cbd4c6eb...

Powered by Google App Engine
This is Rietveld 408576698