Operations 16 min read

Analysis of Live Streaming Latency Causes and Optimization Strategies

The article examines why live‑streaming latency—averaging about five seconds on the studied platform versus three seconds on top e‑commerce services—remains high, pinpointing encoder, transcoding, CDN GOP‑cache, and player buffering as key contributors, and proposes optimizations such as shrinking GOP size, minimizing CDN cache tiers, tightening player buffers, and adopting ultra‑low‑latency protocols like RTS, RTM, or QUIC to achieve sub‑second delays.

DeWu Technology
DeWu Technology
DeWu Technology
Analysis of Live Streaming Latency Causes and Optimization Strategies

Background: Live streaming latency directly impacts user experience and conversion rates. High delay degrades viewing quality and prevents real‑time interaction between hosts and viewers.

Subjective Experience: Internal observations show that top e‑commerce platforms achieve ~3 s end‑to‑end latency, while the examined platform averages ~5 s, indicating clear optimization space.

Benefits of Reducing Latency: Faster transaction flow, smoother user interaction during flash‑sale countdowns, and consistent experience across users.

Typical End‑to‑End Path: Host → Cloud Server → CDN Node → User. Each segment can introduce delay through encoding, transcoding, CDN caching, and player buffering.

Key Delay Sources: Encoder and capture device delay (limited optimization potential). Cloud server transcoding/compression time. CDN GOP‑cache strategy (often 5‑7 s of stale frames, the main root cause of high latency). Player buffer and fixed delay (usually 1‑2 s, configurable). User device decoding and network conditions.

Measuring Latency: Use an end‑to‑end test by calculating the time difference between the playback side and the push side. 播放端 to 推流端 . An online millisecond‑accurate clock (e.g., http://www.daojishiqi.com/bjtime.asp) can be used to capture timestamps and compute the gap.

GOP (Group of Pictures) Impact: Larger GOP sizes increase the waiting time for the next I‑frame, raising latency. Reducing GOP to 1 s can lower end‑to‑end delay by roughly 1 s but may affect video quality.

Optimization Recommendations: Lower CDN GOP‑cache to the minimum tier (expected reduction from 5‑8 s to 3‑5 s). Set push‑stream GOP to 1 s. Increase buffer consumption speed (e.g., accelerated playback or frame dropping) with adaptive control. Verify custom player buffer size (target ≥2 s) and align with competitors. Consider ultra‑low‑latency protocols such as Alibaba RTS or ByteDance RTM, which can achieve ≤1 s delay. Adopt QUIC (UDP‑based) instead of TCP to reduce connection setup, transmission, and multiplexing overhead.

Implementation Note: Some solutions (e.g., SEI timestamp injection) require low‑level streaming SDK changes, so the simpler method of adjusting cloud console latency settings is often preferred for quick gains.

OptimizationLive StreamingcdnGOPlatencyprotocols
DeWu Technology
Written by

DeWu Technology

A platform for sharing and discussing tech knowledge, guiding you toward the cloud of technology.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.