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

image and video scoring differently #26

Open
VD-NVencC opened this issue Jan 13, 2025 · 0 comments
Open

image and video scoring differently #26

VD-NVencC opened this issue Jan 13, 2025 · 0 comments

Comments

@VD-NVencC
Copy link

VD-NVencC commented Jan 13, 2025

I'm using the same material but getting different scores

ssimulacra2_rs

take a lossless source, throw it through ffmpeg and notice image & video score differently
ffmpeg -hide_banner -colorspace bt709 -color_primaries bt709 -color_trc iec61966-2-1 -stream_loop 0 -i rgb.bmp -vf zscale=rangein=full:range=limited:matrix=709,format=yuv444p,zscale=rangein=limited:range=full:matrix=709,format=rgb24 -vcodec png y444.png
ffmpeg -hide_banner -colorspace bt709 -color_primaries bt709 -color_trc iec61966-2-1 -stream_loop 4 -i rgb.bmp -vf zscale=rangein=full:range=limited:matrix=709,format=yuv444p,zscale=rangein=limited:range=full:matrix=709,format=rgb24 -vcodec ffvhuff y444.mov

[edit]
source I'm using (rgb.png)
rgb

some history
followed a link from wiki.x266.mov/docs/metrics/SSIMULACRA2 which talked about _rs version
found myself following _bins instructions for the windows env github.com/rust-av/ssimulacra2_bin
I didn't follow _bins instructions precisely since their url 404's (tag latest of L-SMASH)
I supplemented AkarinVS's L-SMASH for Asd-g's https://github.com/HomeOfAviSynthPlusEvolution/L-SMASH-Works/releases/tag/1194.0.0.0

some newer history
I thought I should report errors to _rs github since the cargo called itself ssimulacra2_rs but the ssimulacra2_rs github page says it's version is only 5.1 and its crates io page is not the _rs version.. so I think this bug should be on _bin
I have since revisited AkarinVS's page and got their L-SMASH, but when swapped and doing this video test I get Python exception: lsmas: bgr0 is not supported.
I changed the ffmpeg cmd pixel format from rgb24 (reads back as bgr0 in ffmpeg) to gbrp for ffvhuff and the comparison succeeds, however both L-SMASH libraries score the same way.
image
for y420, I may not be apples to apples yet with chroma upsampling on (ffmpeg vs avisynth), meanwhile y444 scores exactly the same between them.

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

No branches or pull requests

1 participant