This repository was archived by the owner on Jun 6, 2024. It is now read-only.

Description
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.