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

Issue 646673002: Skip audio frames with unknown timestamp in MPEG2TS (Closed)

Created:
6 years, 2 months ago by servolk
Modified:
6 years, 2 months ago
Reviewers:
damienv1, wolenetz
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Skip audio frames with unknown timestamp in MPEG2TS This is another issue with HLS streams produced by VLC. Even though it's recommended that each PES packet in MPEG2TS contain a timestamp, we have seen that in the real-world content streams that's not always the case. In order to be able to play such streams, instead of failing stream parsing when we don't have timing info at the beginning of playback, we will just skip some frames until we eventually get a frame with timing info and from that point we should be able to proceed playing normally. Previous change by Damien fixed this issue for video streams. This change fixes it for AAC ADTS and MPEG1 audio streams in mpeg2 ts containers. BUG=420227 Committed: https://crrev.com/bf74c81c39175cfe5cca4f559f10999bca19af54 Cr-Commit-Position: refs/heads/master@{#298982}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixed also mpeg1 parser and updated unit tests #

Total comments: 2

Patch Set 3 : s/skip/skipping/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -5 lines) Patch
M media/formats/mp2t/es_parser_adts.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M media/formats/mp2t/es_parser_adts_unittest.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M media/formats/mp2t/es_parser_mpeg1audio.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M media/formats/mp2t/es_parser_mpeg1audio_unittest.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
servolk
6 years, 2 months ago (2014-10-09 18:13:36 UTC) #2
damienv1
https://codereview.chromium.org/646673002/diff/1/media/formats/mp2t/es_parser_adts.cc File media/formats/mp2t/es_parser_adts.cc (right): https://codereview.chromium.org/646673002/diff/1/media/formats/mp2t/es_parser_adts.cc#newcode143 media/formats/mp2t/es_parser_adts.cc:143: DVLOG(1) << "Skipped audio frame with unknown timestamp"; nit: ...
6 years, 2 months ago (2014-10-09 18:29:09 UTC) #3
servolk
https://codereview.chromium.org/646673002/diff/1/media/formats/mp2t/es_parser_adts.cc File media/formats/mp2t/es_parser_adts.cc (right): https://codereview.chromium.org/646673002/diff/1/media/formats/mp2t/es_parser_adts.cc#newcode143 media/formats/mp2t/es_parser_adts.cc:143: DVLOG(1) << "Skipped audio frame with unknown timestamp"; On ...
6 years, 2 months ago (2014-10-09 18:53:04 UTC) #4
wolenetz
Also: please clarify in the CL description this is specific to MP2TS, and not the ...
6 years, 2 months ago (2014-10-09 19:12:46 UTC) #5
servolk
Updated description to better describe the issue and be more clear that this is only ...
6 years, 2 months ago (2014-10-09 20:14:12 UTC) #6
damienv1
lgtm
6 years, 2 months ago (2014-10-09 20:22:15 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/646673002/140001
6 years, 2 months ago (2014-10-09 20:23:50 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/16745)
6 years, 2 months ago (2014-10-09 20:32:37 UTC) #11
wolenetz
sorry. lgtm! ship it :)
6 years, 2 months ago (2014-10-09 21:09:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/646673002/140001
6 years, 2 months ago (2014-10-09 21:12:42 UTC) #14
servolk
On 2014/10/09 21:09:04, wolenetz wrote: > sorry. lgtm! ship it :) Thanks! Sorry, I though ...
6 years, 2 months ago (2014-10-09 21:15:10 UTC) #15
wolenetz
On 2014/10/09 21:15:10, servolk wrote: > On 2014/10/09 21:09:04, wolenetz wrote: > > sorry. lgtm! ...
6 years, 2 months ago (2014-10-09 21:16:21 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:140001)
6 years, 2 months ago (2014-10-09 21:31:40 UTC) #17
commit-bot: I haz the power
6 years, 2 months ago (2014-10-09 21:32:21 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bf74c81c39175cfe5cca4f559f10999bca19af54
Cr-Commit-Position: refs/heads/master@{#298982}

Powered by Google App Engine
This is Rietveld 408576698