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

Issue 1034233002: Move underflow threshold limits out of the video renderer. (Closed)

Created:
5 years, 9 months ago by DaleCurtis
Modified:
5 years, 8 months ago
Reviewers:
strobe, xhwang, nasko
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@frame_time
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move underflow threshold limits out of the video renderer. The threshold logic is incorrect when there's no audio track, which the VideoRendererImpl has no knowledge of, so this logic needs to live in the RendererImpl. As a consequence of this, the underflow threshold is now based on wall clock time instead of media time; which means non-realtime playback will allow more or less media time to elapse before underflow occurs. Exposes a new command line flag --video-underflow-threshold-ms to allow for experiments varying the threshold for YouTube. BUG=423801, 470940 TEST=new unittests. Committed: https://crrev.com/c11e7bb244652731cc67c023bd2cf39e52df3544 Cr-Commit-Position: refs/heads/master@{#323599}

Patch Set 1 : Add flag. #

Total comments: 13

Patch Set 2 : Wait for frame duration. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -36 lines) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M media/base/media_switches.h View 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/media_switches.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M media/renderers/renderer_impl.h View 3 chunks +14 lines, -0 lines 0 comments Download
M media/renderers/renderer_impl.cc View 1 4 chunks +47 lines, -3 lines 0 comments Download
M media/renderers/renderer_impl_unittest.cc View 5 chunks +91 lines, -5 lines 0 comments Download
M media/renderers/video_renderer_impl.h View 1 1 chunk +2 lines, -3 lines 0 comments Download
M media/renderers/video_renderer_impl.cc View 1 7 chunks +12 lines, -16 lines 0 comments Download
M media/renderers/video_renderer_impl_unittest.cc View 1 1 chunk +15 lines, -9 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
DaleCurtis
+nasko for stamp on new flag copy in RenderProcessHostImpl
5 years, 9 months ago (2015-03-26 20:29:02 UTC) #4
nasko
content/browser/renderer_host/render_process_host_impl.cc LGTM
5 years, 9 months ago (2015-03-26 20:51:27 UTC) #5
xhwang
Thanks! I like the idea to have a flag to override the threshold. But I ...
5 years, 9 months ago (2015-03-26 21:24:44 UTC) #6
DaleCurtis
https://codereview.chromium.org/1034233002/diff/20001/media/renderers/renderer_impl.cc File media/renderers/renderer_impl.cc (right): https://codereview.chromium.org/1034233002/diff/20001/media/renderers/renderer_impl.cc#newcode42 media/renderers/renderer_impl.cc:42: video_underflow_threshold_(base::TimeDelta::FromSeconds(3)), On 2015/03/26 21:24:43, xhwang wrote: > You can ...
5 years, 9 months ago (2015-03-26 21:36:08 UTC) #7
xhwang
More discussions... https://codereview.chromium.org/1034233002/diff/20001/media/renderers/renderer_impl.cc File media/renderers/renderer_impl.cc (right): https://codereview.chromium.org/1034233002/diff/20001/media/renderers/renderer_impl.cc#newcode42 media/renderers/renderer_impl.cc:42: video_underflow_threshold_(base::TimeDelta::FromSeconds(3)), On 2015/03/26 21:36:08, DaleCurtis wrote: > ...
5 years, 9 months ago (2015-03-28 00:32:40 UTC) #8
DaleCurtis
https://codereview.chromium.org/1034233002/diff/20001/media/renderers/renderer_impl_unittest.cc File media/renderers/renderer_impl_unittest.cc (right): https://codereview.chromium.org/1034233002/diff/20001/media/renderers/renderer_impl_unittest.cc#newcode475 media/renderers/renderer_impl_unittest.cc:475: // Underflow should occur immediately with a single video ...
5 years, 8 months ago (2015-03-30 16:17:16 UTC) #9
xhwang
On 2015/03/30 16:17:16, DaleCurtis wrote: > https://codereview.chromium.org/1034233002/diff/20001/media/renderers/renderer_impl_unittest.cc > File media/renderers/renderer_impl_unittest.cc (right): > > https://codereview.chromium.org/1034233002/diff/20001/media/renderers/renderer_impl_unittest.cc#newcode475 > ...
5 years, 8 months ago (2015-03-31 18:09:11 UTC) #10
DaleCurtis
Actually, thinking about this a bit more and trying out your linked patch set, I ...
5 years, 8 months ago (2015-03-31 20:20:25 UTC) #11
xhwang
> Actually, thinking about this a bit more and trying out your linked patch set, ...
5 years, 8 months ago (2015-04-01 16:32:58 UTC) #12
DaleCurtis
I retested some more with lower and random delays and the experience is still the ...
5 years, 8 months ago (2015-04-02 18:11:07 UTC) #13
xhwang
On 2015/04/02 18:11:07, DaleCurtis wrote: > I retested some more with lower and random delays ...
5 years, 8 months ago (2015-04-02 18:16:50 UTC) #14
DaleCurtis
Sure, here's the CL I used: https://codereview.chromium.org/1054103002 Here's some soundless 60fps clip: http://xorax.sea/fwong720p60.webm http://xorax.sea/catzilla.webm 48kHz ...
5 years, 8 months ago (2015-04-02 18:31:39 UTC) #15
xhwang
On 2015/04/02 18:31:39, DaleCurtis wrote: > Sure, here's the CL I used: > > https://codereview.chromium.org/1054103002 ...
5 years, 8 months ago (2015-04-02 21:38:49 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1034233002/40001
5 years, 8 months ago (2015-04-02 21:51:43 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years, 8 months ago (2015-04-03 05:07:16 UTC) #20
commit-bot: I haz the power
5 years, 8 months ago (2015-04-03 20:30:51 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c11e7bb244652731cc67c023bd2cf39e52df3544
Cr-Commit-Position: refs/heads/master@{#323599}

Powered by Google App Engine
This is Rietveld 408576698