question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Segmented VTT - absolute or relative timestamps?

See original GitHub issue

WebVTT segments are not syncing properly with live streams because they are not accounting for the segmentStartTime. The first cue in each segment starts at 00:00:00.000 so the segmentStartTime needs to be used to offset each segment properly.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:21 (21 by maintainers)

github_iconTop GitHub Comments

2reactions
joeyparrishcommented, Oct 3, 2016

Sure, that could work. If we introduce a setting for this, we could even put it into v2.0.x (default to current behavior, warn about impending deprecation when used). Then in v2.1.0 we could just remove the setting.

0reactions
sanbornhillandcommented, Nov 9, 2016

@sandersaares Thank you for pointing me in the right direction, I had not read that.

In that section (DASH-IF IOP 6.4.5) it says:

Such external files are assumed do have a timeline aligned with the Period, so that TTML time 00:00:00.000 corresponds to the start of the Period. The presentation time offset is expected to be not presented, and if present, expected to be ignored by the DASH client.

The same applies to side-loaded WebVTT files. In that case, the @mimeType is text/vtt. If segmented subtitles are needed, such as for live sources, ISOBMFF-packaged TTML or WebVTT segments are expected be used to provide proper timing.

According to this it looks like Shaka should be ignoring the presentationTimeOffset if its present. And if I am reading it correctly this is actually independent of the issue of relative timestamps.

@joeyparrish does this look correct to you? I can open an separate issue for this and likely provided a PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Segmented VTT - absolute or relative timestamps? · Issue #480
#481 has more discussion. It seems that it's unclear whether VTT timestamps are supposed to be absolute of relative.
Read more >
Absolute vs. Relative Timestamps: When to Use Which
Absolute timestamps include a date and time. Displaying both inline with a relative timestamp can take up a lot of space. You can...
Read more >
WebVTT in live streams | Apple Developer Forums
I'm trying to understand what will be the correct way to signal X-TIMESTAMP-MAP in live streams. For VoD (e.g. manifests with EXT-X-ENDLIST), I...
Read more >
draft-pantos-http-live-streaming-22 - IETF Datatracker
If a WebVTT segment does not have the X-TIMESTAMP-MAP, the client MUST assume ... Any relative URI is considered to be relative to...
Read more >
WebVTT for subtitles and captions - Adobe Support
A WebVTT file is segmented according to the specified duration. ... The URLs can be absolute or relative. When a request for a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found