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.

Support containerless formats

See original GitHub issue

Have you read the FAQ and checked for duplicate open issues? Yes

Is your feature request related to a problem? Please describe.

Some HLS content uses containerless formats, such as raw AAC or raw MP3. In these formats, there is no timestamp information. This not only complicates the building of the segment index in the HLS parser, but it requires special timestamp management at the MediaSource level because these formats implicitly force their SourceBuffer into sequence mode.

Without special handling, the timestamps are never right after seeking, even if we synthesize correct SegmentReference timestamps during the playlist parsing.

Describe the solution you’d like

We should skip these formats in the HLS parser’s timestamp discovery stage. We should also mark these streams as being containerless. Finally, StreamingEngine should use this containerless flag to manage timestamps at the MediaSource level (set timestampOffset every time the buffer is cleared, and include the first appended segment reference’s start time).

Describe alternatives you’ve considered

We could reject containerless formats, but I’d prefer to improve our support for them for the sake of legacy HLS content.

Additional context

Related to #1083 (raw AAC). Sequence mode docs: https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/mode Spec text around sequence mode: https://www.w3.org/TR/media-source/#dom-appendmode-sequence

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:25 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
joeyparrishcommented, Feb 8, 2022

The bulk of this feature work should be merged very soon. We may need to follow up with a couple minor changes after that, and of course, we’ll need testing and feedback from the community. Looking forward to releasing this in v3.4!

0reactions
joeyparrishcommented, Apr 13, 2022

Great news! Thank you. We will close this issue, then.

If anyone has content that doesn’t work correctly after v4 is released, please file a new issue with links to playlists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support containerless formats · Issue #2337 - GitHub
Some HLS content uses containerless formats, such as raw AAC or raw MP3 ... containerless formats, but I'd prefer to improve our support...
Read more >
Codecs used by WebRTC - Web media technologies | MDN
This guide reviews the codecs that browsers are required to implement as well as other codecs that some or all browsers support for...
Read more >
Containerless Compute and Streaming Software - Medium
With new runtimes like WasmTime, WASM will support server workloads (and do things like open files and write to network sockets) in the...
Read more >
Containerless Deployment | InterSystems Cloud Manager Guide
Operating systems supported for containerless deployment include: Ubuntu 20.04 or later. Red Hat Enterprise Linux 8.3 and later version 8 releases, ...
Read more >
Supported file formats in After Effects - Adobe Support
Video and animation file formats ; AVCHD (M2TS), Import only ; DV, Import and Export, In MOV or AVI container, or as container-less...
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