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

Issue 2477513003: media: Increase preloading and max buffer for high-bitrate videos (Closed)

Created:
4 years, 1 month ago by hubbe
Modified:
4 years, 1 month ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Increase preloading and max buffer for high-bitrate videos Currently we limit preloading to 20Mb. This can be a problem with high bitrate videos which mux a lot of data per chunk. Usually our goal is to preload 10 seconds of data, but in some examples, only 6 seconds is preloaded because of this limit. This CL increases the max buffer limit to 50Mb. This should only impact videos with average bitrates over 16Mbit/s. Videos with bitrates up to 41Mbit/s will have 10 seconds of preloading. Also simplify the buffering calculations a bit by getting rid of some opportunistic pinning behind the curring reading position. Finally, add some tests. BUG=512993 Committed: https://crrev.com/aa045cd99f2920d12c501b8c0b5bf2752df3e771 Cr-Commit-Position: refs/heads/master@{#430022}

Patch Set 1 #

Total comments: 2

Patch Set 2 : logic simplified, test added #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -11 lines) Patch
M media/blink/multibuffer_data_source.cc View 1 2 chunks +22 lines, -11 lines 0 comments Download
M media/blink/multibuffer_data_source_unittest.cc View 1 2 chunks +55 lines, -0 lines 0 comments Download
M media/blink/multibuffer_reader.h View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (15 generated)
hubbe
4 years, 1 month ago (2016-11-03 20:45:05 UTC) #3
DaleCurtis
I don't quite follow how this is limited to high bit rate videos. Can you ...
4 years, 1 month ago (2016-11-03 20:48:23 UTC) #6
hubbe
On 2016/11/03 20:48:23, DaleCurtis wrote: > I don't quite follow how this is limited to ...
4 years, 1 month ago (2016-11-03 20:51:47 UTC) #7
watk
https://codereview.chromium.org/2477513003/diff/1/media/blink/multibuffer_data_source.cc File media/blink/multibuffer_data_source.cc (right): https://codereview.chromium.org/2477513003/diff/1/media/blink/multibuffer_data_source.cc#newcode610 media/blink/multibuffer_data_source.cc:610: std::max(kMaxBufferSize, kMaxBufferPreload + kPreloadHighExtra); Drive by: It's confusing to ...
4 years, 1 month ago (2016-11-03 21:09:18 UTC) #9
hubbe
Cleaned up the code a bit to make it work the way I actually wanted ...
4 years, 1 month ago (2016-11-03 23:12:00 UTC) #13
DaleCurtis
kMaxBufferSize seems unused now? Since |bitrate_| is untrusted, that probably shouldn't be true.
4 years, 1 month ago (2016-11-03 23:35:49 UTC) #16
hubbe
On 2016/11/03 23:35:49, DaleCurtis wrote: > kMaxBufferSize seems unused now? Since |bitrate_| is untrusted, that ...
4 years, 1 month ago (2016-11-04 03:57:47 UTC) #19
DaleCurtis
On 2016/11/04 at 03:57:47, hubbe wrote: > On 2016/11/03 23:35:49, DaleCurtis wrote: > > kMaxBufferSize ...
4 years, 1 month ago (2016-11-04 19:09:36 UTC) #20
hubbe
On 2016/11/04 19:09:36, DaleCurtis wrote: > On 2016/11/04 at 03:57:47, hubbe wrote: > > On ...
4 years, 1 month ago (2016-11-04 19:23:18 UTC) #21
DaleCurtis
On 2016/11/04 at 19:23:18, hubbe wrote: > On 2016/11/04 19:09:36, DaleCurtis wrote: > > On ...
4 years, 1 month ago (2016-11-04 19:30:16 UTC) #22
hubbe
On 2016/11/04 19:30:16, DaleCurtis wrote: > On 2016/11/04 at 19:23:18, hubbe wrote: > > On ...
4 years, 1 month ago (2016-11-04 19:37:17 UTC) #23
DaleCurtis
This seems fine as a solution, so lgtm, but I wonder if clamping bitrate_ is ...
4 years, 1 month ago (2016-11-04 19:44:48 UTC) #24
hubbe
On 2016/11/04 19:44:48, DaleCurtis wrote: > This seems fine as a solution, so lgtm, but ...
4 years, 1 month ago (2016-11-04 19:51:42 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2477513003/20001
4 years, 1 month ago (2016-11-04 19:52:47 UTC) #27
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-04 21:39:22 UTC) #29
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 21:42:55 UTC) #31
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/aa045cd99f2920d12c501b8c0b5bf2752df3e771
Cr-Commit-Position: refs/heads/master@{#430022}

Powered by Google App Engine
This is Rietveld 408576698