You can configure live streaming latency for different streaming protocols to prevent unexpected issues. This topic describes how to configure live streaming latency.
Latency Configuration (formerly Live Latency Configuration) lets you adjust live streaming latency using Low, Medium, and High settings.
Procedure
- Log on to the ApsaraVideo Live console.
In the left-side navigation pane, click Domain Names. The Domain Management page appears.
Find the streaming domain that you want to configure and click Domain Settings in the Actions column.
Click .
Click Modify.
Modify the live streaming latency settings.
NoteApsaraVideo Live provides latency settings for three protocols. For each protocol, you can select Low, Medium, or High latency. The actual latency depends on two factors: the latency setting and the Group of Pictures (GOP) of the ingested stream. For details about the latency, see the following table. Configure the settings as needed.
Set the GOP of the ingested stream to 1 to 2 seconds to balance latency and smoothness. For example, the HLS segment length is affected by the GOP. Each Transport Stream (TS) segment must contain at least one GOP. If the GOP is 2 seconds, the total latency for High is 2 seconds × 6 segments, for Medium is 2 seconds × 4 segments, and for Low is 2 seconds × 3 segments.
For more information about live streaming latency, see Live streaming latency.
Ingest GOP
Protocol
Low
Medium
High
1 s
RTMP
3-4 s
4-6 s
6-8 s
FLV
3-4 s
4-6 s
6-8 s
HLS
5-6 s
6-8 s
10-15 s
2 s
RTMP
4-5 s
5-7 s
7-9 s
FLV
4-5 s
5-7 s
7-9 s
HLS
6-8 s
10-15 s
20-25 s
4 s
RTMP
4-8 s
6-10 s
8-12 s
FLV
4-8 s
6-10 s
8-12 s
HLS
15-20 s
20-30 s
30+ s
Click OK.