If HLS Segment is less than or equal to 2 Sec

0

As per HLS specs,segment duration must be 6 sec.But to achieve low latency we usually keep 2sec as segment duration specially in live tv stream.

Playback is fine.But as per documentation what other additional issues we can face if we reduce the segment size to 2 sec or less than that

adam_02
asked 2 years ago1772 views
1 Answer
0

There are pros and cons for a lower segment duration in HLS.

Smaller segments (e.g. 2 seconds) enables reduced tune-in time when watching live tv stream with faster download of the required buffered segments before playback begins. It also helps you reduce latency (delay from live) vs longer segments with same buffered segment requirements.

On the flip side, you will increase the number of requests to the origin and the CDN by 3 times if you move from 6s to 2s segments. The cost may be insignificant but still additional cost over use of a larger segment. You will also need good network conditions where the network congestion and drop will not impact the shortened buffered content due to lower segments size.

The decision should be based on what user experience you want for your customers and intersect that with network conditions, additional requests, and player capabilities.

Dev_K
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions