Eyevinn / hls-to-dash

Open source packager and tools to rewrap live HLS to live MPEG DASH
Other
40 stars 11 forks source link

Issues with gaps between periods #3

Closed birme closed 8 years ago

birme commented 8 years ago

This issue was reported by Vincent Tomasi vincent@yospace.com identifying problems with gaps between periods:

There are several issues reported on Shaka Player (https://github.com/google/shaka-player/issues/381, https://github.com/google/shaka-player/issues/384) stating it is not able to manage Period gaps. If you look at the attached manifest [1], when it occured, there actually is a gap between the two audio Periods (video is fine):

When there is no gap, the player plays the stream fine, but even the slightest gap seems to disrupt the player.

[1] period-gap.mpd.txt

birme commented 8 years ago

I believe this is caused by a rounding error for the duration of the last segment, in this case 222719 which is truncated rather than rounded which means that it should probably be 222720 rather than 222719 (from >222719,5)