Wowza Community

Difference in Coded Duration and Actual Duration of HLS segments

Hello Experts,

We are facing this issue while doing Live HLS streaming with Wowza - the segment duration mentioned in the HLS manifest file does not match with the actual duration of the segment, if we decode it. For example, the manifest file says that the duration of the segment is 10.6 seconds whereas when we decode the segment, it comes out to be 4 seconds.

Is this something known ? Will it not cause any issue during playback ?

Thanks in anticipation.

Ramandeep Sandhu

Hello Ramandeep,

When Wowza Streaming Engine creates segments for HTTP streaming, it always splits them at the closest key frame boundary. The reason you are getting odd segment durations is because your target segment duration is not an exact multiple of the video key frame interval or the frame rate fluctuates slightly. One advantage of the Wowza method is that any segment can be played back independently of any others because it contains complete sequences of frames, starting with a key frame.

Regards,

Alex