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

Issue 1757313002: Initialize/configure video encoders asychronously. (Closed)

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

Description

Initialize/configure video encoders asychronously. Greatly speeds up setRemoteDescription() by moving encoder initialization off the main worker thread, which is free to move onto gathering ICE candidates and other tasks while InitEncode() is performed. It also un-blocks PeerConnection GetStats() which is no longer blocked on encoder initialization. BUG=webrtc:5410 R=stefan@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/fb647a67be94bb3c940d8b5fba01972f7ce91a29

Patch Set 1 #

Total comments: 10

Patch Set 2 : rebase #

Patch Set 3 : feedback #

Total comments: 2

Patch Set 4 : merge switch blocks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -173 lines) Patch
M webrtc/media/engine/fakewebrtcvideoengine.h View 1 2 6 chunks +30 lines, -8 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2_unittest.cc View 1 2 6 chunks +11 lines, -4 lines 0 comments Download
M webrtc/video/video_quality_test.cc View 1 2 10 chunks +36 lines, -7 lines 0 comments Download
M webrtc/video/video_send_stream.h View 1 3 chunks +8 lines, -0 lines 0 comments Download
M webrtc/video/video_send_stream.cc View 1 2 3 5 chunks +185 lines, -149 lines 0 comments Download
M webrtc/video/video_send_stream_tests.cc View 15 chunks +36 lines, -5 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1757313002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1757313002/1
4 years, 9 months ago (2016-03-03 16:46:30 UTC) #2
pbos-webrtc
PTAL
4 years, 9 months ago (2016-03-03 16:47:51 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) ...
4 years, 9 months ago (2016-03-03 18:46:57 UTC) #5
stefan-webrtc
Nice https://codereview.webrtc.org/1757313002/diff/1/webrtc/media/engine/webrtcvideoengine2_unittest.cc File webrtc/media/engine/webrtcvideoengine2_unittest.cc (right): https://codereview.webrtc.org/1757313002/diff/1/webrtc/media/engine/webrtcvideoengine2_unittest.cc#newcode590 webrtc/media/engine/webrtcvideoengine2_unittest.cc:590: ASSERT_TRUE(encoder_factory.WaitForCreatedVideoEncoder()); Maybe we should make WaitForCreatedVideoEncoder take a ...
4 years, 9 months ago (2016-03-14 13:14:03 UTC) #6
pbos-webrtc
rebase
4 years, 9 months ago (2016-03-14 14:05:23 UTC) #7
pbos-webrtc
feedback
4 years, 9 months ago (2016-03-14 15:12:53 UTC) #8
pbos-webrtc
PTAL https://codereview.webrtc.org/1757313002/diff/1/webrtc/media/engine/webrtcvideoengine2_unittest.cc File webrtc/media/engine/webrtcvideoengine2_unittest.cc (right): https://codereview.webrtc.org/1757313002/diff/1/webrtc/media/engine/webrtcvideoengine2_unittest.cc#newcode590 webrtc/media/engine/webrtcvideoengine2_unittest.cc:590: ASSERT_TRUE(encoder_factory.WaitForCreatedVideoEncoder()); On 2016/03/14 13:14:03, stefan-webrtc (holmer) wrote: > ...
4 years, 9 months ago (2016-03-14 15:12:58 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1757313002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1757313002/40001
4 years, 9 months ago (2016-03-14 15:13:13 UTC) #11
stefan-webrtc
lgtm, but consider my comment. https://codereview.webrtc.org/1757313002/diff/40001/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (right): https://codereview.webrtc.org/1757313002/diff/40001/webrtc/video/video_send_stream.cc#newcode192 webrtc/video/video_send_stream.cc:192: if (video_codec.codecType == kVideoCodecVP8) ...
4 years, 9 months ago (2016-03-14 15:27:22 UTC) #12
pbos-webrtc
merge switch blocks
4 years, 9 months ago (2016-03-14 15:42:43 UTC) #13
pbos-webrtc
https://codereview.webrtc.org/1757313002/diff/40001/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (right): https://codereview.webrtc.org/1757313002/diff/40001/webrtc/video/video_send_stream.cc#newcode192 webrtc/video/video_send_stream.cc:192: if (video_codec.codecType == kVideoCodecVP8) { On 2016/03/14 15:27:22, stefan-webrtc ...
4 years, 9 months ago (2016-03-14 15:43:11 UTC) #14
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/fb647a67be94bb3c940d8b5fba01972f7ce91a29 Cr-Commit-Position: refs/heads/master@{#11983}
4 years, 9 months ago (2016-03-14 15:59:08 UTC) #16
pbos-webrtc
Committed patchset #4 (id:60001) manually as fb647a67be94bb3c940d8b5fba01972f7ce91a29 (presubmit successful).
4 years, 9 months ago (2016-03-14 15:59:10 UTC) #18
emircan
I am currently hitting a DCHECK(thread_checker) in Chrome ToT, and it looks like this patch ...
4 years, 9 months ago (2016-03-16 00:37:22 UTC) #19
pbos-webrtc
On 2016/03/16 00:37:22, emircan wrote: > I am currently hitting a DCHECK(thread_checker) in Chrome ToT, ...
4 years, 9 months ago (2016-03-16 13:57:04 UTC) #20
pbos-webrtc
4 years, 9 months ago (2016-03-22 10:25:14 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.webrtc.org/1821983002/ by pbos@webrtc.org.

The reason for reverting is: Breaks RTCVideoEncoder which has incorrect
assumptions on where InitEncode etc. is called from. Temporarily reverting until
RTCVideoEncoder has been updated..

Powered by Google App Engine
This is Rietveld 408576698