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

Issue 2624053002: MediaRecorder: use VideoTrackRecorder::GetPreferredCodecId() when available (Closed)

Created:
3 years, 11 months ago by mcasas
Modified:
3 years, 11 months ago
Reviewers:
emircan, chfremer
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MediaRecorder: use VideoTrackRecorder::GetPreferredCodecId() when available This CL adds a static method to VTR to query which one, if any, is the preferred video codec. A new singleton Lazy Leaky class CodecEnumerator is added to encapsulate poking the VEA to see which codecs are supported, and to further query a) the preferred codec id b) if a given codec is supported and wraps the previous CodecIdToVEAProfile() functionality. BUG=679946 Review-Url: https://codereview.chromium.org/2624053002 Cr-Commit-Position: refs/heads/master@{#443165} Committed: https://chromium.googlesource.com/chromium/src/+/904b7a6f6dffa9cee5ac930c37dd591c330d14c6

Patch Set 1 : #

Total comments: 4

Patch Set 2 : class CodecEnumerator #

Total comments: 5

Patch Set 3 : emircan@ comments #

Total comments: 12

Patch Set 4 : chfremer@ comments #

Patch Set 5 : Windows issue: doesn't like static constexpr members w/ initialization #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -38 lines) Patch
M content/browser/webrtc/webrtc_media_recorder_browsertest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/media_recorder_handler.cc View 1 3 chunks +8 lines, -2 lines 0 comments Download
M content/renderer/media/video_track_recorder.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/media/video_track_recorder.cc View 1 2 3 4 3 chunks +80 lines, -36 lines 0 comments Download

Messages

