digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Filters autoload? (http://www.digitalfaq.com/archives/avisynth/4097-avisynth-filters-autoload.html)

Dialhot 06-20-2003 05:38 AM

Avisynth: Filters autoload?
 
Hi,

I just want to remind you that AVS2.5x has a "autoload" feature for the plugins.

Don't bother yourself anymore with all these "LoadPlugIn" lines, just put all the dll under the "plugin" directory of avisynth. That's it !

I will simplify greatly all your scripts, and the work will also be easier to convert them to dvd2svcd (hi Jorel :-))

I do it since a long time.

bman 06-20-2003 06:46 AM

Re: Filters autoload
 
Quote:

Originally Posted by Dialhot
Hi,

I just want to remind you that AVS2.5x has a "autoload" feature for the plugins.

Don't bother yourself anymore with all these "LoadPlugIn" lines, just put all the dll under the "plugin" directory of avisynth. That's it !

I will simplify greatly all your scripts, and the work will also be easier to convert them to dvd2svcd (hi Jorel :-))

I do it since a long time.

Great DialHot !
But how exectly u are doing that ?
(script example will be good here) :lol:
bman

Dialhot 06-20-2003 07:14 AM

Re: Filters autoload
 
Quote:

Originally Posted by bman
Great DialHot !
But how exectly u are doing that ?
(script example will be good here) :lol:
bman

As I just told in my post "Don't bother yourself anymore with all these "LoadPlugIn" lines, just put all the dll under the "plugin" directory of avisynth"

In other words : put the all the dll in "C:\Program Files\Avisynth252\Plugins" (it"s just an example, adapt it to your proper situation), and remove all "loadplugin" line from the script.

For every filter used in the script, avisynth first tries to see if there is a "LoadPlugin" line with the name of a dll including the wanted filter. If not, it reads all the dll found in the "plugins" directory and automaticaly loads the accurate plugin.

jorel 06-20-2003 07:55 AM

Re: Filters autoload
 
Quote:

Originally Posted by Dialhot
Quote:

Originally Posted by bman
Great DialHot !
But how exectly u are doing that ?
(script example will be good here) :lol:
bman

As I just told in my post "Don't bother yourself anymore with all these "LoadPlugIn" lines, just put all the dll under the "plugin" directory of avisynth"

In other words : put the all the dll in "C:\Program Files\Avisynth252\Plugins" (it"s just an example, adapt it to your proper situation), and remove all "loadplugin" line from the script.

For every filter used in the script, avisynth first tries to see if there is a "LoadPlugin" line with the name of a dll including the wanted filter. If not, it reads all the dll found in the "plugins" directory and automaticaly loads the accurate plugin.

:lol:
hey Dialhot.
you did a post for me:
"Don't bother yourself anymore with all these "LoadPlugIn" lines, ..."
:lol: :lol:

but please,post a script for sample...
i "see" better details in scripts.
thanks. :wink:

Dialhot 06-20-2003 08:47 AM

Re: Filters autoload
 
Quote:

Originally Posted by jorel
but please,post a script for sample...
i "see" better details in scripts.
thanks. :wink:

Okay okay, if you insist.

There is the actual optimal script I use :

Code:

MaxTreshold = 1.50
scd_trigger = 30 # Scene change trigger value.
nf =  0 # Current frame.

Mpeg2Source("Your_D2V_Source_Here")

undot()
Limiter()
asharp(2, 4)
GripCrop(Your_GripCrop_Parameters_Here)
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.2))
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf > 2.5 ? asharp(-(fmin((nf/30), 1)), 0 ) : TemporalSoften(2,7,7,3,2) ")

conditionalfilter( last, asharp(-2,0), last, "nf", ">", "scd_trigger" )

GripBorders()
Limiter()

function fmin(float f1, float f2) {  return (f1<f2) ? f1 : f2 }

You see ? No more "LoadPlugin" lines.

Simple, isn't it ? :-)

jorel 06-20-2003 09:31 AM

8O
working

yeah,very very simple..... :arrow: for who knows... like you my friend!
:lol: :lol: :lol:

thank you Phil, you're great too.
:D

bman 06-20-2003 03:08 PM

Cool tip MAN !
Thanks DialHot :lol: :lol: :lol:
bman


All times are GMT -5. The time now is 04:46 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.