Lag is a noticeable delay, stutter, or interruption during live video and audio playback, occurring when data transfer or processing fails to keep pace with real-time demands.
How to Identify and Diagnose Stream Lag
Troubleshooting playback lag requires tracing data flow from the capture device through the encoding pipeline to the viewer display. Isolating the exact bottleneck prevents misallocated fixes.
- Check Network Latency and Jitter: High round-trip time, fluctuating ping, or packet loss forces the playback player to stall while waiting for missing video chunks.
- Monitor Encoding and Hardware Utilization: Overloaded central processing units or graphics cards drop frames before video ever leaves the host machine, creating jerky motion regardless of network speed.
- Inspect Ingest and Content Delivery Protocols: Traditional HTTP streaming protocols introduce intentional segment buffering, whereas WebRTC or Low-Latency HLS reduces transit delay to sub-second levels.
- Adjust Playback Buffer Settings: Expanding the client buffer smooths out playback stutter caused by brief connection dips, though it slightly increases overall stream delay.
Distinguishing Lag from Latency
While often used interchangeably in casual conversation, latency refers to the static time offset between camera capture and viewer presentation. In contrast, lag specifically describes visible performance degradation, such as dropped frames, erratic playback pacing, or video freezes caused by dynamic system and network strain.
Testing lag at different times and on more than one connection helps separate a device problem from a service or network delay that needs further checking.