Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th April 2024, 19:40   #1  |  Link
agressiv
Registered Loser
 
agressiv's Avatar
 
Join Date: Dec 2004
Posts: 119
ssimulacra2 syntax help?

I'm trying to get the vapoursynth implementation of ssimulacra2 working.

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!
agressiv is offline   Reply With Quote
Old 25th April 2024, 19:51   #2  |  Link
Julek
Registered User
 
Julek's Avatar
 
Join Date: Dec 2020
Posts: 94
The score is saved in each frame as a frameprop, you can visualize it with text.FrameProps()
Quote:
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:
Quote:
vspipe -p "ssim2.vpy" . --json "ssim2.json"
__________________
CPU: AMD 3700X | GPU: RTX 3070Ti | RAM: 32GB 3200MHz
GitHub

Last edited by Julek; 25th April 2024 at 19:57.
Julek is offline   Reply With Quote
Old 25th April 2024, 20:54   #3  |  Link
agressiv
Registered Loser
 
agressiv's Avatar
 
Join Date: Dec 2004
Posts: 119
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!
agressiv is offline   Reply With Quote
Reply

Tags
ssimulacra2, vapoursynth

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 13:59.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.