LoadOldPlugins

From Avisynth wiki
Jump to: navigation, search

Using AviSynth v2.0 plugins with AviSynth v2.5/v2.6:

Get the following files:

  • LoadPluginEx2.dll -- use as a last resort! I don't know exactly which package it came out of, but it works; I believe it requires v7 of the MS C runtime library (msvcr70.dll)

Then make an autoloading (avsi) script in your regular plugins directory. Should look something like this:

LoadPlugin("c:\pf\avisynth2\plugins\old\LoadPluginEx2.dll")
LoadPlugin("c:\pf\avisynth2\plugins\old\DustV5.dll")
LoadPlugin("c:\pf\avisynth2\plugins\old\GuavaComb.dll")
LoadPlugin("c:\pf\avisynth2\plugins\old\PeachSmoother.dll")
LoadPlugin("c:\pf\avisynth2\plugins\old\SmoothHiQ.dll")

Make a subdirectory off your plugins directory and stick your preferred AVS 2.0x plugins there. Add LoadPluginEx.dll to the same folder. (My DLLs are numbered because I was experimenting with several versions, but you can call it whatever you want so long as you update the script).


Change the path to your plugins directory if necessary, and add references to any other old plugins you may want to use now or in the future. Save.

You should now be able to integrate AVS 2.0x and AVS 2.5x plugins seamlessly without any calls to LoadPlugin. For example, here is a script I used on a recent video capture:

cap = AviSource("d:\sg-1.avi").ConvertToYUY2
# cap = AviSource("l:\sg-1.avi").ConvertToYUY2
# crop = cap.Crop(0,56,0,-64)
crop = cap  # Lindsey's filters apparently don't like crops

comb = crop.GuavaComb(mode = "NTSC", recall=75, maxVariation=15, activation=40)
peach = comb.PeachSmoother(noiseReduction=30, stability=20, spatial=100, dot=FALSE)
peach = peach.Crop(0,56,0,-64)

decomb = peach.Telecide(order=1, guide=1, post=2, vthresh=45, show=FALSE)
decomb = decomb.Decimate(cycle=5, mode=0)

dust = decomb.PixieDust(limit=2)

resize = dust.LanczosResize(640, 360)

return resize
# return StackVertical(decomb, dust)
# return cap.AssumeTFF.SeparateFields

More discussion is here (Doom9). Enjoy! --richardberg

Personal tools