The Compression Imperative
A single minute of uncompressed Full HD (1080p) video is enormous. See how much data a codec can save.
Uncompressed (1 Min)
8.96
GB
H.264 Compressed (1 Min)
0.015
GB
~99.8% Size Reduction
How Video Compression Works
Modern video codecs follow a sophisticated, multi-stage pipeline to intelligently remove redundant data. Each step plays a critical role in balancing quality and file size.
Encoding Pipeline
Color Space
RGB to YCbCr, chroma subsampling
Partitioning
Frame divided into blocks/CTUs
Prediction
Intra/Inter prediction, motion vectors
Transform
DCT converts to frequency domain
Quantize
Lossy precision reduction
Entropy
CABAC lossless compression
Prediction
The core of compression. The codec predicts what a block will look like based on neighbors (Intra) or other frames (Inter with Motion Vectors). Only the small difference (residual) is encoded, not the whole block.
Quantization
The primary "lossy" step. Transform coefficients are divided and rounded, reducing precision. High-frequency details are quantized aggressively as our eyes are less sensitive to their loss.
In-Loop Filtering
Filters applied inside the encoding loop clean up blocking artifacts. This improves visual quality and provides cleaner reference frames for predicting future frames.
The Evolution of Efficiency
Roughly every decade, a new generation of codec emerges, offering about double the compression efficiency of its predecessor. Click on a codec to learn more.
Modern Codec Showdown
Today's leading codecs offer different strengths. H.264 provides maximum compatibility, while newer codecs like HEVC and AV1 deliver superior efficiency with trade-offs.
Feature Comparison (Higher is Better)
Bitrate Savings (Lower is Better)
Codecs vs. Containers
A codec is how you pack a gift to make it small, and a container is the box you put it in. A single box type can hold gifts packed in different ways.
1. Select a Codec
2. Choose a Container
| Container | Extension | Common Codecs | Best For |
|---|---|---|---|
| MP4 | .mp4, .m4v | H.264, H.265, AAC | Universal playback, streaming |
| MKV | .mkv | Any codec, multiple tracks | Archives, multiple audio/subs |
| WebM | .webm | VP8, VP9, AV1, Opus | Web video, royalty-free |
| MOV | .mov | ProRes, H.264, HEVC | Apple ecosystem, editing |