Jump to content
  • 0

HLS uneven segment length


Anurag Goel
 Share

Question

Hello ant-media,

I'm trying to stream video via WebRTC from browser and playing HLS adaptive stream  on player. I have fixed "Segment List Size"  to 5 and "Segment Duration" to 2 but when i'm  playing m3u8 url on Exoplayer(Android)  or on webplayer, then I'm getting uneven segment length .

Because of  this I'm getting lot of buffering  issue while playing a livestream video,
Can you help me  in fixing this issue ?





1480602853_Screenshot2020-09-15at9_58_25AM.thumb.png.0b0ffcc548cdc00a3505dd2f1e2ec08e.png

213286358_Screenshot2020-09-15at9_56_06AM.thumb.png.544cf60ac13838ad3d1d21ce99fee9e5.png

Link to comment
Share on other sites

  • Answers 7
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

7 answers to this question

Recommended Posts

  • 0

Hi,

I think this thread and your previous thread is directly related to each other right?(Which is Error in playing RTMP stream on social platform)
If yes, we created an issue about this and here is the link: https://github.com/ant-media/Ant-Media-Server/issues/2503
Could you check if this fits your issue and if not, could you comment on it to change according to your request?
Best Regards,
Enes Kuluk.

Link to comment
Share on other sites

  • 0
Hi Anurag,

I've just seen your e-mail and would like to answer. I hope I can help you.

It seems that you're getting segment length about 20s or 18s. On the other hand, segment duration is 2 seconds.
It happens when the encoder does not send a key frame interval for every 2 seconds. The HLS muxer can only create new segments when it has key frames. 
I mean you can change your keyframe interval to 2 seconds in your encoder side. 

Secondly, HLS streaming is a feature of Ant Media Server. On the other hand, the main focus of Ant Media Server is ultra low latency streaming.

I hope the comment above helps you. 

Best Regards,
A. Oguz

Link to comment
Share on other sites

 Share

×
×
  • Create New...