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. |
19th July 2003, 18:54 | #1 | Link |
developer wannabe
Join Date: Nov 2001
Location: Brooklyn, NY
Posts: 1,211
|
Foolproof and automatic loading of AVS 2.0x plugins
It took me enough tinkering with this process that I thought I'd share the exact steps.
Download: LoadPluginEx.dll -- dunno exactly which package it came out of, but it's the one that works oldPlugins.avsi -- autoloading script Make a subdirectory off your plugins directory and stick your preferred AVS 2.0x plugins there. Add LoadPluginEx2.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 below). Put the .avsi in your regular plugins directory. Open it in a text editor. Should look something like this: Code:
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") You should now be able to integrate AVS 2.0x and AVS 2.5x plugins seamlessly. Here's a script I used on last night's video capture, for instance: Code:
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 |
19th July 2003, 19:48 | #3 | Link |
developer wannabe
Join Date: Nov 2001
Location: Brooklyn, NY
Posts: 1,211
|
Just as putting a DLL in the plugins directory is the same as calling LoadPlugin() on it at the top of your script, putting an AVSI file in there is like calling Invoke() on it.
This is probably not as widely known since there have been a few issues with it: (1) code in an avsi should be limited to commands that don't affect the A/V streams, such as SetWorkingDir or anything wrapped in a function (2) the default extension has been changed a few times to try to avoid the above conflicts (e.g., if you didn't move the *.avs documentation provided with filters, you'd get weird errors) -- we finally settled on *.avsi ("AVS Include") but I suspect many people's function collections haven't been updated |
20th July 2003, 01:33 | #6 | Link | ||
developer wannabe
Join Date: Nov 2001
Location: Brooklyn, NY
Posts: 1,211
|
Quote:
Quote:
Theory aside, all I care about right now is whether it works as advertised. If so, I think this is valuable information considering how many people have had problems with it. If not, I need to know so I can withdraw my code and revise. |
||
20th July 2003, 10:46 | #7 | Link | ||
Moderator
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
|
Quote:
Quote:
|
||
25th July 2023, 02:19 | #9 | Link |
None
Join Date: Jul 2007
Location: The Background
Posts: 303
|
Is it possible to port denoise filters from Dust family and PeachSmoother to AviSynth 2.6 and AviSynth+, and also add YV12 support?
I've noticed on GitHub that some users have ported a lot of old AviSynth filters to AviSynth+ (pinterf, asd-g). |
26th July 2023, 15:02 | #12 | Link |
Big Bit Savings Now !
Join Date: Feb 2007
Location: close to the wall
Posts: 1,531
|
Multiple installations side by side:
https://forum.doom9.org/showthread.php?t=172124
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain) "Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..." |
Thread Tools | Search this Thread |
Display Modes | |
|
|