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

Issue 1414793002: Update WebmMuxer for audio component of MediaStream recording. (Closed)

Created:
5 years, 2 months ago by ajose
Modified:
5 years, 1 month ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update WebmMuxer for audio component of MediaStream recording. This is the second of ~three CLs for adding the audio component of MediaStreamRecording. These CLs will be: 1) Add AudioTrackRecorder, a MediaStreamAudioSink which will be owned by MediaRecorderHandler 2) Update WebmMuxer to mux Opus output of AudioTrackRecorder 3) Update MediaRecorderHandler to use AudioTrackRecorder Also refactors some opus header-related constants into a common location. BUG=528519 Committed: https://crrev.com/528e1355c6c1d16b966d453fbf9df45ecfe144cf Cr-Commit-Position: refs/heads/master@{#358489}

Patch Set 1 : #

Total comments: 24

Patch Set 2 : address comments #

Total comments: 11

Patch Set 3 : address comments #

Total comments: 4

Patch Set 4 : address miu's comments #

Total comments: 14

Patch Set 5 : address comments #

Total comments: 10

Patch Set 6 : address comments #

Total comments: 4

Patch Set 7 : mcasas@ comments #

Patch Set 8 : format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+454 lines, -194 lines) Patch
M content/renderer/media/media_recorder_handler.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -5 lines 0 comments Download
M media/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M media/capture/webm_muxer.h View 1 2 3 4 5 6 3 chunks +30 lines, -13 lines 0 comments Download
M media/capture/webm_muxer.cc View 1 2 3 4 5 6 3 chunks +145 lines, -23 lines 0 comments Download
M media/capture/webm_muxer_unittest.cc View 1 2 4 chunks +74 lines, -6 lines 0 comments Download
M media/filters/opus_audio_decoder.cc View 1 2 3 4 5 6 7 9 chunks +26 lines, -147 lines 0 comments Download
A media/filters/opus_constants.h View 1 2 3 4 5 6 7 1 chunk +112 lines, -0 lines 0 comments Download
A media/filters/opus_constants.cc View 1 2 3 4 5 6 7 1 chunk +57 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (17 generated)
ajose
Think this is ready for an initial review.
5 years, 1 month ago (2015-10-27 23:36:18 UTC) #6
mcasas
Doesn't look too bad, I've got a few comments to get going. https://codereview.chromium.org/1414793002/diff/80001/media/capture/webm_muxer.cc File media/capture/webm_muxer.cc ...
5 years, 1 month ago (2015-10-28 00:42:02 UTC) #7
ajose
Thanks for the comments :) https://codereview.chromium.org/1414793002/diff/80001/media/capture/webm_muxer.cc File media/capture/webm_muxer.cc (right): https://codereview.chromium.org/1414793002/diff/80001/media/capture/webm_muxer.cc#newcode17 media/capture/webm_muxer.cc:17: // Comments and constants ...
5 years, 1 month ago (2015-10-28 23:43:47 UTC) #8
mcasas
https://codereview.chromium.org/1414793002/diff/100001/content/renderer/media/media_recorder_handler.cc File content/renderer/media/media_recorder_handler.cc (right): https://codereview.chromium.org/1414793002/diff/100001/content/renderer/media/media_recorder_handler.cc#newcode88 content/renderer/media/media_recorder_handler.cc:88: 0 /* no audio for now */, base::Bind(&MediaRecorderHandler::WriteData, Please ...
5 years, 1 month ago (2015-11-02 18:29:54 UTC) #10
ajose
Thanks for the comments! Will wait on switching to a lazy class for now. tomfinegan@: ...
5 years, 1 month ago (2015-11-02 22:39:51 UTC) #12
miu
https://codereview.chromium.org/1414793002/diff/120001/media/filters/opus_header_constants.h File media/filters/opus_header_constants.h (right): https://codereview.chromium.org/1414793002/diff/120001/media/filters/opus_header_constants.h#newcode41 media/filters/opus_header_constants.h:41: static const int kMaxChannelsWithDefaultLayout = 2; Per discussion on ...
5 years, 1 month ago (2015-11-03 04:18:29 UTC) #13
ajose
Great, thanks for the help miu@. https://codereview.chromium.org/1414793002/diff/120001/media/filters/opus_header_constants.h File media/filters/opus_header_constants.h (right): https://codereview.chromium.org/1414793002/diff/120001/media/filters/opus_header_constants.h#newcode41 media/filters/opus_header_constants.h:41: static const int ...
5 years, 1 month ago (2015-11-03 23:06:22 UTC) #14
miu
lgtm % nits https://codereview.chromium.org/1414793002/diff/140001/media/capture/webm_muxer.cc File media/capture/webm_muxer.cc (right): https://codereview.chromium.org/1414793002/diff/140001/media/capture/webm_muxer.cc#newcode72 media/capture/webm_muxer.cc:72: size_t num_video_tracks, You take num_XXXXX_tracks as ...
5 years, 1 month ago (2015-11-04 00:18:28 UTC) #15
Tom Finegan
Looks fine. One nit and a comment re using size_t for track number (just that ...
5 years, 1 month ago (2015-11-04 00:28:55 UTC) #16
mcasas
https://codereview.chromium.org/1414793002/diff/140001/media/capture/webm_muxer.h File media/capture/webm_muxer.h (right): https://codereview.chromium.org/1414793002/diff/140001/media/capture/webm_muxer.h#newcode47 media/capture/webm_muxer.h:47: size_t num_audio_tracks, On 2015/11/04 00:28:55, Tom Finegan wrote: > ...
5 years, 1 month ago (2015-11-04 00:41:40 UTC) #17
ajose
Thanks for the comments, and for the heads up about track limits. https://codereview.chromium.org/1414793002/diff/140001/media/capture/webm_muxer.cc File media/capture/webm_muxer.cc ...
5 years, 1 month ago (2015-11-04 20:51:19 UTC) #18
mcasas
Looking good, few questions. https://codereview.chromium.org/1414793002/diff/160001/media/capture/webm_muxer.cc File media/capture/webm_muxer.cc (right): https://codereview.chromium.org/1414793002/diff/160001/media/capture/webm_muxer.cc#newcode91 media/capture/webm_muxer.cc:91: DCHECK_LT(num_audio_tracks, LIBWEBM_MAX_TRACK_NUMBER); Use |mkvmuxer::kMaxTrackNumber| instead, ...
5 years, 1 month ago (2015-11-05 02:08:20 UTC) #19
ajose
Thanks for the comments! https://codereview.chromium.org/1414793002/diff/160001/media/capture/webm_muxer.cc File media/capture/webm_muxer.cc (right): https://codereview.chromium.org/1414793002/diff/160001/media/capture/webm_muxer.cc#newcode91 media/capture/webm_muxer.cc:91: DCHECK_LT(num_audio_tracks, LIBWEBM_MAX_TRACK_NUMBER); On 2015/11/05 02:08:20, ...
5 years, 1 month ago (2015-11-05 19:02:58 UTC) #20
mcasas
Remove the |num_{audio_video}_tracks_| and you're good to go. With that premise, LGTM. https://codereview.chromium.org/1414793002/diff/200001/media/capture/webm_muxer.h File media/capture/webm_muxer.h ...
5 years, 1 month ago (2015-11-06 02:22:37 UTC) #22
ajose
Thanks for the comments, removed multi-track stuff. dalecurtis@: RS lgtm? https://codereview.chromium.org/1414793002/diff/200001/media/capture/webm_muxer.h File media/capture/webm_muxer.h (right): https://codereview.chromium.org/1414793002/diff/200001/media/capture/webm_muxer.h#newcode33 ...
5 years, 1 month ago (2015-11-06 18:40:52 UTC) #24
mcasas
On 2015/11/06 18:40:52, ajose wrote: > Thanks for the comments, removed multi-track stuff. > > ...
5 years, 1 month ago (2015-11-06 19:04:25 UTC) #25
ajose
To avoid issues with writing the WebM header, we need some way of knowing what ...
5 years, 1 month ago (2015-11-06 19:16:48 UTC) #26
mcasas
On 2015/11/06 19:16:48, ajose wrote: > To avoid issues with writing the WebM header, we ...
5 years, 1 month ago (2015-11-06 19:21:02 UTC) #27
DaleCurtis
lgtm
5 years, 1 month ago (2015-11-06 23:45:38 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414793002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414793002/280001
5 years, 1 month ago (2015-11-06 23:55:15 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/116509)
5 years, 1 month ago (2015-11-07 00:11:12 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414793002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414793002/300001
5 years, 1 month ago (2015-11-07 00:21:53 UTC) #39
commit-bot: I haz the power
Committed patchset #8 (id:300001)
5 years, 1 month ago (2015-11-07 01:34:37 UTC) #40
commit-bot: I haz the power
5 years, 1 month ago (2015-11-07 01:35:35 UTC) #41
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/528e1355c6c1d16b966d453fbf9df45ecfe144cf
Cr-Commit-Position: refs/heads/master@{#358489}

Powered by Google App Engine
This is Rietveld 408576698