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

Issue 1998333002: MP4 support for Common Encryption 'cbcs' scheme. (Closed)

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

Description

MP4 support for Common Encryption 'cbcs' scheme. In order to support SAMPLE-AES encrypted packed audio streams in HLS, the Cast media player library cast will reformat them into MP4. The change herein, by adding support for the 'cbcs' scheme will allow them to be decrypted by the platform. BUG=568326 Committed: https://crrev.com/9554f3d53f6bd4db8b797b189fbfc21722c7d106 Cr-Commit-Position: refs/heads/master@{#435739}

Patch Set 1 #

Patch Set 2 : fix a problem in hasty change before upload #

Total comments: 20

Patch Set 3 : accommodate comments #

Total comments: 8

Patch Set 4 : handle comments #

Total comments: 53

Patch Set 5 : rebase #

Patch Set 6 : ddorwin more detailed comments #

Total comments: 11

Patch Set 7 : rebase #

Patch Set 8 : kq nits #

Total comments: 10

Patch Set 9 : rebase #

Patch Set 10 : possibly unneeded rebase upload #

Patch Set 11 : fix CL build err unused var #

Patch Set 12 : another unused var #

Patch Set 13 : some ddorwin comments #

Patch Set 14 : another ddorwin comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+475 lines, -60 lines) Patch
M media/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M media/formats/mp4/box_definitions.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +20 lines, -1 line 0 comments Download
M media/formats/mp4/box_definitions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +95 lines, -25 lines 0 comments Download
M media/formats/mp4/fourccs.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M media/formats/mp4/mp4_stream_parser.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +60 lines, -16 lines 0 comments Download
M media/formats/mp4/track_run_iterator.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M media/formats/mp4/track_run_iterator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +86 lines, -16 lines 0 comments Download
M media/formats/mp4/track_run_iterator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +204 lines, -2 lines 0 comments Download
M media/media_options.gni View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (24 generated)
dougsteed
Please hold off on reviewing for now. Made some last minute changes before submission that ...
4 years, 7 months ago (2016-05-20 22:49:02 UTC) #3
dougsteed
On 2016/05/20 22:49:02, dougsteed wrote: > Please hold off on reviewing for now. Made some ...
4 years, 7 months ago (2016-05-22 21:17:30 UTC) #4
kqyang
Looks good with a couple of nits https://chromiumcodereview.appspot.com/1998333002/diff/20001/media/formats/mp4/box_definitions.cc File media/formats/mp4/box_definitions.cc (right): https://chromiumcodereview.appspot.com/1998333002/diff/20001/media/formats/mp4/box_definitions.cc#newcode252 media/formats/mp4/box_definitions.cc:252: reader->Read1(&default_iv_size) && ...
4 years, 7 months ago (2016-05-23 20:57:35 UTC) #5
ddorwin
https://chromiumcodereview.appspot.com/1998333002/diff/20001/media/formats/mp4/box_definitions.cc File media/formats/mp4/box_definitions.cc (right): https://chromiumcodereview.appspot.com/1998333002/diff/20001/media/formats/mp4/box_definitions.cc#newcode256 media/formats/mp4/box_definitions.cc:256: #if BUILDFLAG(ENABLE_CENC_NEW_EDITIONS) On 2016/05/23 20:57:34, kqyang wrote: > I'd ...
4 years, 7 months ago (2016-05-24 23:25:04 UTC) #6
dougsteed
https://codereview.chromium.org/1998333002/diff/20001/media/formats/mp4/box_definitions.cc File media/formats/mp4/box_definitions.cc (right): https://codereview.chromium.org/1998333002/diff/20001/media/formats/mp4/box_definitions.cc#newcode252 media/formats/mp4/box_definitions.cc:252: reader->Read1(&default_iv_size) && reader->ReadVec(&default_kid, 16)); On 2016/05/23 20:57:34, kqyang wrote: ...
4 years, 7 months ago (2016-05-25 17:23:21 UTC) #7
kqyang
lgtm LGTM with nits https://codereview.chromium.org/1998333002/diff/20001/media/formats/mp4/box_definitions.h File media/formats/mp4/box_definitions.h (right): https://codereview.chromium.org/1998333002/diff/20001/media/formats/mp4/box_definitions.h#newcode136 media/formats/mp4/box_definitions.h:136: uint8_t default_constant_iv_size; On 2016/05/25 17:23:21, ...
4 years, 7 months ago (2016-05-26 17:34:50 UTC) #9
kqyang
sorry, another comment https://codereview.chromium.org/1998333002/diff/40001/media/formats/mp4/track_run_iterator.cc File media/formats/mp4/track_run_iterator.cc (left): https://codereview.chromium.org/1998333002/diff/40001/media/formats/mp4/track_run_iterator.cc#oldcode418 media/formats/mp4/track_run_iterator.cc:418: } The implementation here only supports ...
4 years, 6 months ago (2016-05-27 17:45:58 UTC) #10
ddorwin
LG other than comments. I defer to KQ on the details. https://codereview.chromium.org/1998333002/diff/40001/media/formats/mp4/box_definitions.h File media/formats/mp4/box_definitions.h (right): ...
4 years, 6 months ago (2016-05-27 23:05:59 UTC) #11
dougsteed
https://codereview.chromium.org/1998333002/diff/40001/media/formats/mp4/box_definitions.h File media/formats/mp4/box_definitions.h (right): https://codereview.chromium.org/1998333002/diff/40001/media/formats/mp4/box_definitions.h#newcode130 media/formats/mp4/box_definitions.h:130: bool is_encrypted; On 2016/05/27 23:05:59, ddorwin wrote: > As ...
4 years, 6 months ago (2016-06-09 22:38:27 UTC) #12
ddorwin
I reviewed the code in more detail. I did not review track_run_iterator_unittest.cc. https://codereview.chromium.org/1998333002/diff/60001/media/formats/mp4/box_definitions.cc File media/formats/mp4/box_definitions.cc ...
4 years, 6 months ago (2016-06-17 23:32:41 UTC) #13
kqyang
I think this CL needs some love. It is needed for CMAF support. dougsteed@ are ...
4 years, 2 months ago (2016-10-07 17:52:13 UTC) #14
chromium-reviews
Yes, working on it as we speak. On Fri, Oct 7, 2016 at 10:52 AM, ...
4 years, 2 months ago (2016-10-07 18:01:58 UTC) #15
kqyang
Cool. Thanks! On 2016/10/07 18:01:58, chromium-reviews wrote: > Yes, working on it as we speak. ...
4 years, 2 months ago (2016-10-07 18:03:35 UTC) #16
dougsteed
kq: I think I got all the comments, PTAL https://codereview.chromium.org/1998333002/diff/60001/media/formats/mp4/box_definitions.cc File media/formats/mp4/box_definitions.cc (right): https://codereview.chromium.org/1998333002/diff/60001/media/formats/mp4/box_definitions.cc#newcode166 media/formats/mp4/box_definitions.cc:166: ...
4 years, 2 months ago (2016-10-10 18:18:02 UTC) #17
chromium-reviews
Do you need the code to support other schemes than cenc and cbcs ? I ...
4 years, 2 months ago (2016-10-10 22:10:30 UTC) #18
chromium-reviews
No, we are already interested in cenc and cbcs as well at this moment :) ...
4 years, 2 months ago (2016-10-11 17:01:32 UTC) #19
kqyang
Looks good with some nits https://codereview.chromium.org/1998333002/diff/100001/media/formats/mp4/box_definitions.cc File media/formats/mp4/box_definitions.cc (right): https://codereview.chromium.org/1998333002/diff/100001/media/formats/mp4/box_definitions.cc#newcode276 media/formats/mp4/box_definitions.cc:276: (default_constant_iv_size == 8 || ...
4 years, 2 months ago (2016-10-12 22:16:52 UTC) #20
dougsteed
https://codereview.chromium.org/1998333002/diff/100001/media/formats/mp4/box_definitions.cc File media/formats/mp4/box_definitions.cc (right): https://codereview.chromium.org/1998333002/diff/100001/media/formats/mp4/box_definitions.cc#newcode276 media/formats/mp4/box_definitions.cc:276: (default_constant_iv_size == 8 || default_constant_iv_size == 16)); On 2016/10/12 ...
4 years, 2 months ago (2016-10-14 21:24:36 UTC) #21
kqyang
Thanks. Still LGTM.
4 years, 1 month ago (2016-11-04 21:46:25 UTC) #22
ddorwin
LGTM approval based on my rough review and kqyang's detailed review. https://codereview.chromium.org/1998333002/diff/60001/media/formats/mp4/track_run_iterator.cc File media/formats/mp4/track_run_iterator.cc (right): ...
4 years, 1 month ago (2016-11-06 00:57:51 UTC) #23
dougsteed
https://codereview.chromium.org/1998333002/diff/60001/media/formats/mp4/track_run_iterator.cc File media/formats/mp4/track_run_iterator.cc (right): https://codereview.chromium.org/1998333002/diff/60001/media/formats/mp4/track_run_iterator.cc#newcode435 media/formats/mp4/track_run_iterator.cc:435: RCHECK(info_entry->crypt_byte_block == On 2016/11/06 00:57:51, ddorwin wrote: > On ...
4 years ago (2016-12-01 19:45:32 UTC) #36
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/1998333002/260001
4 years ago (2016-12-01 22:23:32 UTC) #43
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years ago (2016-12-01 22:28:16 UTC) #46
commit-bot: I haz the power
4 years ago (2016-12-01 22:32:32 UTC) #48
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/9554f3d53f6bd4db8b797b189fbfc21722c7d106
Cr-Commit-Position: refs/heads/master@{#435739}

Powered by Google App Engine
This is Rietveld 408576698