GlossaryQuantization (video)

Quantization (video)

Quantization in video compression is the step where an encoder rounds detailed picture information into fewer possible values so it takes fewer bits to store. Quantization is the main place where lossy codecs discard detail. A higher quantization level means smaller files but more blur or blockiness. A lower level keeps more detail but produces bigger files.

Why it matters

Quantization is the main dial that trades file size against picture quality. How an encoder sets it decides whether a service pays for wasted bits or ships video that looks soft and blocky, so it drives both delivery costs and viewer perception.

How it works

  1. The encoder converts each block of pixels into frequency values describing coarse and fine detail.
  2. It divides those values by a step size set by the quantization parameter (QP).
  3. Small values round to zero, which removes fine detail and saves many bits.
  4. The decoder multiplies back, but the rounded-away detail is gone for good.

What is QP in video encoding?

QP, the quantization parameter, is the number that sets how coarsely an encoder rounds picture detail. A higher QP means more rounding, smaller files and lower quality. A lower QP keeps more detail but uses more bits. Encoders adjust QP across frames and blocks to hit a target quality or bitrate.

What is the difference between QP and CRF?

QP applies a fixed amount of rounding, while CRF (constant rate factor) targets a consistent visual quality and lets the encoder vary QP. With CRF, complex scenes get more bits and simple scenes fewer. CRF usually gives better results for on-demand files than a fixed QP.

Where it's used

Short video apps use stronger quantization for feed clips to cut delivery costs, while OTT services and sports streamers keep more detail for premium films and live matches.