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

Issue 2552493002: [Media] Record time it takes to start rendering audio and video (Closed)

Created:
4 years ago by whywhat
Modified:
3 years, 11 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, feature-media-reviews_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media] Record time it takes to start rendering audio and video BUG=670150 TEST=manually with and without the background video track optimization flag. Record time between the play or seek and when the player has enough data for both audio and video renderers. Review-Url: https://codereview.chromium.org/2552493002 Cr-Commit-Position: refs/heads/master@{#441860} Committed: https://chromium.googlesource.com/chromium/src/+/ac607d65a37cba23db6690580fd78068f9b9fde0

Patch Set 1 #

Total comments: 5

Patch Set 2 : Audio and video first render times #

Total comments: 2

Patch Set 3 : Compute preroll time for both audio and video renderers #

Total comments: 6

Patch Set 4 : Addressed nits in histograms.xml #

Patch Set 5 : Use RestartPlaybackStream and OnFirstFrameRender #

Total comments: 4

Patch Set 6 : Reverted accidental changes to logs #

Patch Set 7 : Changed to PS4 but resetting the time in RestartStreamPlayback #

Patch Set 8 : Tracking the time between being shown and the first frame being composited #

Patch Set 9 : Reverted to RestartStreamPlayback #

Patch Set 10 : Accessing VFC directly from WMPI #

Total comments: 3

Patch Set 11 : visible->shown,timestamp->time #

