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

Issue 1972083002: Move logic for calculating needed bitrate overhead used by NACK and FEC to VideoSender. (Closed)

Created:
4 years, 7 months ago by perkj_webrtc
Modified:
4 years, 6 months ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, pbos-webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Move logic for calculating needed bitrate overhead used by NACK and FEC to VideoSender. This cl split the class MediaOptimization into two parts. One that deals with frame dropping and stats and one new class called ProtectionBitrateCalculator that deals with calculating the needed FEC parameters and how much of the estimated network bitrate that can be used by an encoder Note that the logic of how FEC and the needed bitrates is not changed. BUG=webrtc:5687 R=asapersson@webrtc.org, stefan@webrtc.org Committed: https://crrev.com/69b332df8386a0cfde9630a9f7fccc4abe452926 Cr-Commit-Position: refs/heads/master@{#13018}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Rebased #

Patch Set 5 : Renamed + fix Build.gn + git cl format #

Patch Set 6 : #

Patch Set 7 : Added video_send_stream_unittest #

Patch Set 8 : Fix failing tests and sign mismatch #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : Removed video_sender_unittest for now. #

Total comments: 24

Patch Set 12 : Rebased #

Patch Set 13 : Addressed review comments #

Total comments: 12

Patch Set 14 : ProtectionBitrateCalculator post_encode_protection_ to protection_bitrate_calculator_ #

Patch Set 15 : Addressed Stefans comments. + changed name to protection_bitrate_calculator_ #

Patch Set 16 : Use stats_.encode_frame_rate instead #

Patch Set 17 : Changed framerate from float to int since that is what is used in stats_,encode_frame_rate. #

Total comments: 2

Patch Set 18 : Addressed Åsas comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+296 lines, -850 lines) Patch
M webrtc/modules/modules.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/video_coding/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/include/video_coding.h View 1 2 3 1 chunk +2 lines, -6 lines 0 comments Download
M webrtc/modules/video_coding/media_optimization.h View 1 2 3 6 chunks +7 lines, -14 lines 0 comments Download
M webrtc/modules/video_coding/media_optimization.cc View 1 2 3 4 10 chunks +9 lines, -150 lines 0 comments Download
M webrtc/modules/video_coding/media_optimization_unittest.cc View 1 2 3 4 5 chunks +8 lines, -51 lines 0 comments Download
A + webrtc/modules/video_coding/protection_bitrate_calculator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +53 lines, -64 lines 0 comments Download
A + webrtc/modules/video_coding/protection_bitrate_calculator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +115 lines, -394 lines 0 comments Download
A + webrtc/modules/video_coding/protection_bitrate_calculator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +50 lines, -115 lines 0 comments Download
M webrtc/modules/video_coding/video_coding.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/video_coding_impl.h View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M webrtc/modules/video_coding/video_coding_impl.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/video_sender.cc View 1 2 3 4 4 chunks +9 lines, -28 lines 0 comments Download
M webrtc/video/send_statistics_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/video/send_statistics_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/video/video_send_stream.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +4 lines, -0 lines 0 comments Download
M webrtc/video/video_send_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +21 lines, -5 lines 0 comments Download
M webrtc/video/vie_encoder.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -6 lines 0 comments Download
M webrtc/video/vie_encoder.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -12 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
perkj_webrtc
Renamed + fix Build.gn + git cl format
4 years, 7 months ago (2016-05-16 13:18:46 UTC) #1
perkj_webrtc
Hi Can you please review?
4 years, 7 months ago (2016-05-17 15:21:25 UTC) #6
perkj_webrtc
please?
4 years, 7 months ago (2016-05-19 10:08:18 UTC) #7
stefan-webrtc
This was fairly hard to review, so I have to do another pass later, but ...
4 years, 7 months ago (2016-05-19 12:52:40 UTC) #8
perkj_webrtc
PTAL https://codereview.webrtc.org/1972083002/diff/200001/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.cc File webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.cc (left): https://codereview.webrtc.org/1972083002/diff/200001/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.cc#oldcode57 webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.cc:57: assert(observer_); On 2016/05/19 12:52:39, stefan-webrtc (holmer) wrote: > ...
4 years, 6 months ago (2016-06-01 20:55:24 UTC) #10
stefan-webrtc
LG, but adding Åsa to review send_statistics_proxy.* https://codereview.webrtc.org/1972083002/diff/260001/webrtc/modules/video_coding/protection_bitrate_calculator.cc File webrtc/modules/video_coding/protection_bitrate_calculator.cc (right): https://codereview.webrtc.org/1972083002/diff/260001/webrtc/modules/video_coding/protection_bitrate_calculator.cc#newcode122 webrtc/modules/video_coding/protection_bitrate_calculator.cc:122: } // ...
4 years, 6 months ago (2016-06-02 07:42:38 UTC) #12
perkj_webrtc
ptal. Åsa, can you also take a look at how I use the frame rate ...
4 years, 6 months ago (2016-06-02 10:16:20 UTC) #13
åsapersson
https://codereview.webrtc.org/1972083002/diff/260001/webrtc/video/send_statistics_proxy.cc File webrtc/video/send_statistics_proxy.cc (right): https://codereview.webrtc.org/1972083002/diff/260001/webrtc/video/send_statistics_proxy.cc#newcode518 webrtc/video/send_statistics_proxy.cc:518: return uma_container_->sent_frame_rate_tracker_.ComputeRateForInterval(1000); On 2016/06/02 10:16:20, perkj_webrtc wrote: > On ...
4 years, 6 months ago (2016-06-02 11:11:40 UTC) #15
perkj_webrtc
ptal https://codereview.webrtc.org/1972083002/diff/260001/webrtc/video/send_statistics_proxy.cc File webrtc/video/send_statistics_proxy.cc (right): https://codereview.webrtc.org/1972083002/diff/260001/webrtc/video/send_statistics_proxy.cc#newcode518 webrtc/video/send_statistics_proxy.cc:518: return uma_container_->sent_frame_rate_tracker_.ComputeRateForInterval(1000); On 2016/06/02 11:11:40, åsapersson wrote: > ...
4 years, 6 months ago (2016-06-02 11:33:21 UTC) #16
åsapersson
webrtc/send_statistics_proxy lgtm https://codereview.webrtc.org/1972083002/diff/360001/webrtc/video/send_statistics_proxy.h File webrtc/video/send_statistics_proxy.h (right): https://codereview.webrtc.org/1972083002/diff/360001/webrtc/video/send_statistics_proxy.h#newcode73 webrtc/video/send_statistics_proxy.h:73: int GetSendFrameRate(); const
4 years, 6 months ago (2016-06-02 12:21:44 UTC) #17
stefan-webrtc
lgtm
4 years, 6 months ago (2016-06-02 12:42:26 UTC) #18
perkj_webrtc
https://codereview.webrtc.org/1972083002/diff/360001/webrtc/video/send_statistics_proxy.h File webrtc/video/send_statistics_proxy.h (right): https://codereview.webrtc.org/1972083002/diff/360001/webrtc/video/send_statistics_proxy.h#newcode73 webrtc/video/send_statistics_proxy.h:73: int GetSendFrameRate(); On 2016/06/02 12:21:44, åsapersson wrote: > const ...
4 years, 6 months ago (2016-06-02 13:10:00 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1972083002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1972083002/380001
4 years, 6 months ago (2016-06-02 13:10:13 UTC) #22
perkj_webrtc
4 years, 6 months ago (2016-06-02 13:46:00 UTC) #24
Message was sent while issue was closed.
Committed patchset #18 (id:380001) manually as
69b332df8386a0cfde9630a9f7fccc4abe452926 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698