Log in

View Full Version : ssimulacra2 syntax help?


agressiv
25th April 2024, 19:40
I'm trying to get the vapoursynth implementation of ssimulacra2 working.

https://github.com/dnjulek/vapoursynth-ssimulacra2
(https://github.com/dnjulek/vapoursynth-ssimulacra2)

I'm trying to figure out how to simply get the score at the end. Most other tools, you'd specify a log file as the last parameter, but this particular tool doesn't. I'm certainly not an expert in vapoursynth, maybe someone can nudge me in the right direction? Thanks!

Julek
25th April 2024, 19:51
The score is saved in each frame as a frameprop, you can visualize it with text.FrameProps()

ssim = core.ssimulacra2.SSIMULACRA2(ref, dist)
print_prop = ssim.text.FrameProps()
print_prop.set_output()


or if you want a log, you can save the props in a json with vspipe:
vspipe -p "ssim2.vpy" . --json "ssim2.json"

agressiv
25th April 2024, 20:54
Super! This works. I'm getting about 13fps on a 1080p video with a Ryzen 5950x. With SelectEvery() I can do a subset of frames. Any other tips to improve performance? Someone mentioned they had this GPU accelerated but I can't fathom how that would be.

Thanks!