Course contentsShow
← System Design
Lesson 1602 of 1,91939. Real-World System: Image and Video HostingFree lesson

Adaptive Bitrate Streaming (ABR)

Creating HLS or DASH manifests with multiple quality levels for seamless playback across network conditions.

Adaptive Bitrate Streaming (ABR)

What you'll learn: How to create multi-quality streaming manifests (HLS/DASH) that automatically adjust video quality based on network conditions.

The Core Idea

After video transcoding produces multiple quality levels (360p, 480p, 720p, 1080p), Adaptive Bitrate Streaming packages these into a manifest file that tells the player: "Here are all available quality options—pick the best one based on current bandwidth." The player dynamically switches between qualities during playback, ensuring smooth viewing whether you're on 5G or shaky WiFi.

Think of it like a restaurant menu where the waiter brings you different portion sizes based on how hungry you are right now, adjusting mid-meal if needed.

HLS and DASH Manifests

HLS (HTTP Live Streaming) uses .m3u8 playlist files:

#EXTM3U
#EXT-X-STREAM-INF:BANDWIDTH=800000,RESOLUTION=640x360
360p/playlist.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1400000,RESOLUTION=1280x720
720p/playlist.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=2800000,RESOLUTION=1920x1080
1080p/playlist.m3u8

DASH (Dynamic Adaptive Streaming over HTTP) uses XML-based .mpd files with similar metadata.

How It Works

  1. Video transcoding produces multiple bitrates (covered previously)
  2. Segmentation: Each quality version is split into small chunks (~2-10 seconds)
  3. Manifest generation: Build HLS/DASH file listing all qualities with bandwidth requirements
  4. Player logic: Client measures network speed, requests appropriate quality segments
  5. Adaptation: If bandwidth drops, player seamlessly switches to lower quality mid-stream

The manifest lives in object storage alongside video segments and is served via CDN for low-latency access worldwide.

Key Takeaway: ABR manifests enable seamless streaming by giving video players a menu of quality options with bandwidth metadata, allowing real-time adaptation to network conditions without buffering.