Avisynth: Changes for MA script for 528x480/576 resolution?
Hi kwag and all,
From what I understand the MA script is optimized for resolutions from 528x480/576 and up? What changes do I have to make to the script if I plan encodes at 352x240/288 or 480x480/576? Maybe a stupid question... :roll: |
Hi audioslave,
The only change needed should be the value for switching between blurring and Temporal filtering. Look at the line: ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= 2 ? \ And change the >= 2 to >=4 That should basically take care of 352x240(288). For 480x, I think that a value of 3 should be pretty close to ideal. Give it a try ;) -kwag |
@kwag,
Thank you for your fast reply as always! What parameter am I tampering with if I'm changing the value you described? I mean, what does it do? |
The value you are tampering with is the value to compare the returned value from the function "YDifferenceToNext()".
The less activity, the lower the value and vice versa. So it's really a "treshold" trigger point to switch between the blurring line "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) )" and the Temporal line "TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) ,1, 1)" :) -kwag |
Thanks again! I was just curious. So what will happen if I use the value for 528x480/576 if I'm encoding 352x240/288 for example?
|
Quote:
Code:
ScriptClip("Subtitle(String(nf),1,30)") -kwag |
So for fine tuning using a 1/2 DVD Rez, (352x480 ntsc) a value of >=3 or 4 sounds
about right, depending on the movie? ******************************* The Devil`s always.....in the Details! |
Kwag,
Is it possible to use a formula to derive this threshold based on the width of the clip? I have tried the following code and it assigns the threshold based on the current width of the clip. Code:
DifferenceThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2 Code:
ScriptClip("Subtitle(String(DifferenceThreshold),1,30)") Cheers, Fiz. |
Quote:
Quote:
Quote:
You just reminded me of what I did a long time ago to automate Blockbuster noise levels, depending on resolution :mrgreen: Your lines are perfect, and just made it to the current script ;) I'm updating it right now :!: Thanks, -kwag |
Quote:
|
Hi Fiz,
Script posted :!: I only changed the variable name "DifferenceThreshold" to "SwitchThreshold", because it seemed more appropiate for the description ;) I just tried it on a one minute clip, and there are no speed penalties with or without the changes :) Probably because it's just comparing constants :cool: -kwag |
Thanks kwag, being the novice I am I've learnt so much from this forum, not to mention the high quality encodes I'm churning out these days! I'm just glad to be part of it! :wink:
|
Code:
DifferenceThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2 |
Quote:
-kwag |
I have been using the current MA script with 352x240 resolution since it came out and it looks great on my tv. I didnt know I had to change any values for 352x240 :?
David |
Hi DKruskie,
You should use the line above, because it does make a difference :!: Check the curent script page, and update you script :) -kwag |
I updated my script..do I need to change any values for 352x240 or are they already set?
David |
Quote:
-kwag |
Cool, thanks Kwag :D
David |
Thanks Kwag,
I just took a(brief) look through the avisynth manual its more than just frameserving its a language in its own right. 8O |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.