Skip to content
System Design Explorer
networking

Adaptive Bitrate Streaming

By Ankur NayakReviewed

Adaptive bitrate (ABR) streaming encodes each video at several resolutions and bitrates, cuts them into short segments, and lets the player pick the best version its connection can sustain, switching segment by segment. Viewers on slow networks get lower quality instead of a frozen picture.

Adaptive Bitrate Streaming diagramComponents: Source Video, Transcoder, CDN, Player. Connections: Source Video to Transcoder; Transcoder to CDN (1080p, 720p, 480p…); CDN to Player (segments).Source VideoClientTranscoderWorkerCDNCDNPlayerClient
One video, several renditions

How it works

The server side prepares a ladder of renditions. Google's 2021 paper on YouTube's video chip describes a 16:9 ladder from 144p up to 2160p and 4320p; Twitch's 2017 transcoder post shows live renditions such as 1080p60, 720p60, 720p30 and 480p30 produced from one incoming stream.

Each rendition is split into segments a few seconds long, and a playlist lists them. HTTP-based protocols such as HLS let any CDN serve the segments as ordinary files.

The player measures its bandwidth and buffer, and before each segment picks the rendition it can download in time. Lower resolutions are smaller and can be upscaled on the device, so dropping a level when the network weakens keeps playback going.

For live video, latency matters too. Twitch's low-latency HLS reduced delay from about 10 seconds to about 3; smaller buffers mean the player has less room to absorb network hiccups, so the choice of rendition has to react faster.

Key points

  • Encode a ladder of resolutions and bitrates
  • Split into short segments with a playlist
  • The player picks a rendition per segment
  • Serve segments as plain files from a CDN
  • Live streaming trades buffer size for latency

When to use it, and pitfalls

Use it for

  • Any video service: on-demand or live
  • Audio streaming with variable networks
  • Any large download consumed progressively over unreliable links

Watch out for

  • Too few rungs on the ladder: large jumps in quality
  • Switching too eagerly: quality oscillates
  • Transcoding every rendition for every video, even rarely watched ones; YouTube spends more compute only on popular videos

Trade-offs

More renditions vs cost

Offer a full ladder for popular content; fewer renditions for the long tail.

Pros: Better experience on every network; Bandwidth saved on the most-watched videos

Cons: Each rendition costs transcoding compute and storage

Used in

Frequently asked questions

How does adaptive bitrate streaming work?

The video is encoded at several resolutions and bitrates and split into short segments. The player measures its connection and, for each segment, requests the highest quality it can download in time, switching down when bandwidth drops and back up when it recovers.

Why do live streams have a delay?

Video is encoded and delivered in segments, and players keep a buffer of segments to play smoothly. Shorter segments and smaller buffers reduce delay: Twitch's low-latency HLS brought it from about 10 seconds to about 3.

Sources