Adaptive Bitrate Streaming Explained
What is Adaptive Bitrate
Adaptive Bitrate (ABR) is a streaming technology that allows video players to dynamically adjust video quality based on user network conditions. When bandwidth is sufficient, players select high bitrate for best quality; when network congestion occurs, players automatically降低 bitrate to avoid buffering and stuttering.
The core goal of ABR is to provide smooth playback体验 under various network conditions. Traditional fixed-rate streams cause frequent buffering when bandwidth is insufficient and waste opportunities to improve quality when bandwidth is充足.
How ABR Works
ABR workflow includes:
- Multi-bitrate encoding: Video source encoded at multiple bitrates, typically 240p, 360p, 480p, 720p, 1080p.
- Segmentation: Each bitrate version segmented into small chunks (2-10 seconds).
- Playlists: Master Playlist contains all available bitrate info, each with a Media Playlist.
- Bandwidth detection: Player continuously monitors download speed.
- Bitrate selection: Selects optimal bitrate based on bandwidth and buffer status.
- Seamless switching: Switches at segment boundaries for smooth transitions.
Common ABR Algorithms
- Bandwidth-based: Selects bitrate based on download speed. Fast response but may switch frequently.
- Buffer-based: Selects based on buffer level. More stable but slower response.
- Hybrid: Combines bandwidth and buffer info. Most modern players use this.
- ML-based: Uses ML models to predict optimal bitrate. YouTube is exploring this.