Latency settings

更新时间:
复制 MD 格式

Configure live streaming latency for different streaming protocols to prevent unexpected issues during a live stream.

Note

The Latency Settings feature, formerly Streaming Latency Settings, lets you set the live streaming latency to Low, Medium, or High.

Procedure

  1. Log in to the ApsaraVideo Live console.

  2. In the left navigation pane, click Domain Names. The Domain Management page appears.

  3. Find the streaming domain that you want to configure and click Domain Settings.

  4. Click Latency Settings to modify the latency.

Note

ApsaraVideo Live provides latency settings for three protocols. For each protocol, you can select a Low, Medium, or High latency level. The actual latency depends on the latency setting and the group of pictures (GOP) of the stream ingest. See the following table for details.

We recommend a stream ingest GOP of 1 to 2 seconds to balance latency and smoothness. The GOP affects the HLS segment duration, as each Transport Stream (TS) segment must contain at least one GOP. For example, if the GOP is 2 seconds, the latency is calculated as follows: High is 2 seconds × 6 segments, Medium is 2 seconds × 4 segments, and Low is 2 seconds × 3 segments.

For more information, see live streaming latency.

Stream ingest GOP

Protocol

Low

Medium

High

1s

RTMP

3–4s

4–6s

6–8s

FLV

3–4s

4–6s

6–8s

HLS

5–6s

6–8s

10–15s

2s

RTMP

4–5s

5–7s

7–9s

FLV

4–5s

5–7s

7–9s

HLS

6–8s

10–15s

20–25s

4s

RTMP

4–8s

6–10s

8–12s

FLV

4–8s

6–10s

8–12s

HLS

15–20s

20–30s

30s+

  1. Click OK.

Related topics