How it works
A container such as MP4 packages tracks; a codec such as H.264 compresses video. Devices differ in supported codecs, resolutions, and bandwidth. Encode a deliberately limited ladder of renditions, meaning bitrate and resolution combinations, where bitrate is the data used per second of video. More renditions improve fit but cost compute and storage.
As an example, 240p at 0.4 Mbit/s, 480p at 1.5, 720p at 3, and 1080p at 6 total 10.9 Mbit/s, so each hour of video stores about 4.9 GB. Netflix’s per-title encoding work showed that one fixed ladder wastes bits on simple content and can fall short on complex content, so it tunes the ladder per title.
Package each rendition into short, independently decodable segments and publish a manifest, an index file listing them. Align segment boundaries so the player switches quality cleanly. HLS and MPEG-DASH are HTTP-based playback approaches; choose against actual client compatibility. On a changing mobile connection, the player can request a lower-bitrate next segment to protect its buffer, the seconds of video already downloaded. Very short segments add requests; long ones delay adaptation and may waste bytes. Apple’s HLS guidance targets six seconds, which means 600 segments per rendition per hour.
Newer codecs such as AV1 reach similar quality at lower bitrates but take longer to encode, and not every device decodes them in hardware, so services keep a widely supported codec such as H.264 as a fallback. A private video shared with three colleagues needs one MP4 file rather than a ladder.
A viewer moves from Wi-Fi to a slow train connection halfway through a video. What prepared assets enable a quality change?
A manifest and aligned segments for multiple compatible bitrates let the player request a lower-quality next segment without restarting.
Use this as a guide for self review; written answers are not graded.Keep in mind
- Codec, container, bitrate, rendition, segment, and manifest solve different problems.
- Align segment boundaries and choose the rendition ladder for supported devices.