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

Issue 1225123006: media/capture: Adding WebmMuxer class and unittests (Closed)

Created:
5 years, 5 months ago by mcasas
Modified:
5 years, 5 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@m_crbug262211__MSRecorder__2__libwebm_reland_in_third_party
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media/capture: Adding WebmMuxer class and unittests WebmMuxer gets encoded video packets and pings a callback with packetised "blobs" following Live WebM (simplified Matroska container) format. See DD @ https://goo.gl/kreaQj for the plan and https://codereview.chromium.org/1211973012/ for a hack of all parts together. BUG=262211 Committed: https://crrev.com/6f2bce27d46c0fd56d26143acdfdcdb1a7fc463f Cr-Commit-Position: refs/heads/master@{#340066}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : emircan@ nits, rebase (only media.gyp affected), removed bool from WriteCallbackCB signature #

Total comments: 25

Patch Set 3 : miu@s comments #

Total comments: 8

Patch Set 4 : miu@s second round of comments #

Total comments: 6

Patch Set 5 : miu@s third round of comments #

Total comments: 14

Patch Set 6 : dalecurtis@ and tomfinegan@ comments #

Total comments: 7

Patch Set 7 : dalecurtis@ second round of comments #

Total comments: 27

Patch Set 8 : dalecurtis@ third round of comments #

Patch Set 9 : Removed MockWebmMuxerEventHandler #

Total comments: 2

Patch Set 10 : Using base::StringPiece for encoded_data input #

