Ch. 11 · Measuring Video Quality in Practice

한국어日本語
7 min

PSNR, SSIM, and VMAF: What Each Metric Sees and Misses

The three metrics all look like an "original-vs-encoded score," but they look at different things. Learn what each one is good and bad at.

In Chapter 2 you learned the names and ideas behind PSNR, SSIM, and VMAF. This chapter puts that knowledge to work: measuring real numbers and interpreting them. We start by lining the three metrics up side by side: what each takes as input, what it looks at, and what number it produces.

What they share: all three are "full-reference" metrics

All three metrics need both the original (reference) and the encoded result (distorted) to compute a score. Scoring quality from the result alone takes a separate no-reference approach, which is a different family from the metrics in this chapter. That is why you can't measure the VMAF of a video someone else uploaded unless you also have the original.

PSNRSSIMVMAF
What it looks atPixel-value error (MSE)Similarity of brightness, contrast, and structure in local regionsFuses several elementary metrics (VIF, DLM, frame-to-frame difference, etc.) with a trained model
Unit / rangedB (higher is better)0 to 1 (1 means identical)0 to 100 (for the default model; higher is better)
Relation to human ratingsWeakBetter than PSNR, but fairly insensitive to compression artifactsTrained on subjective ratings (MOS) to track them as closely as possible
Computational costLightestLightHeaviest of the three
Good forRegression tests during encoder development; fine comparisons within the same codec and structureChecks that need more sensitivity to structural change than PSNRStreaming quality targets, codec and setting comparisons, choosing a CRF

The "Computational cost" row is a general tendency. Actual run time depends on the implementation and the hardware.

The same score doesn't mean the same quality

Different metrics have different scales. PSNR 38 dB and VMAF 93 can't be swapped for each other, and even within one metric, the same score can look different depending on the type of video. So whenever you compare scores, they must come from the same metric, the same model, and the same measurement conditions. Lessons 4 and 5 return to this when they go through the measurement conditions one by one.

Original Encoded result PSNR: pixel error SSIM: structural similarity VMAF: fusion + trained model dB 0 to 1 0 to 100
How the three metrics look at the original and the encoded result
Don't call something "good" or "bad" from a single score

None of the three metrics replaces a human eye. This site's measurement articles are also based on VMAF, and their limitations sections note that we did not check whether the frames with low scores are actually noticeable to a viewer. A metric is a ruler for comparison, and for important decisions it is safer to take one more look with your own eyes.

Full-reference metricFull-reference metric

A quality metric that takes both the original and the result as input and compares them. PSNR, SSIM, and VMAF all belong here.

DistortedDistorted (the video under test)

The video that has been degraded by encoding, transmission, and so on. The input being evaluated in a metric tool.

ReferenceReference (the original)

The video used as the baseline for comparison. Usually the source before encoding.

Check yourself

Which statement applies to all of PSNR, SSIM, and VMAF?