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

Support audio edit list restricted according to CMAF #210

Open
tobbee opened this issue Sep 16, 2024 · 0 comments
Open

Support audio edit list restricted according to CMAF #210

tobbee opened this issue Sep 16, 2024 · 0 comments

Comments

@tobbee
Copy link
Contributor

tobbee commented Sep 16, 2024

CMAF supports edit lists for audio, but only for a shift in timeline

Acceptance Criteria:

  • livesim2 should be able to interpret the edit list and loop the content properly with a correct shift and no drift

Test content

The CTA-WAVE audio test content, e.g.
https://dash.akamaized.net/WAVE/vectors/releases/1/caac_sets/aac_lc/at1/2023-04-27/stream.mpd
has an edit list in the init segment with information mediaTime=2048 indicating a shift of audio reference time with 2 frames.

The first segment's 93 samples therefore result in a duration of 91 samles. This agree with the
segment start time (PTS) in the MPD.

The relevant values are depicted in the table below (all measured as multiples of 1024, the frame duration). Here tfdt means the baseMediaDecodeTime and PTS is fetched from the MPD while dur is the difference in the MPD.

seqNr tfdt PTS dur nr samples
1 0 0 91 93
2 93 91 93 93
3 93+93 91+93 93 93

Thus there is a two-sample shift throughout the asset.

Notes

  • the loop transition will (as usual) be non-perfect
  • the first audio frames (which are not output according to the edit list) may be included at the looping boundary if it makes
    the implementation simpler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant