Bug 159813 - [MSE] Increase the SourceBuffer "fudge factor"
Summary: [MSE] Increase the SourceBuffer "fudge factor"
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-07-15 07:35 PDT by Eric Carlson
Modified: 2017-03-14 01:22 PDT (History)
4 users (show)

See Also:


Attachments
Proposed patch. (5.93 KB, patch)
2016-07-15 08:49 PDT, Eric Carlson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Carlson 2016-07-15 07:35:22 PDT
Some media encoding/conversion pipelines are sloppy when doing sample time/timescale math, and the error accumulation results in small gaps in the media timeline. r202641 increased the maximum allowable gap from 0.01 second to one 24fps frame, but it turns out that at least one large provider has a significant amount of content encoded with up to two 24fps frames.
Comment 1 Radar WebKit Bug Importer 2016-07-15 07:36:04 PDT
<rdar://problem/27372033>
Comment 2 Eric Carlson 2016-07-15 08:49:12 PDT
Created attachment 283763 [details]
Proposed patch.
Comment 3 Jon Lee 2016-07-15 09:12:38 PDT
Comment on attachment 283763 [details]
Proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=283763&action=review

> LayoutTests/media/media-source/media-source-small-gap.html:41
> +            makeASample(7, 7, 1,                   1, SAMPLE_FLAG.NONE),

The spacing is odd here.
Comment 4 Eric Carlson 2016-07-15 09:21:42 PDT
Comment on attachment 283763 [details]
Proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=283763&action=review

>> LayoutTests/media/media-source/media-source-small-gap.html:41
>> +            makeASample(7, 7, 1,                   1, SAMPLE_FLAG.NONE),
> 
> The spacing is odd here.

I originally used one space after each comma, but found that it was difficult to see exactly what was different in each sample.
Comment 5 WebKit Commit Bot 2016-07-15 09:43:12 PDT
Comment on attachment 283763 [details]
Proposed patch.

Clearing flags on attachment: 283763

Committed r203277: <http://trac.webkit.org/changeset/203277>
Comment 6 WebKit Commit Bot 2016-07-15 09:43:16 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 Ihor Ivlev 2017-03-09 05:44:46 PST
I think we should have different allowable gaps for Audio and Video tracks, and they should be calculated based on the current frame duration.
Otherwise AudioWithLargeGap test from http://yt-dash-mse-test.commondatastorage.googleapis.com/unit-tests/2016.html fails.
Comment 8 Ihor Ivlev 2017-03-14 01:22:56 PDT
A note on my previous comment:
the test failure is reportedly not reproducible with the latest (2017) MSE test cases
http://yt-dash-mse-test.commondatastorage.googleapis.com/unit-tests/2017.html