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

Issue 2513383002: Initial rate allocation should not use fps = 0 (Closed)

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

Description

Initial rate allocation should not use fps = 0 A recent cl (https://codereview.webrtc.org/2510583002) introduced an issue where the initial rate allocation (call to VideoBitrateAllocator and any associated temporal layers) uses framerate = 0 fps. This may cause issues, including having the rate control in ScreenshareLayers ramp up too slowly. This CL make the initial call use VideoCodec.maxFramerate as framerate. Also expanded unit tests. BUG=webrtc:6301 Committed: https://crrev.com/40217c3718b9c6c53f399420d679b3d581886b89 Cr-Commit-Position: refs/heads/master@{#15166}

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 4

Patch Set 3 : hold params lock while accessing has_received_frame_ #

Patch Set 4 : oops #

Total comments: 12

Patch Set 5 : Simplified, addressed comments #

Total comments: 2

Patch Set 6 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -3 lines) Patch
M webrtc/modules/video_coding/video_coding_impl.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/video_sender.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M webrtc/modules/video_coding/video_sender_unittest.cc View 1 2 3 4 5 2 chunks +25 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
sprang_webrtc
4 years, 1 month ago (2016-11-21 10:09:22 UTC) #4
danilchap
https://codereview.webrtc.org/2513383002/diff/20001/webrtc/modules/video_coding/video_coding_impl.h File webrtc/modules/video_coding/video_coding_impl.h (right): https://codereview.webrtc.org/2513383002/diff/20001/webrtc/modules/video_coding/video_coding_impl.h#newcode43 webrtc/modules/video_coding/video_coding_impl.h:43: static const int64_t kDefaultProcessIntervalMs = 1000; Do you plan ...
4 years, 1 month ago (2016-11-21 10:43:25 UTC) #5
sprang_webrtc
https://codereview.webrtc.org/2513383002/diff/20001/webrtc/modules/video_coding/video_coding_impl.h File webrtc/modules/video_coding/video_coding_impl.h (right): https://codereview.webrtc.org/2513383002/diff/20001/webrtc/modules/video_coding/video_coding_impl.h#newcode43 webrtc/modules/video_coding/video_coding_impl.h:43: static const int64_t kDefaultProcessIntervalMs = 1000; On 2016/11/21 10:43:25, ...
4 years, 1 month ago (2016-11-21 11:35:32 UTC) #6
danilchap
https://codereview.webrtc.org/2513383002/diff/60001/webrtc/modules/video_coding/video_sender.cc File webrtc/modules/video_coding/video_sender.cc (right): https://codereview.webrtc.org/2513383002/diff/60001/webrtc/modules/video_coding/video_sender.cc#newcode71 webrtc/modules/video_coding/video_sender.cc:71: encoder_params_.input_frame_rate = _mediaOpt.InputFrameRate(); shouldn't you adjust frame_rate here too? ...
4 years, 1 month ago (2016-11-21 12:45:43 UTC) #7
sprang_webrtc
It turns out fps = 0 is treated as invalid value in other parts of ...
4 years, 1 month ago (2016-11-21 13:01:21 UTC) #8
danilchap
lgtm https://codereview.webrtc.org/2513383002/diff/80001/webrtc/modules/video_coding/video_sender_unittest.cc File webrtc/modules/video_coding/video_sender_unittest.cc (right): https://codereview.webrtc.org/2513383002/diff/80001/webrtc/modules/video_coding/video_sender_unittest.cc#newcode303 webrtc/modules/video_coding/video_sender_unittest.cc:303: const int64_t kActualFrameRate = settings_.maxFramerate / 2; since ...
4 years, 1 month ago (2016-11-21 13:14:49 UTC) #9
sprang_webrtc
https://codereview.webrtc.org/2513383002/diff/80001/webrtc/modules/video_coding/video_sender_unittest.cc File webrtc/modules/video_coding/video_sender_unittest.cc (right): https://codereview.webrtc.org/2513383002/diff/80001/webrtc/modules/video_coding/video_sender_unittest.cc#newcode303 webrtc/modules/video_coding/video_sender_unittest.cc:303: const int64_t kActualFrameRate = settings_.maxFramerate / 2; On 2016/11/21 ...
4 years, 1 month ago (2016-11-21 13:21:50 UTC) #10
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/2513383002/100001
4 years, 1 month ago (2016-11-21 13:21:58 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-21 13:41:57 UTC) #15
commit-bot: I haz the power
4 years, 1 month ago (2016-11-21 13:42:08 UTC) #17
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/40217c3718b9c6c53f399420d679b3d581886b89
Cr-Commit-Position: refs/heads/master@{#15166}

Powered by Google App Engine
This is Rietveld 408576698