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

Vodanalyzer for multifragment(moof/mdat) segment duration #72

Open
Murmur opened this issue Jan 16, 2019 · 1 comment
Open

Vodanalyzer for multifragment(moof/mdat) segment duration #72

Murmur opened this issue Jan 16, 2019 · 1 comment

Comments

@Murmur
Copy link

Murmur commented Jan 16, 2019

If input vod segments has pre-generated multifragment(multiple moof/mdat pairs) then mediasegmentfilter does not calculate the correct segment duration. It always return the last fragment duration. See this fix to keep duration increasing across all fragments.

dashlivesim/dashlib/mediasegmentfilter.py:

  def process_trun(self, data):
    ...
    sample_flags_present = flags & 0x400
    sample_comp_time_present = flags & 0x800
    duration = 0 if self.duration==None else self.duration  ##make multifrag work
    for _ in range(sample_count):
    ...

See also Issue #68 multifragment sequencenumbering.

@Murmur Murmur changed the title Vodanalyzer for multifragment(moof/mdat) files Vodanalyzer for multifragment(moof/mdat) segment duration Jan 16, 2019
@TobbeEdgeware
Copy link

Multi-fragment segments are not yet supported in the main branch of livesim. It would require rewrite of the trun box in every fragment. However, given the interest in this topic, I think it should be added. Unfortunately, I don't have much time to work on this, but hopefully, I can squeeze it in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants