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

Issue 2385763002: Add stats for frequency offset when converting RTP timestamp to NTP time. (Closed)

Created:
4 years, 2 months ago by åsapersson
Modified:
4 years, 1 month ago
Reviewers:
stefan-webrtc, mflodman
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, perkj_webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add stats for frequency offset when converting RTP timestamp to NTP time. - Add histogram: "WebRTC.Video.RtpToNtpFreqOffsetInKhz" The absolute value of the difference between the estimated frequency during RTP timestamp to NTP time conversion and the actual value (i.e. 90 kHz) is measured per received video frame. The max offset during 40 second intervals is stored. The average of these stored offsets per received video stream is recorded when a stream is removed. Updated rtp_to_ntp.cc: - Add validation for only inserting newer RTCP sender reports to the rtcp list. - Move calculation of frequency/offset (from RTP/NTP timestamp pairs) to UpdateRtcpList. Calculated when a new RTCP SR in inserted (and not in RtpToNtpMs per packet). BUG=webrtc:6579 Committed: https://crrev.com/de9e5fffa21401df94fd89b15be5e549cbe3e142 Cr-Commit-Position: refs/heads/master@{#14891}

Patch Set 1 #

Patch Set 2 #

Patch Set 3 #

Patch Set 4 #

Patch Set 5 #

Total comments: 2

Patch Set 6 : draft #

Patch Set 7 : calculate freq/offset when rtcp list is updated #

Total comments: 4

Patch Set 8 : add comments #

Patch Set 9 : rebase #

Patch Set 10 : remove unused return value and updated unittests #

Patch Set 11 : rebase #

