I'm noticing a delay in the HLS delivery of my AWS Elemental MediaLive channel. How can I fix this?
Delays in HLS delivery can be due to various factors, such as encoding and decoding, network conditions, and player buffers. For more information on measuring latency and optimizing your configuration, see How to Compete with Broadcast Latency Using Current Adaptive Bitrate Technologies.
One way to potentially reduce latency is to shorten the segment length of the HLS group:
Important: Shortening segment length can impact video quality and increase the chance of player-buffering events. Before you proceed, consider the impact for your use case.
- Open the MediaLive console.
- From the navigation pane, choose Channels. Then, choose the channel that you want to modify.
- Choose Actions, and then choose Edit.
- Choose the HLS output group that you want to modify.
- Choose Manifest and Segments.
- For Segment Length, change the value to 1.
- Then, choose one output within the HLS group.
- Choose GOP Structure.
- For GOP Size Units, select SECONDS.
- For GOP Size, enter 1 to match the segment length of one second.
- Repeat steps 7 through 10 for all outputs in the HLS group.
- After you update the outputs, choose Update Channel.