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

Issue 1674413004: Added A/V sync tests with drifting clocks. (Closed)

Created:
4 years, 10 months ago by danilchap
Modified:
4 years, 10 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, the sun, stefan-webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Added A/V sync tests with drifting clocks. adding 30% drift to media generator (e.g. audio frame generated every 7ms instead of promised 10ms) works fine adding 2% drift to video ntp-timestamp-stamper makes A/V sync fail. BUG=webrtc:5504 R=pbos@webrtc.org,stefan@webrtc.org Committed: https://crrev.com/9c6a0c7f6dc4446431f5138170cc95751ee5af8b Cr-Commit-Position: refs/heads/master@{#11556}

Patch Set 1 #

Total comments: 24

Patch Set 2 : #

Patch Set 3 : #

Total comments: 17

Patch Set 4 : drift replaced by speed #

Total comments: 6

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -16 lines) Patch
M webrtc/call/call_perf_tests.cc View 1 2 3 4 6 chunks +55 lines, -8 lines 0 comments Download
M webrtc/test/call_test.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/test/call_test.cc View 1 2 3 2 chunks +12 lines, -2 lines 0 comments Download
A webrtc/test/drifting_clock.h View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
A webrtc/test/drifting_clock.cc View 1 2 3 4 1 chunk +57 lines, -0 lines 0 comments Download
M webrtc/test/fake_audio_device.h View 1 2 3 4 3 chunks +4 lines, -2 lines 0 comments Download
M webrtc/test/fake_audio_device.cc View 1 2 3 4 3 chunks +7 lines, -4 lines 0 comments Download
M webrtc/test/webrtc_test_common.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (3 generated)
danilchap
Step 1: Modified current a/v sync test by adding clock drifts.
4 years, 10 months ago (2016-02-09 13:37:19 UTC) #1
stefan-webrtc
https://codereview.webrtc.org/1674413004/diff/1/webrtc/call/call_perf_tests.cc File webrtc/call/call_perf_tests.cc (right): https://codereview.webrtc.org/1674413004/diff/1/webrtc/call/call_perf_tests.cc#newcode199 webrtc/call/call_perf_tests.cc:199: float video_rt_drift, video_rtp_drift? https://codereview.webrtc.org/1674413004/diff/1/webrtc/call/call_perf_tests.cc#newcode397 webrtc/call/call_perf_tests.cc:397: TEST_F(CallPerfTest, PlaysOutAudioAndVideoInSyncWithRtDrift) { Add ...
4 years, 10 months ago (2016-02-09 14:02:20 UTC) #2
danilchap
https://codereview.webrtc.org/1674413004/diff/1/webrtc/call/call_perf_tests.cc File webrtc/call/call_perf_tests.cc (right): https://codereview.webrtc.org/1674413004/diff/1/webrtc/call/call_perf_tests.cc#newcode199 webrtc/call/call_perf_tests.cc:199: float video_rt_drift, On 2016/02/09 14:02:20, stefan-webrtc (holmer) wrote: > ...
4 years, 10 months ago (2016-02-09 14:56:50 UTC) #3
pbos-webrtc
https://codereview.webrtc.org/1674413004/diff/1/webrtc/call/call_perf_tests.cc File webrtc/call/call_perf_tests.cc (right): https://codereview.webrtc.org/1674413004/diff/1/webrtc/call/call_perf_tests.cc#newcode397 webrtc/call/call_perf_tests.cc:397: TEST_F(CallPerfTest, PlaysOutAudioAndVideoInSyncWithRtDrift) { WithRtDrift? https://codereview.webrtc.org/1674413004/diff/1/webrtc/call/call_perf_tests.cc#newcode398 webrtc/call/call_perf_tests.cc:398: TestAudioVideoSync(false, true, -.3, ...
4 years, 10 months ago (2016-02-09 15:14:47 UTC) #4
danilchap
https://codereview.webrtc.org/1674413004/diff/1/webrtc/call/call_perf_tests.cc File webrtc/call/call_perf_tests.cc (right): https://codereview.webrtc.org/1674413004/diff/1/webrtc/call/call_perf_tests.cc#newcode398 webrtc/call/call_perf_tests.cc:398: TestAudioVideoSync(false, true, -.3, .3, 0); On 2016/02/09 15:14:46, pbos-webrtc ...
4 years, 10 months ago (2016-02-09 15:28:43 UTC) #5
pbos-webrtc
On 2016/02/09 15:28:43, danilchap wrote: > https://codereview.webrtc.org/1674413004/diff/1/webrtc/call/call_perf_tests.cc > File webrtc/call/call_perf_tests.cc (right): > > https://codereview.webrtc.org/1674413004/diff/1/webrtc/call/call_perf_tests.cc#newcode398 > ...
4 years, 10 months ago (2016-02-09 15:32:37 UTC) #6
danilchap
On 2016/02/09 15:32:37, pbos-webrtc wrote: > On 2016/02/09 15:28:43, danilchap wrote: > > https://codereview.webrtc.org/1674413004/diff/1/webrtc/call/call_perf_tests.cc > ...
4 years, 10 months ago (2016-02-09 15:34:15 UTC) #7
pbos-webrtc
https://codereview.webrtc.org/1674413004/diff/40001/webrtc/call/call_perf_tests.cc File webrtc/call/call_perf_tests.cc (right): https://codereview.webrtc.org/1674413004/diff/40001/webrtc/call/call_perf_tests.cc#newcode51 webrtc/call/call_perf_tests.cc:51: float audio_rtp_drift, ..drift_factor (and use 1.03 and .97 for ...
4 years, 10 months ago (2016-02-09 20:42:25 UTC) #8
pbos-webrtc
https://codereview.webrtc.org/1674413004/diff/40001/webrtc/test/fake_audio_device.h File webrtc/test/fake_audio_device.h (right): https://codereview.webrtc.org/1674413004/diff/40001/webrtc/test/fake_audio_device.h#newcode58 webrtc/test/fake_audio_device.h:58: float drift_ = .0; Initialize in init-list or move ...
4 years, 10 months ago (2016-02-09 21:06:18 UTC) #9
pbos-webrtc
https://codereview.webrtc.org/1674413004/diff/40001/webrtc/test/fake_audio_device.h File webrtc/test/fake_audio_device.h (right): https://codereview.webrtc.org/1674413004/diff/40001/webrtc/test/fake_audio_device.h#newcode58 webrtc/test/fake_audio_device.h:58: float drift_ = .0; On 2016/02/09 21:06:18, pbos-webrtc wrote: ...
4 years, 10 months ago (2016-02-09 21:08:12 UTC) #10
pbos-webrtc
4 years, 10 months ago (2016-02-09 21:08:19 UTC) #11
pbos-webrtc
https://codereview.webrtc.org/1674413004/diff/40001/webrtc/test/fake_audio_device.cc File webrtc/test/fake_audio_device.cc (right): https://codereview.webrtc.org/1674413004/diff/40001/webrtc/test/fake_audio_device.cc#newcode16 webrtc/test/fake_audio_device.cc:16: #include "webrtc/base/checks.h" Is this in use?
4 years, 10 months ago (2016-02-09 21:08:50 UTC) #12
danilchap
https://codereview.webrtc.org/1674413004/diff/40001/webrtc/call/call_perf_tests.cc File webrtc/call/call_perf_tests.cc (right): https://codereview.webrtc.org/1674413004/diff/40001/webrtc/call/call_perf_tests.cc#newcode51 webrtc/call/call_perf_tests.cc:51: float audio_rtp_drift, On 2016/02/09 20:42:24, pbos-webrtc wrote: > ..drift_factor ...
4 years, 10 months ago (2016-02-10 12:40:35 UTC) #13
stefan-webrtc
This works for me. lgtm https://codereview.webrtc.org/1674413004/diff/1/webrtc/test/drifting_clock.cc File webrtc/test/drifting_clock.cc (right): https://codereview.webrtc.org/1674413004/diff/1/webrtc/test/drifting_clock.cc#newcode25 webrtc/test/drifting_clock.cc:25: return (clock_->TimeInMicroseconds() - start_time_) ...
4 years, 10 months ago (2016-02-10 13:20:52 UTC) #14
pbos-webrtc
lgtm, thanks! https://codereview.webrtc.org/1674413004/diff/60001/webrtc/call/call_perf_tests.cc File webrtc/call/call_perf_tests.cc (right): https://codereview.webrtc.org/1674413004/diff/60001/webrtc/call/call_perf_tests.cc#newcode339 webrtc/call/call_perf_tests.cc:339: DriftingClock drifting_clock(clock_, video_ntp_speed); Shouldn't we always use ...
4 years, 10 months ago (2016-02-10 13:28:14 UTC) #15
danilchap
https://codereview.webrtc.org/1674413004/diff/60001/webrtc/call/call_perf_tests.cc File webrtc/call/call_perf_tests.cc (right): https://codereview.webrtc.org/1674413004/diff/60001/webrtc/call/call_perf_tests.cc#newcode339 webrtc/call/call_perf_tests.cc:339: DriftingClock drifting_clock(clock_, video_ntp_speed); On 2016/02/10 13:28:13, pbos-webrtc wrote: > ...
4 years, 10 months ago (2016-02-10 15:50:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1674413004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1674413004/80001
4 years, 10 months ago (2016-02-10 18:53:10 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 10 months ago (2016-02-10 18:54:52 UTC) #20
commit-bot: I haz the power
4 years, 10 months ago (2016-02-10 18:55:02 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9c6a0c7f6dc4446431f5138170cc95751ee5af8b
Cr-Commit-Position: refs/heads/master@{#11556}

Powered by Google App Engine
This is Rietveld 408576698