View Full Version : smartsmoother hiq in avisynth
midiguy
25th July 2002, 07:09
ok:
VD_SmartSmoothHiQ(7,35,254,"weighted")
where is my "maintain diffweight" option?
7 is diameter
35 is threshold
254 is amount
and "weighted" is the mode
WHERE IS MY MAINTAIN DIFFWEIGHT I NEED IT PLEASE HELP!!!!
Acaila
25th July 2002, 07:44
No need to shout, only to search around a little:
http://forum.doom9.org/showthread.php?s=&threadid=23804&perpage=20&pagenumber=1
manono
25th July 2002, 08:20
Hi-
Are you using the VDub version in an .avs script? Why not just use the AviSynth version to begin with?
Dreassica
25th July 2002, 18:37
Because it doesn't have the Maintain Diffweight option probably!1
The avisynth version is based on an older Smartsmoother version!!
midiguy
25th July 2002, 18:47
Originally posted by Acaila
No need to shout, only to search around a little:
http://forum.doom9.org/showthread.php?s=&threadid=23804&perpage=20&pagenumber=1
I love you.
midiguy
25th July 2002, 18:54
maybe I'm just not getting something because it seems it still won;t let me put in that extra parameter for maintain diffweight.. can someone post the call format for the following settings:
diameter: 7
threshold: 35
amount: 254
maintain diffweight: 3
mode: "weighed average"
weighted with difference = true
that's it! paaalease! I am using V2.11 of the filter and V1.4 of the import file!! thanks!
Acaila
25th July 2002, 19:42
VD_SmartSmoothHiQ(7,35,254,"weighted",true,3,false,false)
The correct script can be found in the VD Import file v1.4, and after that it's just a matter of inputting the correct values at the right places.
midiguy
26th July 2002, 01:32
Originally posted by Acaila
VD_SmartSmoothHiQ(7,35,254,"weighted",true,3,false,false)
The correct script can be found in the VD Import file v1.4, and after that it's just a matter of inputting the correct values at the right places.
doesn't work still... but thank you
manono
26th July 2002, 04:38
Hi-
Use the AviSynth version-much faster, uses weighted average, and unlike Dreassica's claim, it most certainly does have Maintain Difference.
From the Smoother HiQ For AviSynth Site (http://cultact-server.novi.dk/kpo/avisynth/smooth_hiq_as.html):
SmoothHiQ(Diameter, Luma Threshold, Chroma threshold, Amount, Maintain Difference)
midiguy
26th July 2002, 05:17
Originally posted by manono
Hi-
Use the AviSynth version-much faster, uses weighted average, and unlike Dreassica's claim, it most certainly does have Maintain Difference.
From the Smoother HiQ For AviSynth Site (http://cultact-server.novi.dk/kpo/avisynth/smooth_hiq_as.html):
SmoothHiQ(Diameter, Luma Threshold, Chroma threshold, Amount, Maintain Difference)
hmmmm thanks. in terms of quality, is this avisynth filter as good as the virtualdub version? I mean, is it up to date with the v dub version? thanks.
midiguy
26th July 2002, 05:20
hmmm. this avisynth version is not mmx optimized (yet)... the only advantage is that it works in the YUV colour space. I still always like to ues full processing mode in virtualdub and convert to RGB because it results in a smaller file size then leaving it in YUV.
midiguy
26th July 2002, 05:21
Originally posted by midiguy
hmmm. this avisynth version is not mmx optimized (yet)... the only advantage is that it works in the YUV colour space. I still always like to ues full processing mode in virtualdub and convert to RGB because it results in a smaller file size than using fast recompress and leaving it in YUV.
manono
26th July 2002, 06:12
Hi Again-
Please forgive me if I come on strongly now, but you have it coming. Two weeks ago I told you and then showed you that the AviSynth version is faster in Weighted Average than the VDub version. At that point you were still using Ave. Pixels. I told you that Wt. Ave. was better, and you ignored me, but now you have come around. I also showed you that the AviSynth version compressed better, and you still dispute that. OK-fine, I don't much care, but you seem to be having trouble, and I'm trying to help you out. The backup for these claims is in this Thread (http://forum.doom9.org/showthread.php?s=&threadid=27296&perpage=20&pagenumber=3). It's about 2/3 of the way down, in the post where I do the tests (also to help you).
And if you don't believe me about the compressibility, then maybe you'll take Sh0dan's word for it at the Smoother HiQ (http://cultact-server.novi.dk/kpo/avisynth/smooth_hiq_as.html) site. And I quote:
The Avisynth version will most often produce the most compressible result, because it operates in the same color-space as the codec's.
As for whether it's as "good" as the VDub version, I'll just quote again from Sh0dan:
Rewritten on basis of Smart Smoother HiQ for Virtual Dub. and The Avisynth and the Virtual Dub version will produce different results.
It's a direct port of SSHiQ 2.11 for VDub (as far as I know-I do know that the AviSynth version wasn't released until well after 2.11 for VDub was out), unlike Dreassica's claim that it's based on the older Smart Smoother version. Sh0dan says the results are different, but I have found the AviSynth version to be in no way inferior. Yes, when optimized it will be faster, but it's already faster than the VDub version in Wt. Ave.
As for settings, I've been getting good results with:
SmoothHiQ(5,40,50,175,8)
midiguy
26th July 2002, 06:20
thanks. I guess I forgot about that thread. question though, in your AVS therem you applied the filter AFTER resizing...? wouldn't it be better to filter and then resize? I know it would go slower, but I think the results would be a bit better...
manono
26th July 2002, 06:42
Hi-
I think you are probably right about that one. Although I've changed my settings since that post 2 weeks ago (to the ones I just posted), I still put it in after Resize because I'll do anything to speed it up (especially when using SSHiQ). After Resize will produce stronger smoothing, and if you have a bad, noisy source, you might want to do it that way. But in general, yes, before Resize is better.
Wilbert
26th July 2002, 12:22
@midiguy,
Thank you very much! Don't know how but a small mistake slipped through (I guess I didn't test this one properly, shame on me). You need to change the following lines:
return clip._VD_SmartSmoothHiQ(default(diameter,5), default (threshold,50), default(visualize_blur,0), default(amount,254),
\ mode, default(grayscale,false)?1:0, default(weighted_difference,true)?1:0, default(maintain_diffweight,0))
}
into
return clip._VD_SmartSmoothHiQ(default(diameter,5), default(threshold,50), default(visualize_blur,false)?1:0, default(amount,254),
\ mode, default(grayscale,false)?1:0, default(weighted_difference,true)?1:0, default(maintain_diffweight,0))
}
Does it work now?
midiguy
26th July 2002, 20:38
I don't know anything about this scripting language, but I know boolean means true or false.. and visual_blur was declared as bool, and you set the default to 0. I was wondering about that, guess I didn't have enough confidence to mess with it myself.. anyways, I will test that in a bit and let you know if it works now..
midiguy
26th July 2002, 20:46
after looking at the virtual dub import file a few times, I think I am getting the hang of this scripting. just a question for someone who knows (wilbert?), what does the ?1:0 do?
Wilbert
27th July 2002, 10:55
default(visualize_blur,false)?1:0
It means the following:
if default(visualize_blur,false) is true then visualize_blur=1
if default(visualize_blur,false) is false then visualize_blur=0
midiguy
28th July 2002, 05:25
It means the following:
if default(visualize_blur,false) is true then visualize_blur=1
if default(visualize_blur,false) is false then visualize_blur=0
ahh got ya. so it is just used for boolean stuff to convert it to 1 or 0.. neat.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.