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

Issue 1826583003: MSE: Record counts of detected MSE audio, video and text tracks (Closed)

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

Description

MSE: Record counts of detected MSE audio, video and text tracks Reworks the StreamParser InitCB interface, MSE stream parsers, and the handling of CB to sum and record the counts of tracks by type across SourceBuffers for a MediaSource at the time of transitioning ChunkDemuxer to INITIALIZED in ChunkDemuxer::OnSourceInitDone(). Reporting of detected text track counts is included for WebM and ISO BMFF stream types, with minimal support added to the latter's parser in this CL to support their detection only. Note that CEA 608/708 caption data embedded within ISO BMFF video tracks is neither detected nor reported. Further, 'sbtl' handler_type is detected as text tracks in ISO BMFF, going beyond what the spec describes currently, but enabling detection of this subtitle track embedding produced by some ffmpeg encodes. No other new text track presence detection is added; it is still missing from some MSE parsers like mp2ts. Further, at most one each of audio and video tracks are detected by the mp2ts parser. BUG=595128, 336926 Committed: https://crrev.com/792762d71f66b64b5ac4b569a397058c1a8a0176 Cr-Commit-Position: refs/heads/master@{#383886}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Rebase + partial addressing of comments (still needs mp4/webm text test media, webm count testing) #

Patch Set 3 : Rebased, addressed all comments, includes basic webm and mp4 A/V/T detection tests #

Total comments: 1

Patch Set 4 : Attempt to fix win_chromium_compile_dbg_ng link failure #

Patch Set 5 : Rebase and workaround win_chromium_compile_dbg_ng link failure #

Patch Set 6 : Yet another attempt to fix that link failure. MEDIA_EXPORT should do it! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+300 lines, -40 lines) Patch
M media/base/stream_parser.h View 1 2 3 4 5 3 chunks +9 lines, -3 lines 0 comments Download
M media/base/stream_parser.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M media/filters/chunk_demuxer.h View 1 chunk +5 lines, -0 lines 0 comments Download
M media/filters/chunk_demuxer.cc View 1 3 chunks +19 lines, -1 line 0 comments Download
M media/formats/mp2t/mp2t_stream_parser.cc View 1 chunk +10 lines, -1 line 0 comments Download
M media/formats/mp4/box_definitions.h View 1 chunk +1 line, -6 lines 0 comments Download
M media/formats/mp4/box_definitions.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M media/formats/mp4/fourccs.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M media/formats/mp4/mp4_stream_parser.cc View 5 chunks +28 lines, -3 lines 0 comments Download
M media/formats/mp4/mp4_stream_parser_unittest.cc View 1 2 19 chunks +101 lines, -19 lines 0 comments Download
M media/formats/mpeg/mpeg_audio_stream_parser_base.cc View 1 chunk +1 line, -0 lines 0 comments Download
M media/formats/webm/webm_stream_parser.cc View 1 chunk +8 lines, -1 line 0 comments Download
M media/formats/webm/webm_stream_parser_unittest.cc View 1 2 3 4 6 chunks +60 lines, -4 lines 0 comments Download
M media/formats/webm/webm_tracks_parser.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M media/formats/webm/webm_tracks_parser.cc View 1 2 4 chunks +6 lines, -0 lines 0 comments Download
M media/test/data/README View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A + media/test/data/bear-1280x720-avt_subt_frag.mp4 View 1 2 Binary file 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (14 generated)
wolenetz
Please take a look. This is the MSE version of the src= CL I landed ...
4 years, 9 months ago (2016-03-23 01:45:50 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1826583003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1826583003/1
4 years, 9 months ago (2016-03-23 01:46:30 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-23 03:00:41 UTC) #7
Steven Holte
histograms lgtm
4 years, 9 months ago (2016-03-23 18:37:16 UTC) #8
chcunningham
Nice change :) https://codereview.chromium.org/1826583003/diff/1/media/filters/chunk_demuxer.cc File media/filters/chunk_demuxer.cc (right): https://codereview.chromium.org/1826583003/diff/1/media/filters/chunk_demuxer.cc#newcode972 media/filters/chunk_demuxer.cc:972: // Wait until all streams have ...
4 years, 9 months ago (2016-03-23 23:05:56 UTC) #9
wolenetz
PS2 is WIP: Not all comments are addressed yet. It's an interim update to get ...
4 years, 9 months ago (2016-03-25 23:25:08 UTC) #10
wolenetz
Still WIP. https://codereview.chromium.org/1826583003/diff/1/media/formats/webm/webm_tracks_parser.cc File media/formats/webm/webm_tracks_parser.cc (left): https://codereview.chromium.org/1826583003/diff/1/media/formats/webm/webm_tracks_parser.cc#oldcode51 media/formats/webm/webm_tracks_parser.cc:51: track_num_(-1), On 2016/03/25 23:25:08, wolenetz wrote: > ...
4 years, 8 months ago (2016-03-28 20:41:46 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1826583003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1826583003/40001
4 years, 8 months ago (2016-03-29 00:14:03 UTC) #13
wolenetz
chcunningham@, please take a look at patch set 3. https://codereview.chromium.org/1826583003/diff/1/media/formats/mp4/mp4_stream_parser.cc File media/formats/mp4/mp4_stream_parser.cc (right): https://codereview.chromium.org/1826583003/diff/1/media/formats/mp4/mp4_stream_parser.cc#newcode416 media/formats/mp4/mp4_stream_parser.cc:416: ...
4 years, 8 months ago (2016-03-29 00:14:43 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/165327)
4 years, 8 months ago (2016-03-29 02:19:52 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1826583003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1826583003/60001
4 years, 8 months ago (2016-03-29 19:39:35 UTC) #19
wolenetz
On 2016/03/29 19:39:35, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
4 years, 8 months ago (2016-03-29 20:51:21 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/165747)
4 years, 8 months ago (2016-03-29 21:05:38 UTC) #22
wolenetz
chcunningham@, PTAL PS5.
4 years, 8 months ago (2016-03-29 21:37:12 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1826583003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1826583003/80001
4 years, 8 months ago (2016-03-29 21:37:25 UTC) #25
chcunningham
lgtm https://codereview.chromium.org/1826583003/diff/1/media/filters/chunk_demuxer.cc File media/filters/chunk_demuxer.cc (right): https://codereview.chromium.org/1826583003/diff/1/media/filters/chunk_demuxer.cc#newcode972 media/filters/chunk_demuxer.cc:972: // Wait until all streams have initialized. On ...
4 years, 8 months ago (2016-03-29 22:14:51 UTC) #26
wolenetz
Thanks for reviews. I found the link error is simply I need to MEDIA_EXPORT the ...
4 years, 8 months ago (2016-03-29 22:49:04 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1826583003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1826583003/100001
4 years, 8 months ago (2016-03-29 22:55:58 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-03-30 01:19:09 UTC) #32
commit-bot: I haz the power
4 years, 8 months ago (2016-03-30 01:20:06 UTC) #34
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/792762d71f66b64b5ac4b569a397058c1a8a0176
Cr-Commit-Position: refs/heads/master@{#383886}

Powered by Google App Engine
This is Rietveld 408576698