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

Issue 2306873003: Add RTCP packet class for signaling encoder target bitrate. (Closed)

Created:
4 years, 3 months ago by sprang_webrtc
Modified:
4 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhuangzesen_agora.io, danilchap, stefan-webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add RTCP packet class for signaling encoder target bitrate. This is a proposal for a new RTCP message. Feel free to comment on the message structure, selected type ids etc, as well as code for serialization/deserialization. Once we agree on this, I'll continue with wiring it up in the actual rtcp sender and receiver. BUG=webrtc:6301 Committed: https://crrev.com/b84ad63b0a189a33abaf78a527b04f881d881e91 Cr-Commit-Position: refs/heads/master@{#14867}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Addressed comments #

Total comments: 12

Patch Set 3 : Changed to psfb afb, with new unique id, addressed comments. #

Total comments: 9

Patch Set 4 : Comments #

Total comments: 14

Patch Set 5 : Addressed comments #

Patch Set 6 : Actually enforce media ssrc 0 #

Total comments: 8

Patch Set 7 : Addressed comments #

Patch Set 8 : Changed target bitrate to an XR block #

Total comments: 10

Patch Set 9 : Fixed bug, addressed comments #

Total comments: 18

Patch Set 10 : Addressed comments #

Total comments: 4

Patch Set 11 : Rebase #

