Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XPSNR fails on very similar or identical pictures (score: inf) #256

Closed
gitoss opened this issue Dec 24, 2024 · 1 comment · Fixed by #261
Closed

XPSNR fails on very similar or identical pictures (score: inf) #256

gitoss opened this issue Dec 24, 2024 · 1 comment · Fixed by #261

Comments

@gitoss
Copy link

gitoss commented Dec 24, 2024

... continuing from #244 :-)

AB-AV1 0.9 fails with an ugly ffmpeg output on very similar or identical pictures because the xpsnr score isn't numeric, but 'inf' (try to run ab-av1.exe xpsnr --reference same.png --distorted same.png

[Parsed_xpsnr_0 @ 0000000000f36540] XPSNR  r: inf
XPSNR average, 1 frames  r: inf  g: inf  b: inf  (minimum: inf)
[out#0/null @ 0000000000f004c0] video:0KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown
frame=    1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A speed=0.434x

A possible hotfix could be to simple limit the xpsnr score to 99 (and map inf to 99, too) - on the logarithmic psnr scale 50-ish is lossless, so 99 should be a safe 'inf' dummy value.

Otherwise thanks for implementing, xpsnr seems to be a bit faster than vmaf which is nice for bulk crf-search image conversion.

@alexheretic
Copy link
Owner

alexheretic commented Dec 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants