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

Issue 2517243005: Remove overhead from video bitrate. (Closed)

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

Description

Remove overhead from video bitrate. BUG=webrtc:6638 Committed: https://crrev.com/a33287761af733d41d8c0a082f3d2c2cefaa9a68 Cr-Commit-Position: refs/heads/master@{#15303}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Add Test and field trial. #

Total comments: 17

Patch Set 3 : Respond to comments. #

Total comments: 6

Patch Set 4 : Respond to comments. #

Total comments: 4

Patch Set 5 : Respond to comment. #

Patch Set 6 : Respond to comment. #

Patch Set 7 : Fix implicite casting problems. #

Patch Set 8 : Fix for unittests. #

Patch Set 9 : Rebased #

Total comments: 1

Patch Set 10 : Add cmath include. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -15 lines) Patch
M webrtc/video/video_send_stream.cc View 1 2 3 4 5 6 7 8 9 11 chunks +47 lines, -11 lines 0 comments Download
M webrtc/video/video_send_stream_tests.cc View 1 2 3 4 5 6 7 8 4 chunks +76 lines, -4 lines 0 comments Download

Messages

Total messages: 75 (41 generated)
michaelt
Here the Cl, to subtract the overhead from the video bitrate.
4 years, 1 month ago (2016-11-22 16:29:45 UTC) #1
stefan-webrtc
https://codereview.webrtc.org/2517243005/diff/1/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (left): https://codereview.webrtc.org/2517243005/diff/1/webrtc/video/video_send_stream.cc#oldcode779 webrtc/video/video_send_stream.cc:779: RTC_DCHECK_LE(config_->rtp.max_packet_size, 0xFFFFu + kRtpPacketSizeOverhead); Is there still a reasonable ...
4 years, 1 month ago (2016-11-22 17:17:01 UTC) #4
michaelt
https://codereview.webrtc.org/2517243005/diff/1/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (left): https://codereview.webrtc.org/2517243005/diff/1/webrtc/video/video_send_stream.cc#oldcode779 webrtc/video/video_send_stream.cc:779: RTC_DCHECK_LE(config_->rtp.max_packet_size, 0xFFFFu + kRtpPacketSizeOverhead); We could check for lower ...
4 years, 1 month ago (2016-11-23 09:19:13 UTC) #5
stefan-webrtc
https://codereview.webrtc.org/2517243005/diff/1/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (right): https://codereview.webrtc.org/2517243005/diff/1/webrtc/video/video_send_stream.cc#newcode1229 webrtc/video/video_send_stream.cc:1229: (config_->rtp.max_packet_size + transport_overhead_per_packet_)); On 2016/11/23 09:19:13, michaelt wrote: > ...
4 years, 1 month ago (2016-11-23 10:01:07 UTC) #6
minyue-webrtc
https://codereview.webrtc.org/2517243005/diff/1/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (right): https://codereview.webrtc.org/2517243005/diff/1/webrtc/video/video_send_stream.cc#newcode1164 webrtc/video/video_send_stream.cc:1164: bitrate_bps *= payload_fraction_; I think we need to create ...
4 years, 1 month ago (2016-11-23 10:48:05 UTC) #7
stefan-webrtc
https://codereview.webrtc.org/2517243005/diff/1/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (right): https://codereview.webrtc.org/2517243005/diff/1/webrtc/video/video_send_stream.cc#newcode1164 webrtc/video/video_send_stream.cc:1164: bitrate_bps *= payload_fraction_; On 2016/11/23 10:48:05, minyue-webrtc wrote: > ...
4 years ago (2016-11-23 11:08:12 UTC) #8
minyue-webrtc
On 2016/11/23 11:08:12, stefan-webrtc (holmer) wrote: > https://codereview.webrtc.org/2517243005/diff/1/webrtc/video/video_send_stream.cc > File webrtc/video/video_send_stream.cc (right): > > https://codereview.webrtc.org/2517243005/diff/1/webrtc/video/video_send_stream.cc#newcode1164 ...
4 years ago (2016-11-23 11:28:52 UTC) #9
stefan-webrtc
On 2016/11/23 11:28:52, minyue-webrtc wrote: > On 2016/11/23 11:08:12, stefan-webrtc (holmer) wrote: > > > ...
4 years ago (2016-11-23 11:47:26 UTC) #10
stefan-webrtc
On 2016/11/23 11:47:26, stefan-webrtc (holmer) wrote: > On 2016/11/23 11:28:52, minyue-webrtc wrote: > > On ...
4 years ago (2016-11-23 11:47:57 UTC) #11
michaelt
https://codereview.webrtc.org/2517243005/diff/1/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (right): https://codereview.webrtc.org/2517243005/diff/1/webrtc/video/video_send_stream.cc#newcode1164 webrtc/video/video_send_stream.cc:1164: bitrate_bps *= payload_fraction_; Would prefer a field trial as ...
4 years ago (2016-11-23 12:00:24 UTC) #12
michaelt
A integration test for the feature sounds like a good idea as well.
4 years ago (2016-11-23 12:14:36 UTC) #13
michaelt
Added a test and the field trial.
4 years ago (2016-11-23 17:28:45 UTC) #14
minyue-webrtc
https://codereview.webrtc.org/2517243005/diff/20001/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (right): https://codereview.webrtc.org/2517243005/diff/20001/webrtc/video/video_send_stream.cc#newcode409 webrtc/video/video_send_stream.cc:409: size_t overhead_per_packet_ GUARDED_BY(overhead_per_packet_crit_); I think better to make the ...
4 years ago (2016-11-24 10:09:49 UTC) #15
michaelt
https://codereview.webrtc.org/2517243005/diff/20001/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (right): https://codereview.webrtc.org/2517243005/diff/20001/webrtc/video/video_send_stream.cc#newcode1172 webrtc/video/video_send_stream.cc:1172: bitrate_bps -= overhead_bps; On 2016/11/24 10:09:49, minyue-webrtc wrote: > ...
4 years ago (2016-11-24 14:38:53 UTC) #16
minyue-webrtc
nits found, lgtm otherwise https://codereview.webrtc.org/2517243005/diff/50001/webrtc/video/video_send_stream_tests.cc File webrtc/video/video_send_stream_tests.cc (right): https://codereview.webrtc.org/2517243005/diff/50001/webrtc/video/video_send_stream_tests.cc#newcode3180 webrtc/video/video_send_stream_tests.cc:3180: // maximum bandwidth estimate by ...
4 years ago (2016-11-24 15:45:46 UTC) #18
michaelt
https://codereview.webrtc.org/2517243005/diff/50001/webrtc/video/video_send_stream_tests.cc File webrtc/video/video_send_stream_tests.cc (right): https://codereview.webrtc.org/2517243005/diff/50001/webrtc/video/video_send_stream_tests.cc#newcode3180 webrtc/video/video_send_stream_tests.cc:3180: // maximum bandwidth estimate by the overhead rate." On ...
4 years ago (2016-11-24 16:29:21 UTC) #19
minyue-webrtc
found another nit https://codereview.webrtc.org/2517243005/diff/70001/webrtc/video/video_send_stream_tests.cc File webrtc/video/video_send_stream_tests.cc (right): https://codereview.webrtc.org/2517243005/diff/70001/webrtc/video/video_send_stream_tests.cc#newcode3219 webrtc/video/video_send_stream_tests.cc:3219: test::ScopedFieldTrials override_field_trials_( nit: override_field_trials
4 years ago (2016-11-25 10:50:33 UTC) #20
michaelt
https://codereview.webrtc.org/2517243005/diff/70001/webrtc/video/video_send_stream_tests.cc File webrtc/video/video_send_stream_tests.cc (right): https://codereview.webrtc.org/2517243005/diff/70001/webrtc/video/video_send_stream_tests.cc#newcode3219 webrtc/video/video_send_stream_tests.cc:3219: test::ScopedFieldTrials override_field_trials_( On 2016/11/25 10:50:33, minyue-webrtc wrote: > nit: ...
4 years ago (2016-11-28 13:52:21 UTC) #21
minyue-webrtc
still lgtm Hi Stefan, Do you have more comments?
4 years ago (2016-11-28 14:30:41 UTC) #22
stefan-webrtc
lgtm https://codereview.webrtc.org/2517243005/diff/70001/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (right): https://codereview.webrtc.org/2517243005/diff/70001/webrtc/video/video_send_stream.cc#newcode33 webrtc/video/video_send_stream.cc:33: #include "webrtc/system_wrappers/include/field_trial.h" Sort
4 years ago (2016-11-28 15:14:15 UTC) #23
michaelt
https://codereview.webrtc.org/2517243005/diff/70001/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (right): https://codereview.webrtc.org/2517243005/diff/70001/webrtc/video/video_send_stream.cc#newcode33 webrtc/video/video_send_stream.cc:33: #include "webrtc/system_wrappers/include/field_trial.h" On 2016/11/28 15:14:14, stefan-webrtc (holmer) wrote: > ...
4 years ago (2016-11-28 15:50:45 UTC) #24
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/2517243005/110001
4 years ago (2016-11-28 15:51:07 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: mac_asan on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_asan/builds/19759)
4 years ago (2016-11-28 15:55:53 UTC) #29
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/2517243005/130001
4 years ago (2016-11-29 10:16:23 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: mac_asan on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_asan/builds/19801)
4 years ago (2016-11-29 10:21:37 UTC) #34
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/2517243005/210001
4 years ago (2016-11-29 14:44:21 UTC) #60
commit-bot: I haz the power
Failed to apply patch for webrtc/video/video_send_stream.cc: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-11-29 14:54:56 UTC) #62
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/2517243005/230001
4 years ago (2016-11-29 16:49:31 UTC) #65
commit-bot: I haz the power
Committed patchset #9 (id:230001)
4 years ago (2016-11-29 17:25:08 UTC) #68
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/a33287761af733d41d8c0a082f3d2c2cefaa9a68 Cr-Commit-Position: refs/heads/master@{#15303}
4 years ago (2016-11-29 17:25:18 UTC) #70
hbos
https://codereview.webrtc.org/2517243005/diff/230001/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (right): https://codereview.webrtc.org/2517243005/diff/230001/webrtc/video/video_send_stream.cc#newcode1175 webrtc/video/video_send_stream.cc:1175: transport_overhead_bytes_per_packet_))); This is causing compile failures in the waterfall: ...
4 years ago (2016-11-30 09:29:32 UTC) #72
minyue-webrtc
On 2016/11/30 09:29:32, hbos wrote: > https://codereview.webrtc.org/2517243005/diff/230001/webrtc/video/video_send_stream.cc > File webrtc/video/video_send_stream.cc (right): > > https://codereview.webrtc.org/2517243005/diff/230001/webrtc/video/video_send_stream.cc#newcode1175 > ...
4 years ago (2016-11-30 09:42:03 UTC) #73
michaelt
On 2016/11/30 09:42:03, minyue-webrtc wrote: > On 2016/11/30 09:29:32, hbos wrote: > > > https://codereview.webrtc.org/2517243005/diff/230001/webrtc/video/video_send_stream.cc ...
4 years ago (2016-11-30 09:48:30 UTC) #74
hbos
4 years ago (2016-11-30 09:49:33 UTC) #75
Message was sent while issue was closed.
On 2016/11/30 09:42:03, minyue-webrtc wrote:
> On 2016/11/30 09:29:32, hbos wrote:
> >
>
https://codereview.webrtc.org/2517243005/diff/230001/webrtc/video/video_send_...
> > File webrtc/video/video_send_stream.cc (right):
> > 
> >
>
https://codereview.webrtc.org/2517243005/diff/230001/webrtc/video/video_send_...
> > webrtc/video/video_send_stream.cc:1175:
> transport_overhead_bytes_per_packet_)));
> > This is causing compile failures in the waterfall:
> > 
> >
>
https://build.chromium.org/p/chromium.webrtc.fyi/builders/Mac%20Builder/build...
> > 
> >
>
https://build.chromium.org/p/chromium.webrtc.fyi/builders/Android%20Builder%2...
> > 
> >
>
https://build.chromium.org/p/chromium.webrtc.fyi/builders/Android%20Builder%2...
> > 
> > Maybe you need to #include <cmath>?
> 
> Hi Michael,
> 
> Please add the missing cmath as soon as you can. We may need to revert this CL
> otherwise.

No worries, I uploaded: https://codereview.webrtc.org/2544473002

Powered by Google App Engine
This is Rietveld 408576698