Video Technology

Video Codecs

A video codec is the technology that compresses massive raw video files into manageable sizes for streaming, broadcasting, and storage. Without them, the digital video world as we know it would be impossible. This explorer demystifies how they work.

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

1

Color Space

RGB to YCbCr, chroma subsampling

2

Partitioning

Frame divided into blocks/CTUs

3

Prediction

Intra/Inter prediction, motion vectors

4

Transform

DCT converts to frequency domain

5

Quantize

Lossy precision reduction

6

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