Patch Set 12 : Shown->Foreground #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -0 lines) Patch
M media/blink/video_frame_compositor.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M media/blink/video_frame_compositor.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +15 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 66 (19 generated)
whywhat
PTaL Took a stab at the timing between the video being shown and the first ...
4 years ago (2016-12-03 00:23:20 UTC) #2
DaleCurtis
https://codereview.chromium.org/2552493002/diff/1/media/renderers/video_renderer_impl.cc File media/renderers/video_renderer_impl.cc (right): https://codereview.chromium.org/2552493002/diff/1/media/renderers/video_renderer_impl.cc#newcode215 media/renderers/video_renderer_impl.cc:215: shown_timestamp_ = tick_clock_->NowTicks(); Does this actually capture what you ...
4 years ago (2016-12-03 01:26:34 UTC) #3
whywhat
https://codereview.chromium.org/2552493002/diff/1/media/renderers/video_renderer_impl.cc File media/renderers/video_renderer_impl.cc (right): https://codereview.chromium.org/2552493002/diff/1/media/renderers/video_renderer_impl.cc#newcode215 media/renderers/video_renderer_impl.cc:215: shown_timestamp_ = tick_clock_->NowTicks(); On 2016/12/03 at 01:26:34, DaleCurtis wrote: ...
4 years ago (2016-12-06 22:01:13 UTC) #4
DaleCurtis
https://codereview.chromium.org/2552493002/diff/1/media/renderers/video_renderer_impl.cc File media/renderers/video_renderer_impl.cc (right): https://codereview.chromium.org/2552493002/diff/1/media/renderers/video_renderer_impl.cc#newcode215 media/renderers/video_renderer_impl.cc:215: shown_timestamp_ = tick_clock_->NowTicks(); On 2016/12/06 at 22:01:12, whywhat_OOO_till_Mon_Nov_28 wrote: ...
4 years ago (2016-12-06 23:26:58 UTC) #5
whywhat
Audio and video first render times
4 years ago (2016-12-08 00:03:27 UTC) #6
whywhat
https://codereview.chromium.org/2552493002/diff/1/media/renderers/video_renderer_impl.cc File media/renderers/video_renderer_impl.cc (right): https://codereview.chromium.org/2552493002/diff/1/media/renderers/video_renderer_impl.cc#newcode215 media/renderers/video_renderer_impl.cc:215: shown_timestamp_ = tick_clock_->NowTicks(); On 2016/12/06 at 23:26:58, DaleCurtis wrote: ...
4 years ago (2016-12-08 00:23:17 UTC) #7
DaleCurtis
https://codereview.chromium.org/2552493002/diff/1/media/renderers/video_renderer_impl.cc File media/renderers/video_renderer_impl.cc (right): https://codereview.chromium.org/2552493002/diff/1/media/renderers/video_renderer_impl.cc#newcode215 media/renderers/video_renderer_impl.cc:215: shown_timestamp_ = tick_clock_->NowTicks(); On 2016/12/08 at 00:23:17, whywhat wrote: ...
4 years ago (2016-12-08 19:04:46 UTC) #12
mlamouri (slow - plz ping)
Should we have something specific for videos that are back from background? How is this ...
4 years ago (2016-12-09 18:58:01 UTC) #14
whywhat
On 2016/12/09 at 18:58:01, mlamouri wrote: > Should we have something specific for videos that ...
4 years ago (2016-12-09 19:38:29 UTC) #15
whywhat
Compute preroll time for both audio and video renderers
4 years ago (2016-12-10 00:14:49 UTC) #16
whywhat
PTAL +isherman for histograms.xml
4 years ago (2016-12-10 00:27:42 UTC) #18
DaleCurtis
Have you confirmed that you can see a difference in these values locally with your ...
4 years ago (2016-12-10 00:33:44 UTC) #22
Ilya Sherman
Metrics LGTM % nits: https://codereview.chromium.org/2552493002/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2552493002/diff/40001/tools/metrics/histograms/histograms.xml#newcode23820 tools/metrics/histograms/histograms.xml:23820: + Records the time between ...
4 years ago (2016-12-10 01:55:35 UTC) #23
whywhat
Addressed nits in histograms.xml
4 years ago (2016-12-10 02:23:16 UTC) #24
whywhat
Thanks for the review isherman@! Dale, I tested it manually and see the increase in ...
4 years ago (2016-12-10 02:26:09 UTC) #26
whywhat
On 2016/12/10 at 02:26:09, whywhat wrote: > Thanks for the review isherman@! > > Dale, ...
4 years ago (2016-12-10 02:34:58 UTC) #27
servolk
On 2016/12/10 02:34:58, whywhat wrote: > On 2016/12/10 at 02:26:09, whywhat wrote: > > Thanks ...
4 years ago (2016-12-12 19:08:20 UTC) #28
whywhat
On 2016/12/12 at 19:08:20, servolk wrote: > On 2016/12/10 02:34:58, whywhat wrote: > > On ...
4 years ago (2016-12-12 22:23:13 UTC) #29
servolk
On 2016/12/12 22:23:13, whywhat wrote: > On 2016/12/12 at 19:08:20, servolk wrote: > > On ...
4 years ago (2016-12-12 22:56:32 UTC) #30
whywhat
Use RestartPlaybackStream and OnFirstFrameRender
4 years ago (2016-12-13 16:21:02 UTC) #31
whywhat
PTAL I think we're closer to measuring the time between reinitiating playback between audio/video track ...
4 years ago (2016-12-13 16:25:53 UTC) #32
servolk
https://codereview.chromium.org/2552493002/diff/70001/media/renderers/renderer_impl.cc File media/renderers/renderer_impl.cc (left): https://codereview.chromium.org/2552493002/diff/70001/media/renderers/renderer_impl.cc#oldcode668 media/renderers/renderer_impl.cc:668: DVLOG(4) << "deferred_video_underflow_cb_.Cancel()"; Also: why? https://codereview.chromium.org/2552493002/diff/70001/media/renderers/renderer_impl.cc File media/renderers/renderer_impl.cc (right): ...
4 years ago (2016-12-13 19:46:29 UTC) #33
whywhat
Reverted accidental changes to logs
4 years ago (2016-12-13 21:14:40 UTC) #34
whywhat
https://codereview.chromium.org/2552493002/diff/70001/media/renderers/renderer_impl.cc File media/renderers/renderer_impl.cc (left): https://codereview.chromium.org/2552493002/diff/70001/media/renderers/renderer_impl.cc#oldcode668 media/renderers/renderer_impl.cc:668: DVLOG(4) << "deferred_video_underflow_cb_.Cancel()"; On 2016/12/13 at 19:46:28, servolk wrote: ...
4 years ago (2016-12-13 21:44:11 UTC) #35
DaleCurtis
This isn't going to measure what you think it is since the frame may sit ...
4 years ago (2016-12-14 00:39:11 UTC) #36
DaleCurtis
On 2016/12/14 at 00:39:11, DaleCurtis wrote: > This isn't going to measure what you think ...
4 years ago (2016-12-14 00:40:11 UTC) #37
whywhat
On 2016/12/14 at 00:40:11, dalecurtis wrote: > On 2016/12/14 at 00:39:11, DaleCurtis wrote: > > ...
4 years ago (2016-12-14 01:56:58 UTC) #38
DaleCurtis
On 2016/12/14 at 01:56:58, avayvod wrote: > On 2016/12/14 at 00:40:11, dalecurtis wrote: > > ...
4 years ago (2016-12-14 02:24:40 UTC) #39
whywhat
On 2016/12/14 at 01:56:58, whywhat wrote: > On 2016/12/14 at 00:40:11, dalecurtis wrote: > > ...
4 years ago (2016-12-14 02:32:51 UTC) #40
whywhat
Changed to PS4 but resetting the time in RestartStreamPlayback
4 years ago (2016-12-14 02:35:44 UTC) #41
whywhat
Tracking the time between being shown and the first frame being composited
4 years ago (2016-12-14 03:47:01 UTC) #42
whywhat
PTAL at another approach (which works with both flag enabled and disabled). It's rather rough ...
4 years ago (2016-12-14 03:50:43 UTC) #43
DaleCurtis
Sorry, this is too invasive. Please stick with one of the approaches we've discussed. Either: ...
4 years ago (2016-12-14 19:35:59 UTC) #44
whywhat
On 2016/12/14 at 19:35:59, dalecurtis wrote: > Sorry, this is too invasive. I guessed so ...
4 years ago (2016-12-14 20:22:47 UTC) #45
DaleCurtis
On 2016/12/14 at 20:22:47, avayvod wrote: > On 2016/12/14 at 19:35:59, dalecurtis wrote: > > ...
4 years ago (2016-12-14 20:40:03 UTC) #46
whywhat
Reverted to RestartStreamPlayback
4 years ago (2016-12-16 00:08:14 UTC) #47
whywhat
PTAL +Xiaohan since Dale's OOO I don't think HAVE_ENOUGH is late enough to catch problems ...
4 years ago (2016-12-16 00:28:15 UTC) #49
DaleCurtis
On 2016/12/16 at 00:28:15, avayvod wrote: > PTAL > > +Xiaohan since Dale's OOO > ...
4 years ago (2016-12-20 17:33:05 UTC) #50
DaleCurtis
On 2016/12/14 at 20:22:47, avayvod wrote: > On 2016/12/14 at 19:35:59, dalecurtis wrote: > > ...
4 years ago (2016-12-20 17:36:39 UTC) #51
whywhat
Accessing VFC directly from WMPI
3 years, 11 months ago (2017-01-03 22:59:54 UTC) #52
whywhat
Dale, WDYT? I kind of missed the fact that VFC is accessible directly from WMPI ...
3 years, 11 months ago (2017-01-05 21:25:48 UTC) #53
DaleCurtis
lgtm % some naming and comment nits. Your histogram comment is the most accurate and ...
3 years, 11 months ago (2017-01-05 22:38:43 UTC) #54
whywhat
Thanks for the review. A couple of thoughts on Shown vs Foreground. https://codereview.chromium.org/2552493002/diff/170001/media/blink/video_frame_compositor.h File media/blink/video_frame_compositor.h ...
3 years, 11 months ago (2017-01-05 23:15:44 UTC) #55
DaleCurtis
https://codereview.chromium.org/2552493002/diff/170001/media/blink/video_frame_compositor.h File media/blink/video_frame_compositor.h (right): https://codereview.chromium.org/2552493002/diff/170001/media/blink/video_frame_compositor.h#newcode106 media/blink/video_frame_compositor.h:106: // Called when the video becomes visible with the ...
3 years, 11 months ago (2017-01-05 23:21:46 UTC) #58
whywhat
Shown->Foreground
3 years, 11 months ago (2017-01-05 23:47:34 UTC) #60
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/2552493002/210001
3 years, 11 months ago (2017-01-06 01:08:19 UTC) #63
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 03:17:16 UTC) #66
Message was sent while issue was closed.
Committed patchset #12 (id:210001) as
https://chromium.googlesource.com/chromium/src/+/ac607d65a37cba23db6690580fd7...

Powered by Google App Engine
This is Rietveld 408576698