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
- Video transcoding produces multiple bitrates (covered previously)
- Segmentation: Each quality version is split into small chunks (~2-10 seconds)
- Manifest generation: Build HLS/DASH file listing all qualities with bandwidth requirements
- Player logic: Client measures network speed, requests appropriate quality segments
- 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.