Unified diffs Side-by-side diffs Delta from patch set Stats (+355 lines, -2 lines) Patch
M media/BUILD.gn View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M media/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A media/capture/webm_muxer.h View 1 2 3 4 5 6 7 8 9 1 chunk +87 lines, -0 lines 0 comments Download
A media/capture/webm_muxer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +98 lines, -0 lines 0 comments Download
A media/capture/webm_muxer_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +128 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 4 chunks +25 lines, -0 lines 0 comments Download
M media/media_options.gni View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M media/media_variables.gypi View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 54 (21 generated)
mcasas
dalecurtis@ PTAL or fwd appropriately, thanks! emircan@ PTAL
5 years, 5 months ago (2015-07-10 18:33:51 UTC) #6
DaleCurtis
Video can easily outgrow available memory in a minute or so. I don't think an ...
5 years, 5 months ago (2015-07-13 18:12:48 UTC) #7
emircan
https://codereview.chromium.org/1225123006/diff/80001/media/filters/webm_muxer.cc File media/filters/webm_muxer.cc (right): https://codereview.chromium.org/1225123006/diff/80001/media/filters/webm_muxer.cc#newcode52 media/filters/webm_muxer.cc:52: track_index_starting_from_one) == track_indexes_.end()) { Do you need to keep ...
5 years, 5 months ago (2015-07-13 18:14:40 UTC) #8
mcasas
On 2015/07/13 18:12:48, DaleCurtis wrote: > Video can easily outgrow available memory in a minute ...
5 years, 5 months ago (2015-07-13 18:34:42 UTC) #9
DaleCurtis
media/capture? I see that you're using a write callback, but I haven't traced to see ...
5 years, 5 months ago (2015-07-13 22:20:04 UTC) #10
mcasas
On 2015/07/13 22:20:04, DaleCurtis wrote: > media/capture? media/capture is now populated with screen/tab capture specific ...
5 years, 5 months ago (2015-07-15 23:00:55 UTC) #16
mcasas
miu@ PTAL (notwithstanding dalecurtis@ location comments) https://codereview.chromium.org/1225123006/diff/80001/media/filters/webm_muxer.cc File media/filters/webm_muxer.cc (right): https://codereview.chromium.org/1225123006/diff/80001/media/filters/webm_muxer.cc#newcode52 media/filters/webm_muxer.cc:52: track_index_starting_from_one) == track_indexes_.end()) ...
5 years, 5 months ago (2015-07-15 23:29:12 UTC) #19
DaleCurtis
filters/ is entirely demuxers and media playback code though. I feel like this should live ...
5 years, 5 months ago (2015-07-16 01:39:20 UTC) #20
miu
https://codereview.chromium.org/1225123006/diff/190001/media/filters/webm_muxer.cc File media/filters/webm_muxer.cc (right): https://codereview.chromium.org/1225123006/diff/190001/media/filters/webm_muxer.cc#newcode27 media/filters/webm_muxer.cc:27: base::Time::FromUTCString("1 Jan 2001 00:00:00.000", &utc_epoch); BTW--The media/PRESUBMIT.py script may ...
5 years, 5 months ago (2015-07-16 01:46:26 UTC) #21
miu
BTW--Thanks for doing this! I actually have a need for a WebM muxer right now ...
5 years, 5 months ago (2015-07-16 01:47:36 UTC) #22
mcasas
miu@ PTAL (dalecurtis@: moved webm_muxer* to media/capture.) https://codereview.chromium.org/1225123006/diff/190001/media/filters/webm_muxer.cc File media/filters/webm_muxer.cc (right): https://codereview.chromium.org/1225123006/diff/190001/media/filters/webm_muxer.cc#newcode27 media/filters/webm_muxer.cc:27: base::Time::FromUTCString("1 Jan ...
5 years, 5 months ago (2015-07-17 17:45:07 UTC) #24
miu
https://codereview.chromium.org/1225123006/diff/190001/media/filters/webm_muxer_unittest.cc File media/filters/webm_muxer_unittest.cc (right): https://codereview.chromium.org/1225123006/diff/190001/media/filters/webm_muxer_unittest.cc#newcode138 media/filters/webm_muxer_unittest.cc:138: } On 2015/07/17 17:45:07, mcasas wrote: > On 2015/07/16 ...
5 years, 5 months ago (2015-07-17 22:23:19 UTC) #26
mcasas
PTAL https://codereview.chromium.org/1225123006/diff/250001/media/capture/webm_muxer.cc File media/capture/webm_muxer.cc (right): https://codereview.chromium.org/1225123006/diff/250001/media/capture/webm_muxer.cc#newcode101 media/capture/webm_muxer.cc:101: segment_->GetSegmentInfo()->set_timecode_scale(1000000000ull); On 2015/07/17 22:23:18, miu wrote: > IIUC, ...
5 years, 5 months ago (2015-07-18 00:05:23 UTC) #28
miu
https://codereview.chromium.org/1225123006/diff/290001/media/capture/webm_muxer.cc File media/capture/webm_muxer.cc (right): https://codereview.chromium.org/1225123006/diff/290001/media/capture/webm_muxer.cc#newcode84 media/capture/webm_muxer.cc:84: const base::TimeDelta& timedelta_us, naming: Remove _us suffix here too, ...
5 years, 5 months ago (2015-07-18 00:29:39 UTC) #29
mcasas
miu@ PTAL tomfinegan@ could you have a look at my usage of libwwebm please? particularly ...
5 years, 5 months ago (2015-07-20 16:25:15 UTC) #31
DaleCurtis
What is the binary size increase for using libwebm too? https://codereview.chromium.org/1225123006/diff/330001/media/capture/webm_muxer.cc File media/capture/webm_muxer.cc (right): https://codereview.chromium.org/1225123006/diff/330001/media/capture/webm_muxer.cc#newcode33 ...
5 years, 5 months ago (2015-07-20 18:45:17 UTC) #33
Tom Finegan
Looks fine excepting your timecode scale, and using the webm blessed value isn't going to ...
5 years, 5 months ago (2015-07-20 18:58:23 UTC) #34
mcasas
guys PTAL https://codereview.chromium.org/1225123006/diff/330001/media/capture/webm_muxer.cc File media/capture/webm_muxer.cc (right): https://codereview.chromium.org/1225123006/diff/330001/media/capture/webm_muxer.cc#newcode33 media/capture/webm_muxer.cc:33: DVLOG(2) << __FUNCTION__; On 2015/07/20 18:45:17, DaleCurtis ...
5 years, 5 months ago (2015-07-20 20:15:21 UTC) #35
DaleCurtis
Also, binary size data? :) https://codereview.chromium.org/1225123006/diff/330001/media/capture/webm_muxer.h File media/capture/webm_muxer.h (right): https://codereview.chromium.org/1225123006/diff/330001/media/capture/webm_muxer.h#newcode58 media/capture/webm_muxer.h:58: friend class WebmMuxerTest; On ...
5 years, 5 months ago (2015-07-20 20:23:07 UTC) #36
mcasas
dalecurtis@ PTAL. About the binary size: "libwebm binary size only includes muxing parts, 12KB in ...
5 years, 5 months ago (2015-07-21 12:56:21 UTC) #37
DaleCurtis
Thanks for the binary size info; I didn't see it in the libwebm CL (I ...
5 years, 5 months ago (2015-07-21 16:52:31 UTC) #39
mcasas
PTAL https://codereview.chromium.org/1225123006/diff/350001/media/capture/webm_muxer.cc File media/capture/webm_muxer.cc (right): https://codereview.chromium.org/1225123006/diff/350001/media/capture/webm_muxer.cc#newcode57 media/capture/webm_muxer.cc:57: const std::string& encoded_data, On 2015/07/21 16:52:30, DaleCurtis wrote: ...
5 years, 5 months ago (2015-07-21 19:47:00 UTC) #40
DaleCurtis
https://codereview.chromium.org/1225123006/diff/390001/media/capture/webm_muxer_unittest.cc File media/capture/webm_muxer_unittest.cc (right): https://codereview.chromium.org/1225123006/diff/390001/media/capture/webm_muxer_unittest.cc#newcode55 media/capture/webm_muxer_unittest.cc:55: base::Bind(&MockWebmMuxerEventHandler::WriteCallback, On 2015/07/21 19:47:00, mcasas wrote: > On 2015/07/21 ...
5 years, 5 months ago (2015-07-21 19:52:26 UTC) #41
Tom Finegan
https://codereview.chromium.org/1225123006/diff/350001/media/capture/webm_muxer.cc File media/capture/webm_muxer.cc (right): https://codereview.chromium.org/1225123006/diff/350001/media/capture/webm_muxer.cc#newcode57 media/capture/webm_muxer.cc:57: const std::string& encoded_data, On 2015/07/21 12:56:20, mcasas wrote: > ...
5 years, 5 months ago (2015-07-21 21:19:09 UTC) #42
Tom Finegan
On 2015/07/21 21:19:09, Tom Finegan wrote: > https://codereview.chromium.org/1225123006/diff/350001/media/capture/webm_muxer.cc > File media/capture/webm_muxer.cc (right): > > https://codereview.chromium.org/1225123006/diff/350001/media/capture/webm_muxer.cc#newcode57 ...
5 years, 5 months ago (2015-07-21 21:20:44 UTC) #43
mcasas
5 years, 5 months ago (2015-07-22 07:22:20 UTC) #44
DaleCurtis
https://codereview.chromium.org/1225123006/diff/430001/media/capture/webm_muxer.h File media/capture/webm_muxer.h (right): https://codereview.chromium.org/1225123006/diff/430001/media/capture/webm_muxer.h#newcode38 media/capture/webm_muxer.h:38: using WriteDataCB = base::Callback<void(const char*, size_t)>; You use char* ...
5 years, 5 months ago (2015-07-22 18:19:17 UTC) #45
DaleCurtis
lgtm % nits, but please get signoff from miu@ since he reviewed earlier.
5 years, 5 months ago (2015-07-22 18:24:21 UTC) #47
miu
lgtm
5 years, 5 months ago (2015-07-22 19:29:51 UTC) #48
mcasas
https://codereview.chromium.org/1225123006/diff/430001/media/capture/webm_muxer.h File media/capture/webm_muxer.h (right): https://codereview.chromium.org/1225123006/diff/430001/media/capture/webm_muxer.h#newcode38 media/capture/webm_muxer.h:38: using WriteDataCB = base::Callback<void(const char*, size_t)>; On 2015/07/22 18:19:17, ...
5 years, 5 months ago (2015-07-23 10:05:14 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1225123006/450001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1225123006/450001
5 years, 5 months ago (2015-07-23 10:05:24 UTC) #52
commit-bot: I haz the power
Committed patchset #10 (id:450001)
5 years, 5 months ago (2015-07-23 10:20:34 UTC) #53
commit-bot: I haz the power
5 years, 5 months ago (2015-07-23 10:21:12 UTC) #54
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/6f2bce27d46c0fd56d26143acdfdcdb1a7fc463f
Cr-Commit-Position: refs/heads/master@{#340066}

Powered by Google App Engine
This is Rietveld 408576698