Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend HLS to add the first segment's start time #294

Open
joeyparrish opened this issue Nov 20, 2017 · 2 comments
Open

Extend HLS to add the first segment's start time #294

joeyparrish opened this issue Nov 20, 2017 · 2 comments
Labels
component: HLS The issue involves HLS output type: enhancement New feature or request
Milestone

Comments

@joeyparrish
Copy link
Member

It is very helpful for web-based players to know the start time of segments, to build an accurate segment index. HLS doesn't provide this information in the playlist, but it should.

I propose to add a new tag for media playlists that indicates the start time of the first segment in the playlist. Start times of other segments can be derived from the existing segment duration tags.

This will cut out expensive operations in Shaka Player and others for any HLS content which is packaged in Shaka Packager. The new tag can then be proposed to Apple for inclusion in a future version of HLS.

shaka-bot pushed a commit to shaka-project/shaka-player that referenced this issue Nov 21, 2017
This increases the amount of data we fetch to get HLS segment start
times.  The presence of a large PSSH box in Widevine-encrypted content
was pushing the "tfdt" box past the 1kB mark, so we will now fetch
2kB.

Issue #1137
References FR in shaka-project/shaka-packager#294

Change-Id: I51a1407c4d992e42d07c3e6c6c501051100d1620
@joeyparrish
Copy link
Member Author

I propose we name the tag "EXT-X-EARLIEST-START-TIME" for now.

@kqyang kqyang added component: HLS The issue involves HLS output type: enhancement New feature or request labels Nov 28, 2017
@kqyang
Copy link
Contributor

kqyang commented Nov 28, 2017

The idea sounds good to me.

I think the tag should be associated with the media segments though. I propose name it EXT-X-SEGMENT-START-TIME and associate it with the next media segment, similar to EXT-X-PROGRAM-DATE-TIME: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.2.6.

Every media segment can have an EXT-X-SEGMENT-START-TIME defined before it, but it is optional.

@vaage vaage added this to the Backlog milestone Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: HLS The issue involves HLS output type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants