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

Issue 23566013: Mpeg2 TS stream parser for media source. (Closed)

Created:
7 years, 3 months ago by damienv1
Modified:
7 years, 3 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Mpeg2 TS stream parser for media source. BUG=254214 TEST=Mp2tStreamParserTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224404

Patch Set 1 #

Total comments: 92

Patch Set 2 : #

Total comments: 37

Patch Set 3 : #

Total comments: 202

Patch Set 4 : Add basic unit tests + Cleanup #

Total comments: 20

Patch Set 5 : Address comments from patch set #3 #

Total comments: 38

Patch Set 6 : Fix audio/video buffer emission + Cleanup #

Patch Set 7 : Better naming: mp2t namespace & class names #

Total comments: 11

Patch Set 8 : Address comment about DCHECK vs RCHECK #

Total comments: 26

Patch Set 9 : Cleanup - address comments from patch set #8 #

Total comments: 145

Patch Set 10 : #

Total comments: 12

Patch Set 11 : Improve buffer emission + Cleanup #

Total comments: 37

Patch Set 12 : Error handling + Time aligned audio/video buffer emission #

Total comments: 8

Patch Set 13 : Cleanup #

Patch Set 14 : Minor fixes for Release build. #

Patch Set 15 : Clang warning fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3227 lines, -0 lines) Patch
M media/filters/stream_parser_factory.cc View 1 2 3 4 5 6 7 3 chunks +19 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +20 lines, -0 lines 0 comments Download
A media/mp2t/es_parser.h View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
A media/mp2t/es_parser_adts.h View 1 2 3 4 5 6 7 8 9 1 chunk +81 lines, -0 lines 0 comments Download
A media/mp2t/es_parser_adts.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +295 lines, -0 lines 0 comments Download
A media/mp2t/es_parser_h264.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +97 lines, -0 lines 0 comments Download
A media/mp2t/es_parser_h264.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +507 lines, -0 lines 0 comments Download
A media/mp2t/mp2t_common.h View 1 2 3 4 5 6 1 chunk +21 lines, -0 lines 0 comments Download
A media/mp2t/mp2t_stream_parser.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +133 lines, -0 lines 0 comments Download
A media/mp2t/mp2t_stream_parser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +616 lines, -0 lines 0 comments Download
A media/mp2t/mp2t_stream_parser_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +189 lines, -0 lines 0 comments Download
A media/mp2t/ts_packet.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +73 lines, -0 lines 0 comments Download
A media/mp2t/ts_packet.cc View 1 2 3 4 5 6 7 8 9 1 chunk +209 lines, -0 lines 0 comments Download
A media/mp2t/ts_section.h View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download
A media/mp2t/ts_section_pat.h View 1 2 3 4 5 6 7 8 9 1 chunk +40 lines, -0 lines 0 comments Download
A media/mp2t/ts_section_pat.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +122 lines, -0 lines 0 comments Download
A media/mp2t/ts_section_pes.h View 1 2 3 4 5 6 1 chunk +64 lines, -0 lines 0 comments Download
media/mp2t/ts_section_pes.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +312 lines, -0 lines 0 comments Download
A media/mp2t/ts_section_pmt.h View 1 2 3 4 5 6 7 8 9 1 chunk +40 lines, -0 lines 0 comments Download
A media/mp2t/ts_section_pmt.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +122 lines, -0 lines 0 comments Download
A media/mp2t/ts_section_psi.h View 1 2 3 4 5 6 1 chunk +54 lines, -0 lines 0 comments Download
A media/mp2t/ts_section_psi.cc View 1 2 3 4 5 6 7 8 9 1 chunk +131 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
acolwell GONE FROM CHROMIUM
Here are an initial set of comments. Several apply to multiple files across the CL, ...
7 years, 3 months ago (2013-08-29 20:44:24 UTC) #1
damienv1
Here are the main changes: - Clean up the PID filter (the PidState is now ...
7 years, 3 months ago (2013-09-04 01:37:13 UTC) #2
damienv1
Forgot a couple of cleanups. https://codereview.chromium.org/23566013/diff/14001/media/mpeg2/es_parser_adts.cc File media/mpeg2/es_parser_adts.cc (right): https://codereview.chromium.org/23566013/diff/14001/media/mpeg2/es_parser_adts.cc#newcode182 media/mpeg2/es_parser_adts.cc:182: } Brackets un-needed https://codereview.chromium.org/23566013/diff/14001/media/mpeg2/es_parser_adts.cc#newcode256 ...
7 years, 3 months ago (2013-09-05 01:58:28 UTC) #3
acolwell GONE FROM CHROMIUM
Here are my next batch of comments. https://codereview.chromium.org/23566013/diff/1/media/mpeg2/mpeg2ts_stream_parser.cc File media/mpeg2/mpeg2ts_stream_parser.cc (right): https://codereview.chromium.org/23566013/diff/1/media/mpeg2/mpeg2ts_stream_parser.cc#newcode215 media/mpeg2/mpeg2ts_stream_parser.cc:215: << "More ...
7 years, 3 months ago (2013-09-05 18:29:09 UTC) #4
damienv1
- Address comments from patch #3 & #4. - Use audio timestamp helpers. - Code ...
7 years, 3 months ago (2013-09-09 23:29:45 UTC) #5
damienv1
https://codereview.chromium.org/23566013/diff/74001/media/mpeg2/mpeg2ts_pmt.cc File media/mpeg2/mpeg2ts_pmt.cc (right): https://codereview.chromium.org/23566013/diff/74001/media/mpeg2/mpeg2ts_pmt.cc#newcode29 media/mpeg2/mpeg2ts_pmt.cc:29: DCHECK_GE(bit_reader->bits_available(), 8 * 8); Remove DCHECK. https://codereview.chromium.org/23566013/diff/74001/media/mpeg2/mpeg2ts_psi.cc File media/mpeg2/mpeg2ts_psi.cc ...
7 years, 3 months ago (2013-09-10 04:10:02 UTC) #6
damienv1
https://codereview.chromium.org/23566013/diff/74001/media/mpeg2/es_parser_adts.h File media/mpeg2/es_parser_adts.h (right): https://codereview.chromium.org/23566013/diff/74001/media/mpeg2/es_parser_adts.h#newcode10 media/mpeg2/es_parser_adts.h:10: #include <vector> <vector> not needed anymore. https://codereview.chromium.org/23566013/diff/74001/media/mpeg2/es_parser_h264.h File media/mpeg2/es_parser_h264.h ...
7 years, 3 months ago (2013-09-10 04:57:01 UTC) #7
damienv1
https://codereview.chromium.org/23566013/diff/74001/media/mpeg2/es_parser_h264.cc File media/mpeg2/es_parser_h264.cc (right): https://codereview.chromium.org/23566013/diff/74001/media/mpeg2/es_parser_h264.cc#newcode57 media/mpeg2/es_parser_h264.cc:57: RCHECK(ReadBits(1, &one_bit)); Would be more efficient to read |zero_count| ...
7 years, 3 months ago (2013-09-10 15:28:24 UTC) #8
damienv1
https://codereview.chromium.org/23566013/diff/74001/media/mpeg2/es_parser_adts.h File media/mpeg2/es_parser_adts.h (right): https://codereview.chromium.org/23566013/diff/74001/media/mpeg2/es_parser_adts.h#newcode10 media/mpeg2/es_parser_adts.h:10: #include <vector> On 2013/09/10 04:57:01, damienv1 wrote: > <vector> ...
7 years, 3 months ago (2013-09-10 21:03:48 UTC) #9
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/23566013/diff/25001/media/mpeg2/mpeg2ts_pat.cc File media/mpeg2/mpeg2ts_pat.cc (right): https://codereview.chromium.org/23566013/diff/25001/media/mpeg2/mpeg2ts_pat.cc#newcode32 media/mpeg2/mpeg2ts_pat.cc:32: DCHECK(bit_reader->ReadBits(1, &section_syntax_indicator)); On 2013/09/09 23:29:45, damienv1 wrote: > On ...
7 years, 3 months ago (2013-09-12 19:59:49 UTC) #10
damienv1
https://codereview.chromium.org/23566013/diff/91001/media/filters/stream_parser_factory.cc File media/filters/stream_parser_factory.cc (right): https://codereview.chromium.org/23566013/diff/91001/media/filters/stream_parser_factory.cc#newcode20 media/filters/stream_parser_factory.cc:20: #include "media/mp2t/mp2t_stream_parser.h" Order (should be before mp4). https://codereview.chromium.org/23566013/diff/91001/media/mp2t/es_parser.h File ...
7 years, 3 months ago (2013-09-12 20:43:02 UTC) #11
damienv1
https://codereview.chromium.org/23566013/diff/25001/media/mpeg2/mpeg2ts_pat.cc File media/mpeg2/mpeg2ts_pat.cc (right): https://codereview.chromium.org/23566013/diff/25001/media/mpeg2/mpeg2ts_pat.cc#newcode32 media/mpeg2/mpeg2ts_pat.cc:32: DCHECK(bit_reader->ReadBits(1, &section_syntax_indicator)); On 2013/09/12 19:59:50, acolwell wrote: > On ...
7 years, 3 months ago (2013-09-12 20:53:50 UTC) #12
damienv1
https://codereview.chromium.org/23566013/diff/97001/media/mp2t/ts_packet.cc File media/mp2t/ts_packet.cc (right): https://codereview.chromium.org/23566013/diff/97001/media/mp2t/ts_packet.cc#newcode49 media/mp2t/ts_packet.cc:49: LOG(WARNING) << "Buffer does not hold one full TS ...
7 years, 3 months ago (2013-09-13 01:23:00 UTC) #13
damienv1
https://codereview.chromium.org/23566013/diff/97001/media/mp2t/ts_packet.cc File media/mp2t/ts_packet.cc (right): https://codereview.chromium.org/23566013/diff/97001/media/mp2t/ts_packet.cc#newcode49 media/mp2t/ts_packet.cc:49: LOG(WARNING) << "Buffer does not hold one full TS ...
7 years, 3 months ago (2013-09-13 16:07:09 UTC) #14
acolwell GONE FROM CHROMIUM
looking good. https://codereview.chromium.org/23566013/diff/66001/media/mp2t/es_parser_adts.cc File media/mp2t/es_parser_adts.cc (right): https://codereview.chromium.org/23566013/diff/66001/media/mp2t/es_parser_adts.cc#newcode12 media/mp2t/es_parser_adts.cc:12: #include "media/base/audio_decoder_config.h" nit: Shouldn't need this now ...
7 years, 3 months ago (2013-09-16 06:19:29 UTC) #15
damienv1
Thanks for the comments. Main changes: - some cleanup based on the comments - re-architectured ...
7 years, 3 months ago (2013-09-17 02:58:22 UTC) #16
acolwell GONE FROM CHROMIUM
On 2013/09/17 02:58:22, damienv1 wrote: > Thanks for the comments. > > Main changes: > ...
7 years, 3 months ago (2013-09-17 15:25:36 UTC) #17
damienv1
https://codereview.chromium.org/23566013/diff/115001/media/mp2t/es_parser_h264.cc File media/mp2t/es_parser_h264.cc (right): https://codereview.chromium.org/23566013/diff/115001/media/mp2t/es_parser_h264.cc#newcode38 media/mp2t/es_parser_h264.cc:38: if (buf[k] == 0x3 && zero_count >= 2) { ...
7 years, 3 months ago (2013-09-17 16:11:52 UTC) #18
damienv1
https://codereview.chromium.org/23566013/diff/115001/media/mp2t/es_parser_h264.cc File media/mp2t/es_parser_h264.cc (right): https://codereview.chromium.org/23566013/diff/115001/media/mp2t/es_parser_h264.cc#newcode38 media/mp2t/es_parser_h264.cc:38: if (buf[k] == 0x3 && zero_count >= 2) On ...
7 years, 3 months ago (2013-09-17 22:07:44 UTC) #19
acolwell GONE FROM CHROMIUM
Almost there. Mostly minor nits but the comments about the new_buffer_cb_ sequence and the failure ...
7 years, 3 months ago (2013-09-18 01:46:05 UTC) #20
damienv1
https://codereview.chromium.org/23566013/diff/40001/media/media.gyp File media/media.gyp (right): https://codereview.chromium.org/23566013/diff/40001/media/media.gyp#newcode864 media/media.gyp:864: 'mp2t/es_parser.h', On 2013/09/18 01:46:05, acolwell wrote: > nit: move ...
7 years, 3 months ago (2013-09-18 21:40:17 UTC) #21
acolwell GONE FROM CHROMIUM
LGTM % minor nits. https://codereview.chromium.org/23566013/diff/40001/media/mp2t/mp2t_stream_parser_unittest.cc File media/mp2t/mp2t_stream_parser_unittest.cc (right): https://codereview.chromium.org/23566013/diff/40001/media/mp2t/mp2t_stream_parser_unittest.cc#newcode58 media/mp2t/mp2t_stream_parser_unittest.cc:58: void InitF(bool init_ok, base::TimeDelta duration) ...
7 years, 3 months ago (2013-09-18 22:38:54 UTC) #22
damienv1
https://codereview.chromium.org/23566013/diff/129001/media/mp2t/mp2t_stream_parser.cc File media/mp2t/mp2t_stream_parser.cc (right): https://codereview.chromium.org/23566013/diff/129001/media/mp2t/mp2t_stream_parser.cc#newcode279 media/mp2t/mp2t_stream_parser.cc:279: RCHECK(EmitRemainingBuffers()); On 2013/09/18 22:38:55, acolwell wrote: > nit: Just ...
7 years, 3 months ago (2013-09-19 00:43:24 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/damienv@chromium.org/23566013/156001
7 years, 3 months ago (2013-09-19 22:03:30 UTC) #24
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=199550
7 years, 3 months ago (2013-09-20 01:35:01 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/damienv@chromium.org/23566013/156001
7 years, 3 months ago (2013-09-20 05:30:51 UTC) #26
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=199865
7 years, 3 months ago (2013-09-20 08:29:53 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/damienv@chromium.org/23566013/156001
7 years, 3 months ago (2013-09-20 15:46:21 UTC) #28
commit-bot: I haz the power
7 years, 3 months ago (2013-09-20 16:53:18 UTC) #29
Message was sent while issue was closed.
Change committed as 224404

Powered by Google App Engine
This is Rietveld 408576698