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

Issue 1345473002: Reset frame timestamp epoch for new capturers. (Closed)

Created:
5 years, 3 months ago by pbos-webrtc
Modified:
5 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, qiang.lu, niklas.enbom, yujie_mao (webrtc), Andrew MacDonald, tnakamura-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Reset frame timestamp epoch for new capturers. Incoming frames usually have an epoch of time since the capturer was created or similar, not any fixed-time epoch. As such, setting a new capturer resulted in delivering frames with older timestamps which caused these frames to be dropped before encoding. BUG=webrtc:4994 R=stefan@webrtc.org TBR=pthatcher@webrtc.org Committed: https://crrev.com/1cb121dea478a4bb4f88e76cf92719e2853543cf Cr-Commit-Position: refs/heads/master@{#9934}

Patch Set 1 #

Total comments: 2

Patch Set 2 : test fix #

Patch Set 3 : uint32 cast #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -8 lines) Patch
M talk/media/base/fakevideocapturer.h View 1 chunk +4 lines, -0 lines 0 comments Download
M talk/media/webrtc/webrtcvideoengine2.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M talk/media/webrtc/webrtcvideoengine2_unittest.cc View 1 2 3 chunks +62 lines, -8 lines 2 comments Download

Messages

Total messages: 25 (8 generated)
pbos-webrtc
PTAL
5 years, 3 months ago (2015-09-14 15:13:14 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1345473002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1345473002/1
5 years, 3 months ago (2015-09-14 15:13:27 UTC) #3
stefan-webrtc
LGTM with my nit fixed. https://codereview.webrtc.org/1345473002/diff/1/talk/media/webrtc/webrtcvideoengine2_unittest.cc File talk/media/webrtc/webrtcvideoengine2_unittest.cc (right): https://codereview.webrtc.org/1345473002/diff/1/talk/media/webrtc/webrtcvideoengine2_unittest.cc#newcode528 talk/media/webrtc/webrtcvideoengine2_unittest.cc:528: frame.time_stamp = kInitialTimestamp; Make ...
5 years, 3 months ago (2015-09-14 15:21:49 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_x64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_rel/builds/9322)
5 years, 3 months ago (2015-09-14 15:22:19 UTC) #6
pbos-webrtc
test fix
5 years, 3 months ago (2015-09-14 15:28:10 UTC) #7
pbos-webrtc
uint32 cast
5 years, 3 months ago (2015-09-14 15:29:04 UTC) #8
pbos-webrtc
TBR=pthatcher@ for talk/media/base
5 years, 3 months ago (2015-09-14 15:29:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1345473002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1345473002/40001
5 years, 3 months ago (2015-09-14 15:30:07 UTC) #13
pbos-webrtc
https://codereview.webrtc.org/1345473002/diff/1/talk/media/webrtc/webrtcvideoengine2_unittest.cc File talk/media/webrtc/webrtcvideoengine2_unittest.cc (right): https://codereview.webrtc.org/1345473002/diff/1/talk/media/webrtc/webrtcvideoengine2_unittest.cc#newcode528 talk/media/webrtc/webrtcvideoengine2_unittest.cc:528: frame.time_stamp = kInitialTimestamp; On 2015/09/14 15:21:49, stefan-webrtc (holmer) wrote: ...
5 years, 3 months ago (2015-09-14 15:34:49 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android on tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_rel on ...
5 years, 3 months ago (2015-09-14 17:30:32 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1345473002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1345473002/40001
5 years, 3 months ago (2015-09-14 18:19:00 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 3 months ago (2015-09-14 18:38:43 UTC) #19
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/1cb121dea478a4bb4f88e76cf92719e2853543cf Cr-Commit-Position: refs/heads/master@{#9934}
5 years, 3 months ago (2015-09-14 18:38:55 UTC) #20
mflodman
This still assumed certain behavior of the incoming frame timestamp. Do we know if that ...
5 years, 3 months ago (2015-09-15 11:40:37 UTC) #22
pthatcher1
https://codereview.webrtc.org/1345473002/diff/40001/talk/media/webrtc/webrtcvideoengine2_unittest.cc File talk/media/webrtc/webrtcvideoengine2_unittest.cc (right): https://codereview.webrtc.org/1345473002/diff/40001/talk/media/webrtc/webrtcvideoengine2_unittest.cc#newcode519 talk/media/webrtc/webrtcvideoengine2_unittest.cc:519: rtc::Thread::Current()->SleepMs(1000); If you have to do a real sleep, ...
5 years, 3 months ago (2015-09-17 05:00:31 UTC) #23
pbos-webrtc
https://codereview.webrtc.org/1345473002/diff/40001/talk/media/webrtc/webrtcvideoengine2_unittest.cc File talk/media/webrtc/webrtcvideoengine2_unittest.cc (right): https://codereview.webrtc.org/1345473002/diff/40001/talk/media/webrtc/webrtcvideoengine2_unittest.cc#newcode519 talk/media/webrtc/webrtcvideoengine2_unittest.cc:519: rtc::Thread::Current()->SleepMs(1000); On 2015/09/17 05:00:31, pthatcher1 wrote: > If you ...
5 years, 3 months ago (2015-09-17 06:36:20 UTC) #24
mflodman
5 years, 3 months ago (2015-09-17 07:20:35 UTC) #25
Message was sent while issue was closed.
On 2015/09/17 06:36:20, pbos-webrtc wrote:
>
https://codereview.webrtc.org/1345473002/diff/40001/talk/media/webrtc/webrtcv...
> File talk/media/webrtc/webrtcvideoengine2_unittest.cc (right):
> 
>
https://codereview.webrtc.org/1345473002/diff/40001/talk/media/webrtc/webrtcv...
> talk/media/webrtc/webrtcvideoengine2_unittest.cc:519:
> rtc::Thread::Current()->SleepMs(1000);
> On 2015/09/17 05:00:31, pthatcher1 wrote:
> > If you have to do a real sleep, can you at least make it shorter?
> 
> It's a bit longer due to incoming frames being stamped with a real clock which
> can't be injected and I didn't want this test to flakily pass on slower bots
if
> there is a bug because threads are scheduled to run later.

LGTM for webrtcvideoengine2.cc, but please finish the discussion with Peter re
the test.

Powered by Google App Engine
This is Rietveld 408576698