Skip to content

Commit

Permalink
Update of ondemand creator to avoid multifragmented segments.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbee committed Mar 11, 2019
1 parent 29714a9 commit 45f107a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/dash_tools/ondemand_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ def segment_media(self, tracks, dur_ms):
print result

def create_mp4box_command(self, tracks, dur_ms):
parts = [MP4BOX, '-dash', str(dur_ms), '-profile', 'onDemand',
parts = [MP4BOX, '-dash', str(dur_ms), '-frag',
str(dur_ms), '-profile', 'onDemand',
'-out', self.file_path(self.mpd_name)]
for track in tracks['video']:
parts.append('{0}.mp4:id={1}'.format(self.file_path(track), track))
Expand Down

0 comments on commit 45f107a

Please sign in to comment.