Total comments: 3

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+383 lines, -180 lines) Patch
M webrtc/modules/rtp_rtcp/include/remote_ntp_time_estimator.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M webrtc/system_wrappers/include/rtp_to_ntp.h View 1 2 3 4 5 6 7 8 9 1 chunk +29 lines, -8 lines 0 comments Download
M webrtc/system_wrappers/source/rtp_to_ntp.cc View 1 2 3 4 5 6 7 8 9 4 chunks +112 lines, -70 lines 0 comments Download
M webrtc/system_wrappers/source/rtp_to_ntp_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +163 lines, -82 lines 0 comments Download
M webrtc/video/receive_statistics_proxy.h View 1 2 3 4 5 6 3 chunks +3 lines, -1 line 0 comments Download
M webrtc/video/receive_statistics_proxy.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +21 lines, -2 lines 0 comments Download
M webrtc/video/receive_statistics_proxy_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +25 lines, -1 line 0 comments Download
M webrtc/video/rtp_streams_synchronizer.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M webrtc/video/rtp_streams_synchronizer.cc View 1 2 3 4 5 6 3 chunks +6 lines, -3 lines 0 comments Download
M webrtc/video/stream_synchronization.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M webrtc/video/stream_synchronization_unittest.cc View 1 2 3 4 5 6 1 chunk +14 lines, -8 lines 0 comments Download
M webrtc/video/video_receive_stream.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (21 generated)
åsapersson
4 years, 2 months ago (2016-10-05 12:27:52 UTC) #3
stefan-webrtc
https://codereview.webrtc.org/2385763002/diff/80001/webrtc/system_wrappers/source/rtp_to_ntp.cc File webrtc/system_wrappers/source/rtp_to_ntp.cc (right): https://codereview.webrtc.org/2385763002/diff/80001/webrtc/system_wrappers/source/rtp_to_ntp.cc#newcode104 webrtc/system_wrappers/source/rtp_to_ntp.cc:104: bool RtpToNtpMsAndReturnFreq(int64_t rtp_timestamp, Instead of introducing this slightly odd ...
4 years, 2 months ago (2016-10-05 14:35:46 UTC) #5
åsapersson
https://codereview.webrtc.org/2385763002/diff/80001/webrtc/system_wrappers/source/rtp_to_ntp.cc File webrtc/system_wrappers/source/rtp_to_ntp.cc (right): https://codereview.webrtc.org/2385763002/diff/80001/webrtc/system_wrappers/source/rtp_to_ntp.cc#newcode104 webrtc/system_wrappers/source/rtp_to_ntp.cc:104: bool RtpToNtpMsAndReturnFreq(int64_t rtp_timestamp, On 2016/10/05 14:35:46, stefan-webrtc (holmer) wrote: ...
4 years, 2 months ago (2016-10-09 14:22:15 UTC) #17
stefan-webrtc
https://codereview.webrtc.org/2385763002/diff/260001/webrtc/system_wrappers/source/rtp_to_ntp.cc File webrtc/system_wrappers/source/rtp_to_ntp.cc (right): https://codereview.webrtc.org/2385763002/diff/260001/webrtc/system_wrappers/source/rtp_to_ntp.cc#newcode57 webrtc/system_wrappers/source/rtp_to_ntp.cc:57: return (ntp_secs == other.ntp_secs && ntp_frac == other.ntp_frac) || ...
4 years, 2 months ago (2016-10-18 23:38:27 UTC) #18
åsapersson
https://codereview.webrtc.org/2385763002/diff/260001/webrtc/system_wrappers/source/rtp_to_ntp.cc File webrtc/system_wrappers/source/rtp_to_ntp.cc (right): https://codereview.webrtc.org/2385763002/diff/260001/webrtc/system_wrappers/source/rtp_to_ntp.cc#newcode57 webrtc/system_wrappers/source/rtp_to_ntp.cc:57: return (ntp_secs == other.ntp_secs && ntp_frac == other.ntp_frac) || ...
4 years, 2 months ago (2016-10-19 14:35:28 UTC) #19
stefan-webrtc
lg https://codereview.webrtc.org/2385763002/diff/380001/webrtc/system_wrappers/include/rtp_to_ntp.h File webrtc/system_wrappers/include/rtp_to_ntp.h (right): https://codereview.webrtc.org/2385763002/diff/380001/webrtc/system_wrappers/include/rtp_to_ntp.h#newcode30 webrtc/system_wrappers/include/rtp_to_ntp.h:30: struct RtcpMeasurements { Maybe this should be a ...
4 years, 1 month ago (2016-11-01 13:48:55 UTC) #23
åsapersson
https://codereview.webrtc.org/2385763002/diff/380001/webrtc/system_wrappers/include/rtp_to_ntp.h File webrtc/system_wrappers/include/rtp_to_ntp.h (right): https://codereview.webrtc.org/2385763002/diff/380001/webrtc/system_wrappers/include/rtp_to_ntp.h#newcode30 webrtc/system_wrappers/include/rtp_to_ntp.h:30: struct RtcpMeasurements { On 2016/11/01 13:48:55, stefan-webrtc (holmer) wrote: ...
4 years, 1 month ago (2016-11-01 14:03:11 UTC) #24
stefan-webrtc
lgtm https://codereview.webrtc.org/2385763002/diff/380001/webrtc/system_wrappers/include/rtp_to_ntp.h File webrtc/system_wrappers/include/rtp_to_ntp.h (right): https://codereview.webrtc.org/2385763002/diff/380001/webrtc/system_wrappers/include/rtp_to_ntp.h#newcode30 webrtc/system_wrappers/include/rtp_to_ntp.h:30: struct RtcpMeasurements { On 2016/11/01 14:03:11, åsapersson wrote: ...
4 years, 1 month ago (2016-11-01 15:19:26 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.webrtc.org/2385763002/400001
4 years, 1 month ago (2016-11-02 14:12:09 UTC) #28
commit-bot: I haz the power
Committed patchset #12 (id:400001)
4 years, 1 month ago (2016-11-02 14:14:07 UTC) #30
commit-bot: I haz the power
4 years, 1 month ago (2016-11-02 14:14:14 UTC) #32
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/de9e5fffa21401df94fd89b15be5e549cbe3e142
Cr-Commit-Position: refs/heads/master@{#14891}

Powered by Google App Engine
This is Rietveld 408576698