rust-av/av-metrics

CIEDE2000 reports infinity for long videos

shssoichiro opened this issue · 1 comments

Tested against pair of 5000 frame 720p clips.

PSNR - Y: 50.1176  U: 54.2056  V: 54.5304  Avg: 51.1303
APSNR - Y: 50.8060  U: 54.7653  V: 55.1817  Avg: 51.7696
PSNR HVS - Y: 51.2208  U: 52.7011  V: 52.5036  Avg: 48.1122
SSIM - Y: 24.6719  U: 25.0490  V: 25.4352  Avg: 24.8524
MSSSIM - Y: 30.9129  U: 31.4632  V: 31.8206  Avg: 31.1415
CIEDE2000 - inf

Come to think of it, it's possible that this isn't due to video length, and that was just a coincidence. It's possible that our CIEDE2000 implementation just isn't bounded in case a lossless frame is found. The other metrics have an upper limit, e.g. PSNR maxes at 100 for a lossless frame to avoid this exact issue.