Total messages: 37 (23 generated)
mcasas
emircan@ PTAL Any suggestions on testing this? VEAs are not present in content_browsertests, it seems ...
3 years, 11 months ago (2017-01-11 15:30:08 UTC) #5
chfremer
https://codereview.chromium.org/2624053002/diff/40001/content/renderer/media/video_track_recorder.cc File content/renderer/media/video_track_recorder.cc (right): https://codereview.chromium.org/2624053002/diff/40001/content/renderer/media/video_track_recorder.cc#newcode1085 content/renderer/media/video_track_recorder.cc:1085: switch (codec_id) { Why not use a for-loop to ...
3 years, 11 months ago (2017-01-11 17:34:52 UTC) #8
chfremer
https://codereview.chromium.org/2624053002/diff/40001/content/renderer/media/video_track_recorder.cc File content/renderer/media/video_track_recorder.cc (right): https://codereview.chromium.org/2624053002/diff/40001/content/renderer/media/video_track_recorder.cc#newcode1085 content/renderer/media/video_track_recorder.cc:1085: switch (codec_id) { Why not use a for-loop to ...
3 years, 11 months ago (2017-01-11 17:34:52 UTC) #9
chfremer
On 2017/01/11 15:30:08, mcasas wrote: > emircan@ PTAL > > Any suggestions on testing this? ...
3 years, 11 months ago (2017-01-11 17:44:29 UTC) #10
emircan
https://codereview.chromium.org/2624053002/diff/40001/content/renderer/media/video_track_recorder.cc File content/renderer/media/video_track_recorder.cc (right): https://codereview.chromium.org/2624053002/diff/40001/content/renderer/media/video_track_recorder.cc#newcode1082 content/renderer/media/video_track_recorder.cc:1082: if (CodecIdToVEAProfile(codec_id) != media::VIDEO_CODEC_PROFILE_UNKNOWN) We end up calling CodecIdToVEAProfile() ...
3 years, 11 months ago (2017-01-11 18:01:58 UTC) #11
mcasas
ptal. https://codereview.chromium.org/2624053002/diff/40001/content/renderer/media/video_track_recorder.cc File content/renderer/media/video_track_recorder.cc (right): https://codereview.chromium.org/2624053002/diff/40001/content/renderer/media/video_track_recorder.cc#newcode1082 content/renderer/media/video_track_recorder.cc:1082: if (CodecIdToVEAProfile(codec_id) != media::VIDEO_CODEC_PROFILE_UNKNOWN) On 2017/01/11 18:01:58, emircan ...
3 years, 11 months ago (2017-01-11 21:40:48 UTC) #17
emircan
https://codereview.chromium.org/2624053002/diff/120001/content/renderer/media/video_track_recorder.cc File content/renderer/media/video_track_recorder.cc (right): https://codereview.chromium.org/2624053002/diff/120001/content/renderer/media/video_track_recorder.cc#newcode138 content/renderer/media/video_track_recorder.cc:138: std::make_pair(codec_id_and_profile.codec_id, vea_profile.profile)); Note that this would take the min ...
3 years, 11 months ago (2017-01-11 22:11:05 UTC) #18
emircan
On 2017/01/11 22:11:05, emircan wrote: > https://codereview.chromium.org/2624053002/diff/120001/content/renderer/media/video_track_recorder.cc > File content/renderer/media/video_track_recorder.cc (right): > > https://codereview.chromium.org/2624053002/diff/120001/content/renderer/media/video_track_recorder.cc#newcode138 > ...
3 years, 11 months ago (2017-01-11 22:14:36 UTC) #19
mcasas
https://codereview.chromium.org/2624053002/diff/120001/content/renderer/media/video_track_recorder.cc File content/renderer/media/video_track_recorder.cc (right): https://codereview.chromium.org/2624053002/diff/120001/content/renderer/media/video_track_recorder.cc#newcode138 content/renderer/media/video_track_recorder.cc:138: std::make_pair(codec_id_and_profile.codec_id, vea_profile.profile)); On 2017/01/11 22:11:05, emircan wrote: > codec_id_to_profile_.emplace(codec_id_and_profile.codec_id, ...
3 years, 11 months ago (2017-01-11 22:30:16 UTC) #20
chfremer
PS#3 lgtm with some nits (and whining) https://codereview.chromium.org/2624053002/diff/140001/content/renderer/media/media_recorder_handler.cc File content/renderer/media/media_recorder_handler.cc (right): https://codereview.chromium.org/2624053002/diff/140001/content/renderer/media/media_recorder_handler.cc#newcode141 content/renderer/media/media_recorder_handler.cc:141: codec_id_ = ...
3 years, 11 months ago (2017-01-11 23:24:56 UTC) #21
mcasas
https://codereview.chromium.org/2624053002/diff/120001/content/renderer/media/video_track_recorder.cc File content/renderer/media/video_track_recorder.cc (right): https://codereview.chromium.org/2624053002/diff/120001/content/renderer/media/video_track_recorder.cc#newcode138 content/renderer/media/video_track_recorder.cc:138: std::make_pair(codec_id_and_profile.codec_id, vea_profile.profile)); On 2017/01/11 22:30:16, mcasas wrote: > On ...
3 years, 11 months ago (2017-01-12 00:20:55 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.chromium.org/2624053002/250001
3 years, 11 months ago (2017-01-12 05:59:54 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:250001) as https://chromium.googlesource.com/chromium/src/+/904b7a6f6dffa9cee5ac930c37dd591c330d14c6
3 years, 11 months ago (2017-01-12 06:06:05 UTC) #36
xlai (Olivia)
3 years, 11 months ago (2017-01-12 16:10:15 UTC) #37
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:250001) has been created in
https://codereview.chromium.org/2622273006/ by xlai@chromium.org.

The reason for reverting is: Suspected CL-to-blame for webkit tests failing on
Mac Retina:
fast/mediacapturefromelement/HTMLMediaElementCapture-capture.html
fast/mediacapturefromelement/CanvasCaptureMediaStream-framerate-0.html

https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac10.11%20%28....

Powered by Google App Engine
This is Rietveld 408576698