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

Issue 276783002: Cast: Reduce bitrate drastically when close to unacked frame limit (Closed)

Created:
6 years, 7 months ago by hubbe
Modified:
6 years, 7 months ago
Reviewers:
miu, Alpha Left Google
CC:
chromium-reviews, hclam+watch_chromium.org, imcheng+watch_chromium.org, hguihot+watch_chromium.org, jasonroberts+watch_google.com, avayvod+watch_chromium.org, pwestin+watch_google.com, feature-media-reviews_chromium.org, miu+watch_chromium.org, hubbe+watch_chromium.org, mikhal+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Cast: Reduce bitrate drastically when close to unacked frame limit Without this CL, I observed that the sender sometimes gets stuck trying to catch up. I could provoke this by using the "bad" netork profile in the udp_proxy in combination with the "Extreme" (4Mbit/s) sender profile. I could provoke the behaviour by killing the proxy for a few seconds, and then observe that the mirrored video would remain slow and jerky for a very long time. (Perhaps forever) With this patch, the video catches up again after a few seconds. BUG=374027 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269475

Patch Set 1 #

Total comments: 6

Patch Set 2 : helper function added #

Total comments: 3

Patch Set 3 : added dcheck #

Total comments: 2

Patch Set 4 : sign fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -9 lines) Patch
M media/cast/video_sender/video_sender.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M media/cast/video_sender/video_sender.cc View 1 2 3 7 chunks +22 lines, -9 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
hubbe
6 years, 7 months ago (2014-05-08 23:17:04 UTC) #1
Alpha Left Google
Before we land this change. Do we understand why it is stuck? Is it because ...
6 years, 7 months ago (2014-05-08 23:22:33 UTC) #2
hubbe
On 2014/05/08 23:22:33, Alpha wrote: > Before we land this change. Do we understand why ...
6 years, 7 months ago (2014-05-08 23:31:26 UTC) #3
Alpha Left Google
On 2014/05/08 23:31:26, hubbe wrote: > On 2014/05/08 23:22:33, Alpha wrote: > > Before we ...
6 years, 7 months ago (2014-05-08 23:42:38 UTC) #4
hubbe
https://codereview.chromium.org/276783002/diff/1/media/cast/video_sender/video_sender.cc File media/cast/video_sender/video_sender.cc (right): https://codereview.chromium.org/276783002/diff/1/media/cast/video_sender/video_sender.cc#newcode189 media/cast/video_sender/video_sender.cc:189: current_requested_bitrate_ / current_bitrate_divider_); On 2014/05/08 23:22:34, Alpha wrote: > ...
6 years, 7 months ago (2014-05-08 23:44:04 UTC) #5
hubbe
On 2014/05/08 23:42:38, Alpha wrote: > On 2014/05/08 23:31:26, hubbe wrote: > > On 2014/05/08 ...
6 years, 7 months ago (2014-05-08 23:45:05 UTC) #6
Alpha Left Google
Okay. Let's have the test after the branch point then. https://codereview.chromium.org/276783002/diff/20001/media/cast/video_sender/video_sender.cc File media/cast/video_sender/video_sender.cc (right): https://codereview.chromium.org/276783002/diff/20001/media/cast/video_sender/video_sender.cc#newcode492 ...
6 years, 7 months ago (2014-05-08 23:48:29 UTC) #7
hubbe
https://codereview.chromium.org/276783002/diff/20001/media/cast/video_sender/video_sender.cc File media/cast/video_sender/video_sender.cc (right): https://codereview.chromium.org/276783002/diff/20001/media/cast/video_sender/video_sender.cc#newcode492 media/cast/video_sender/video_sender.cc:492: new_bitrate /= current_bitrate_divider_; On 2014/05/08 23:48:30, Alpha wrote: > ...
6 years, 7 months ago (2014-05-08 23:55:01 UTC) #8
hubbe
https://codereview.chromium.org/276783002/diff/20001/media/cast/video_sender/video_sender.cc File media/cast/video_sender/video_sender.cc (right): https://codereview.chromium.org/276783002/diff/20001/media/cast/video_sender/video_sender.cc#newcode492 media/cast/video_sender/video_sender.cc:492: new_bitrate /= current_bitrate_divider_; On 2014/05/08 23:48:30, Alpha wrote: > ...
6 years, 7 months ago (2014-05-08 23:58:17 UTC) #9
Alpha Left Google
On 2014/05/08 23:58:17, hubbe wrote: > https://codereview.chromium.org/276783002/diff/20001/media/cast/video_sender/video_sender.cc > File media/cast/video_sender/video_sender.cc (right): > > https://codereview.chromium.org/276783002/diff/20001/media/cast/video_sender/video_sender.cc#newcode492 > ...
6 years, 7 months ago (2014-05-08 23:59:02 UTC) #10
Alpha Left Google
The CQ bit was checked by hclam@chromium.org
6 years, 7 months ago (2014-05-08 23:59:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/276783002/40001
6 years, 7 months ago (2014-05-09 00:00:01 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-09 03:31:42 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-09 05:15:46 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/8608)
6 years, 7 months ago (2014-05-09 05:15:47 UTC) #15
Alpha Left Google
https://codereview.chromium.org/276783002/diff/40001/media/cast/video_sender/video_sender.cc File media/cast/video_sender/video_sender.cc (right): https://codereview.chromium.org/276783002/diff/40001/media/cast/video_sender/video_sender.cc#newcode470 media/cast/video_sender/video_sender.cc:470: } else if (frames_in_flight > max_unacked_frames_ * 4 / ...
6 years, 7 months ago (2014-05-09 05:19:02 UTC) #16
hubbe
https://codereview.chromium.org/276783002/diff/40001/media/cast/video_sender/video_sender.cc File media/cast/video_sender/video_sender.cc (right): https://codereview.chromium.org/276783002/diff/40001/media/cast/video_sender/video_sender.cc#newcode470 media/cast/video_sender/video_sender.cc:470: } else if (frames_in_flight > max_unacked_frames_ * 4 / ...
6 years, 7 months ago (2014-05-09 06:56:33 UTC) #17
hubbe
The CQ bit was checked by hubbe@chromium.org
6 years, 7 months ago (2014-05-09 06:56:48 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/276783002/60001
6 years, 7 months ago (2014-05-09 06:59:58 UTC) #19
commit-bot: I haz the power
Change committed as 269475
6 years, 7 months ago (2014-05-10 01:51:17 UTC) #20
hubbe
6 years, 7 months ago (2014-05-21 18:53:06 UTC) #21
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/296513008/ by hubbe@chromium.org.

The reason for reverting is: It seems this causes problems with video quality.
Reverting this until more testing has been done.
.

Powered by Google App Engine
This is Rietveld 408576698