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

Issue 506943003: Support MPEG1 audio in the MPEG2-TS stream parser. (Closed)

Created:
6 years, 3 months ago by damienv1
Modified:
6 years, 3 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, lcwu1
Project:
chromium
Visibility:
Public.

Description

Support MPEG1 audio in the MPEG2-TS stream parser. BUG=None Committed: https://crrev.com/19d61295f56988233119c544edeee25f4322a17f Cr-Commit-Position: refs/heads/master@{#294737}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Refactoring to reuse code from MP3StreamParser. #

Total comments: 3

Patch Set 3 : Add a unit test. #

Patch Set 4 : Rename MP3StreamParser to MPEG1AudioStreamParser. #

Total comments: 16

Patch Set 5 : Address CR comments from patch set #4 and Rebase. #

Total comments: 10

Patch Set 6 : Rebase. #

Patch Set 7 : Address CR comments from patch set #5. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+536 lines, -541 lines) Patch
M media/BUILD.gn View 1 2 3 4 5 4 chunks +6 lines, -3 lines 0 comments Download
M media/filters/stream_parser_factory.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M media/formats/mp2t/es_parser_adts_unittest.cc View 1 2 3 4 5 6 2 chunks +0 lines, -19 lines 0 comments Download
A + media/formats/mp2t/es_parser_mpeg1audio.h View 1 2 3 4 5 6 4 chunks +27 lines, -24 lines 0 comments Download
A media/formats/mp2t/es_parser_mpeg1audio.cc View 1 2 3 4 5 6 1 chunk +210 lines, -0 lines 0 comments Download
A media/formats/mp2t/es_parser_mpeg1audio_unittest.cc View 1 2 3 4 5 6 1 chunk +72 lines, -0 lines 0 comments Download
M media/formats/mp2t/es_parser_test_base.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M media/formats/mp2t/es_parser_test_base.cc View 1 2 3 4 5 6 1 chunk +17 lines, -0 lines 0 comments Download
M media/formats/mp2t/mp2t_stream_parser.cc View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
M media/formats/mpeg/mp3_stream_parser.h View 1 2 3 1 chunk +0 lines, -34 lines 0 comments Download
M media/formats/mpeg/mp3_stream_parser.cc View 1 2 3 1 chunk +0 lines, -280 lines 0 comments Download
D media/formats/mpeg/mp3_stream_parser_unittest.cc View 1 2 3 1 chunk +0 lines, -95 lines 0 comments Download
A media/formats/mpeg/mpeg1_audio_stream_parser.h View 1 2 3 4 1 chunk +88 lines, -0 lines 0 comments Download
A + media/formats/mpeg/mpeg1_audio_stream_parser.cc View 1 2 3 4 8 chunks +84 lines, -73 lines 0 comments Download
A + media/formats/mpeg/mpeg1_audio_stream_parser_unittest.cc View 1 2 3 3 chunks +9 lines, -8 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 4 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (2 generated)
damienv1
damienv@chromium.org changed reviewers: + acolwell@chromium.org, wolenetz@chromium.org
6 years, 3 months ago (2014-08-26 17:28:49 UTC) #1
damienv1
This is mostly for information that I plan to add Mpeg1 audio support for Mpeg2TS. ...
6 years, 3 months ago (2014-08-26 17:33:55 UTC) #2
DaleCurtis
I defer to acolwell@ on whether we want this, but if we do it'd be ...
6 years, 3 months ago (2014-08-26 18:54:40 UTC) #3
damienv1
Totally agree. The first patch is just a working patch just for a quick test ...
6 years, 3 months ago (2014-08-26 19:21:05 UTC) #4
wolenetz
+1 to other comments. Superficial nits otherwise; deep review not done. https://codereview.chromium.org/506943003/diff/1/media/formats/mp2t/es_parser_mpeg1audio.cc File media/formats/mp2t/es_parser_mpeg1audio.cc (right): ...
6 years, 3 months ago (2014-08-26 20:26:31 UTC) #5
damienv1
Please take another look. Note: the unit test is still missing (will do as part ...
6 years, 3 months ago (2014-09-03 17:43:43 UTC) #6
damienv1
https://codereview.chromium.org/506943003/diff/20001/media/formats/mpeg/mp3_stream_parser.h File media/formats/mpeg/mp3_stream_parser.h (right): https://codereview.chromium.org/506943003/diff/20001/media/formats/mpeg/mp3_stream_parser.h#newcode30 media/formats/mpeg/mp3_stream_parser.h:30: static bool ParserMpeg1AudioFrameHeader( Could be simply ParseMpeg1AudioHeader.
6 years, 3 months ago (2014-09-03 18:59:54 UTC) #8
DaleCurtis
You mention MPEG1 everywhere, but the MP3 parser supports v1,v2,v3. Is that what you want?
6 years, 3 months ago (2014-09-03 22:04:40 UTC) #9
damienv1
v1, v2 and v3 refers to layers. MP3 is known as MPEG-1 audio layer3. So ...
6 years, 3 months ago (2014-09-03 22:11:29 UTC) #10
DaleCurtis
Sorry the v3 was a typo, I did mean v1,v2,v2.5 like you indicate. It's (believe) ...
6 years, 3 months ago (2014-09-03 22:31:28 UTC) #11
acolwell GONE FROM CHROMIUM
On 2014/09/03 22:31:28, DaleCurtis wrote: > Sorry the v3 was a typo, I did mean ...
6 years, 3 months ago (2014-09-03 23:30:45 UTC) #12
damienv1
Please take a look. Thanks !
6 years, 3 months ago (2014-09-04 18:46:35 UTC) #13
acolwell GONE FROM CHROMIUM
lgtm % nits https://codereview.chromium.org/506943003/diff/60001/media/formats/mp2t/es_parser_mpeg1audio.cc File media/formats/mp2t/es_parser_mpeg1audio.cc (right): https://codereview.chromium.org/506943003/diff/60001/media/formats/mp2t/es_parser_mpeg1audio.cc#newcode43 media/formats/mp2t/es_parser_mpeg1audio.cc:43: bool EsParserMpeg1Audio::LookForMpeg1AudioFrame( nit: Move this and ...
6 years, 3 months ago (2014-09-04 22:20:53 UTC) #14
DaleCurtis
I'm confused why you are still calling everything MPEG1, I thought we agreed above to ...
6 years, 3 months ago (2014-09-04 22:42:40 UTC) #15
acolwell GONE FROM CHROMIUM
On 2014/09/04 22:42:40, DaleCurtis wrote: > I'm confused why you are still calling everything MPEG1, ...
6 years, 3 months ago (2014-09-04 22:45:44 UTC) #16
DaleCurtis
I defer on the ES specifics to acolwell, the mpeg1 changes lgtm https://codereview.chromium.org/506943003/diff/60001/media/formats/mpeg/mpeg1_audio_stream_parser.cc File media/formats/mpeg/mpeg1_audio_stream_parser.cc ...
6 years, 3 months ago (2014-09-04 23:01:14 UTC) #17
damienv1
https://codereview.chromium.org/506943003/diff/60001/media/formats/mp2t/es_parser_mpeg1audio.cc File media/formats/mp2t/es_parser_mpeg1audio.cc (right): https://codereview.chromium.org/506943003/diff/60001/media/formats/mp2t/es_parser_mpeg1audio.cc#newcode43 media/formats/mp2t/es_parser_mpeg1audio.cc:43: bool EsParserMpeg1Audio::LookForMpeg1AudioFrame( On 2014/09/04 22:20:53, acolwell wrote: > nit: ...
6 years, 3 months ago (2014-09-05 20:06:13 UTC) #18
damienv1
Matt, any more feedback ? Thanks.
6 years, 3 months ago (2014-09-11 15:05:28 UTC) #19
wolenetz
On 2014/09/11 15:05:28, damienv1 wrote: > Matt, any more feedback ? > Thanks. My apologies ...
6 years, 3 months ago (2014-09-11 17:43:31 UTC) #20
wolenetz
lgtm % nits https://codereview.chromium.org/506943003/diff/80001/media/formats/mp2t/es_parser_mpeg1audio.cc File media/formats/mp2t/es_parser_mpeg1audio.cc (right): https://codereview.chromium.org/506943003/diff/80001/media/formats/mp2t/es_parser_mpeg1audio.cc#newcode25 media/formats/mp2t/es_parser_mpeg1audio.cc:25: static void DummyMediaLog(const std::string& s) { ...
6 years, 3 months ago (2014-09-13 00:06:38 UTC) #21
damienv1
https://codereview.chromium.org/506943003/diff/80001/media/formats/mp2t/es_parser_mpeg1audio.cc File media/formats/mp2t/es_parser_mpeg1audio.cc (right): https://codereview.chromium.org/506943003/diff/80001/media/formats/mp2t/es_parser_mpeg1audio.cc#newcode25 media/formats/mp2t/es_parser_mpeg1audio.cc:25: static void DummyMediaLog(const std::string& s) { On 2014/09/13 00:06:38, ...
6 years, 3 months ago (2014-09-13 01:27:47 UTC) #22
wolenetz
lgtm again, thanks!
6 years, 3 months ago (2014-09-13 01:36:29 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/506943003/120001
6 years, 3 months ago (2014-09-13 06:07:04 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:120001) as 01cfaffd20934e8d07960d14e76ab2a4b17895db
6 years, 3 months ago (2014-09-13 06:56:06 UTC) #26
commit-bot: I haz the power
6 years, 3 months ago (2014-09-13 06:59:32 UTC) #27
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/19d61295f56988233119c544edeee25f4322a17f
Cr-Commit-Position: refs/heads/master@{#294737}

Powered by Google App Engine
This is Rietveld 408576698