Patch Set 12 : Fixed bad rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+326 lines, -1 line) Patch
M webrtc/modules/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/rtp_rtcp.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_packet/dlrr.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_reports.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +9 lines, -1 line 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_reports.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +28 lines, -0 lines 0 comments Download
A webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.h View 1 2 3 4 5 6 7 8 9 1 chunk +60 lines, -0 lines 0 comments Download
A webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +134 lines, -0 lines 0 comments Download
A webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +89 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (11 generated)
sprang_webrtc
4 years, 3 months ago (2016-09-02 13:46:45 UTC) #2
danilchap
I also have some style comments, do you want them now or later, when format ...
4 years, 3 months ago (2016-09-02 14:52:19 UTC) #3
stefan-webrtc
https://codereview.webrtc.org/2306873003/diff/1/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc File webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc (right): https://codereview.webrtc.org/2306873003/diff/1/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc#newcode2 webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc:2: * Copyright (c) 2015 The WebRTC project authors. All ...
4 years, 3 months ago (2016-09-02 15:19:28 UTC) #4
sprang_webrtc
https://codereview.webrtc.org/2306873003/diff/1/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc File webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc (right): https://codereview.webrtc.org/2306873003/diff/1/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc#newcode2 webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc:2: * Copyright (c) 2015 The WebRTC project authors. All ...
4 years, 3 months ago (2016-09-02 16:43:29 UTC) #5
danilchap
rtcp spec discourage use of new FMT types without registration, and suggest to use application ...
4 years, 3 months ago (2016-09-05 07:50:46 UTC) #6
sprang_webrtc
On 2016/09/05 07:50:46, danilchap wrote: > rtcp spec discourage use of new FMT types without ...
4 years, 3 months ago (2016-09-05 12:18:54 UTC) #7
danilchap
https://codereview.webrtc.org/2306873003/diff/40001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc File webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc (right): https://codereview.webrtc.org/2306873003/diff/40001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc#newcode49 webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc:49: // 8 | SSRC of media source | Will ...
4 years, 3 months ago (2016-09-05 13:48:40 UTC) #8
sprang
https://codereview.webrtc.org/2306873003/diff/20001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.h File webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.h (right): https://codereview.webrtc.org/2306873003/diff/20001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.h#newcode18 webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.h:18: #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" On 2016/09/05 07:50:46, danilchap wrote: > shouldn't ...
4 years, 3 months ago (2016-09-05 14:38:26 UTC) #10
danilchap
https://codereview.webrtc.org/2306873003/diff/40001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc File webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc (right): https://codereview.webrtc.org/2306873003/diff/40001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc#newcode49 webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc:49: // 8 | SSRC of media source | On ...
4 years, 3 months ago (2016-09-06 08:22:39 UTC) #11
sprang_webrtc
https://codereview.webrtc.org/2306873003/diff/60001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc File webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc (right): https://codereview.webrtc.org/2306873003/diff/60001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc#newcode45 webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc:45: // 0 |V=2|P| FMT=17 | PT=206 | length | ...
4 years, 3 months ago (2016-09-06 10:13:56 UTC) #12
danilchap
lgtm https://codereview.webrtc.org/2306873003/diff/100001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc File webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc (right): https://codereview.webrtc.org/2306873003/diff/100001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc#newcode33 webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc:33: uint32_t target_bitrate_bps) kbps https://codereview.webrtc.org/2306873003/diff/100001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc#newcode127 webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc:127: if (media_ssrc() != ...
4 years, 3 months ago (2016-09-07 15:02:12 UTC) #13
sprang_webrtc
https://codereview.webrtc.org/2306873003/diff/100001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc File webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc (right): https://codereview.webrtc.org/2306873003/diff/100001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc#newcode33 webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc:33: uint32_t target_bitrate_bps) On 2016/09/07 15:02:12, danilchap wrote: > kbps ...
4 years, 3 months ago (2016-09-07 15:45:51 UTC) #14
sprang_webrtc
Changed packet type to an XR block. ptal
4 years, 3 months ago (2016-09-23 11:56:12 UTC) #17
danilchap
not lgtm (to remind myself to look again) https://codereview.webrtc.org/2306873003/diff/140001/webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_reports.h File webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_reports.h (right): https://codereview.webrtc.org/2306873003/diff/140001/webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_reports.h#newcode66 webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_reports.h:66: static ...
4 years, 3 months ago (2016-09-23 13:39:49 UTC) #18
sprang_webrtc
https://codereview.webrtc.org/2306873003/diff/140001/webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_reports.h File webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_reports.h (right): https://codereview.webrtc.org/2306873003/diff/140001/webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_reports.h#newcode66 webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_reports.h:66: static const size_t kMaxNumberOfTargetBitrateBlocks = 50; On 2016/09/23 13:39:49, ...
4 years, 2 months ago (2016-09-28 10:08:44 UTC) #19
danilchap
looks good, just some nits https://codereview.webrtc.org/2306873003/diff/160001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc File webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc (right): https://codereview.webrtc.org/2306873003/diff/160001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc#newcode81 webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc:81: // Base RTCP header ...
4 years, 2 months ago (2016-09-28 11:27:25 UTC) #20
sprang_webrtc
https://codereview.webrtc.org/2306873003/diff/160001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc File webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc (right): https://codereview.webrtc.org/2306873003/diff/160001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc#newcode81 webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc:81: // Base RTCP header already parsed. On 2016/09/28 11:27:24, ...
4 years, 2 months ago (2016-09-28 12:15:59 UTC) #21
danilchap
lgtm https://codereview.webrtc.org/2306873003/diff/180001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc File webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc (right): https://codereview.webrtc.org/2306873003/diff/180001/webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc#newcode97 webrtc/modules/rtp_rtcp/source/rtcp_packet/target_bitrate.cc:97: // occupies exactly on block, we can just ...
4 years, 2 months ago (2016-09-28 15:09:07 UTC) #22
sprang_webrtc
stefan, wanna take another pass?
4 years, 1 month ago (2016-10-24 13:36:44 UTC) #23
sprang_webrtc
On 2016/10/24 13:36:44, språng wrote: > stefan, wanna take another pass? ping?
4 years, 1 month ago (2016-10-26 13:45:16 UTC) #24
sprang_webrtc
On 2016/10/24 13:36:44, språng wrote: > stefan, wanna take another pass? ping?
4 years, 1 month ago (2016-10-26 13:45:16 UTC) #25
stefan-webrtc
The message format looks ok, so lgtm.
4 years, 1 month ago (2016-10-31 15:15:58 UTC) #26
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/2306873003/200001
4 years, 1 month ago (2016-11-01 09:19:16 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_rel/builds/19154)
4 years, 1 month ago (2016-11-01 09:24:27 UTC) #31
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/2306873003/220001
4 years, 1 month ago (2016-11-01 09:28:56 UTC) #34
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 1 month ago (2016-11-01 09:50:15 UTC) #36
commit-bot: I haz the power
4 years, 1 month ago (2016-11-01 09:50:23 UTC) #38
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/b84ad63b0a189a33abaf78a527b04f881d881e91
Cr-Commit-Position: refs/heads/master@{#14867}

Powered by Google App Engine
This is Rietveld 408576698