
Trade-offs
Encoding an encode is always worse
A copy of a copy. Each pass judges only what survived the last, and cannot recover what it never received.
Every setting is a trade · Medium
Lossy compression makes permanent decisions. Every subsequent encode inherits those decisions and makes more.
What the first pass threw out
A lossy codec does not store a video file — it stores an approximation. The Moving Picture Experts Group designed this trade deliberately: discard what the human visual system is least likely to notice, and spend the saved bits on what it will. Chroma information is subsampled first, because the eye resolves color less sharply than luminance. Fine spatial detail is quantized away next, particularly in regions of complex texture where losses hide easily. Temporal prediction lets frames store only their differences from neighbors rather than full images, so the decoder can reconstruct motion economically. Each of these is a one-way door.
The file that comes out the other side is not a compressed version of the original. It is a reconstruction that happens to look convincingly like the original at normal viewing distance and bitrate. The original's discarded information is gone — not stored somewhere smaller, not recoverable with a better decoder. Gone. Which means that when you open that file and encode it again, the new encoder is not working from video. It is working from a prior encoder's approximation, and it will now discard further information from that already-degraded signal.
Why the second pass cannot compensate
The failure mode is specific and measurable. Lossy compression introduces artifacts — block boundaries, mosquito noise around high-contrast edges, smeared detail in motion — that a second encoder's analysis reads as content. Chroma subsampling performed in the first pass is permanent; the reconstructed file contains no record of what the original colors were before that decision was made. Temporal prediction in the first encode may have spread errors across multiple frames through its reference chain; the second encoder inherits those errors as if they were the source material.
Two-pass encoding, which analyzes the entire clip before committing to quantization decisions, cannot fix this. Two-pass is a strategy for distributing available bits intelligently across a single encode; it does not reverse what a prior lossy encode already discarded. The encoder still sees artifacts where there was once clean signal, and its own quantization decisions compound on top of them. Generation loss — the accumulated degradation across successive encodes — was a well-understood problem in analog tape production long before digital video existed. Digital lossy compression made it quieter and less visible per step, but did not eliminate it.
What this means for the codec generations
This is why the sequence of codec improvements — MPEG-4 Part 2, then H.264/AVC, then HEVC, then AV1 — matters beyond quality-per-bit benchmarks. Each generation achieves better compression efficiency at equivalent quality, which means the artifacts it introduces at a given bitrate are smaller. But the principle holds regardless of the codec: if you re-encode a lossy source, you are building on someone else's approximation.
The practical consequence has shaped editorial and archival practice for decades. Professional workflows keep an uncompressed or lossless master and encode to delivery formats from that source. When the delivery format changes — when a DivX-era encode needs to become an H.264 stream, for instance — the right move, if it is available, is to go back to the original capture and re-encode. Starting from the intermediate is faster. It is also visibly worse if the viewer looks carefully, and invisibly worse even if they do not, because the artifact structure in the output file is now a function of two encoders' decisions rather than one.

The codec argues about how much to discard. The arithmetic about re-encoding is not an argument. The first pass threw something away permanently, and the second pass will do the same, and there is no version of this process where the output is better than the input. Lossy means lossy: the information is not waiting somewhere to be reclaimed. It is simply absent.
How it works
How degradation compounds
- Generation lossdegradation that accumulates across each successive re-encode; present in analog tape, present in digital lossy formats
- Chroma subsamplingthe first encoder's color-resolution reduction is baked into the output file; no subsequent encoder can restore it
- Artifact inheritanceblock edges, mosquito noise and motion smear introduced by the first encode appear as "content" to the second encoder
- Two-pass encodinga strategy for efficient bitrate distribution within a single encode; not a remedy for prior lossy passes

How it works
The archival principle
- A lossless or uncompressed master preserved separately is the only source a re-encode can safely draw on
- Codec-generation upgrades (e.g., DivX → H.264 → AV1) only avoid compounded loss when the re-encode originates from the original capture
- Each delivery format change made from an intermediate rather than the master adds a compounding error layer