rav1e icon indicating copy to clipboard operation
rav1e copied to clipboard

Why PSNR is very little?

Open soaringleefighting opened this issue 2 years ago • 6 comments

Recently I test rav1e, but I have two questions following:

  1. qp range is from 0 to 255 for rav1e?
  2. The output PSNR is very little(about 10), but PSNR of other codec is about 35.

soaringleefighting avatar Aug 30 '21 06:08 soaringleefighting

  1. Yes, the quantizer(quality range, it's not a pure quantizer in rav1e) is from 0-255.

  2. What do you mean by that?

BlueSwordM avatar Sep 02 '21 16:09 BlueSwordM

I meant that the PSNR value generated by rav1e is very small, for example the PSNR is only 10 but quantizer is set to zero. I don't understand this.

soaringleefighting avatar Sep 04 '21 01:09 soaringleefighting

With such low PSNR you should be able to see yourself what went wrong. If the encoded frames look fine, then maybe it's a measurement error? For example, are you comparing correct color spaces? Same chroma subsampling?

kornelski avatar Sep 24 '21 16:09 kornelski

I had similar experiences. ffmpeg for example calculates values which are a lot (x2.5) higher.

jnnks avatar Jul 23 '22 09:07 jnnks

I shall add that PSNR is an unreliable metric of visual quality.

Modern video encoders aim for perceptual quality, not PSNR, so they may deliberately make PSNR worse in order to make video look better to humans.

Metrics like SSIM and VMAF are less bad than PSNR.

kornelski avatar Jul 23 '22 15:07 kornelski

Fair point. PSNR is so unreliable, because it's such a simple calculation. That also means that it's concerning to see different scores for the same videos with two different tools (rav1e built-in and ffmpeg).

jnnks avatar Jul 24 '22 09:07 jnnks