Log in

View Full Version : Newbie Question: Virtualdub Filters


jellysandwich
27th April 2004, 01:27
Basically, I would like to learn how to use Virtualdub filters
through Avisynth scripts. Specifically, I would like to learn
how to use Donald Graft's WarpSharp filter.

I already know how to load the filter into the script, but I can't
figure out how to access the settings (as most of you probably
know, WarpSharp has a setting range of 0 to 400). How can I access
that setting?

Here's my script so far:

--------------------------------------------------------------------
LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec3.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\decomb.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\UnDot.dll")
LoadPlugin("c:\progra~1\gordia~1\avisynth25\TemporalCleaner.dll")
LoadPlugin("c:\progra~1\gordia~1\avisynth25\Deen.dll")
LoadPlugin("c:\progra~1\gordia~1\avisynth25\aWarpSharp.dll")
LoadPlugin("c:\progra~1\gordia~1\avisynth25\IT.dll")

mpeg2source("F:\DVD\Projects\cb1\cb1.d2v")

IT()
crop(6,0,708,480)

TemporalCleaner()
deen("a2d",2,10,12)
BicubicResize(640,480,0,0.5)
Undot()
ConvertToRGB32()
LoadVirtualDubPlugin("C:\Progra~1\gordia~1\Virtua~1\plugins\warpsharp.vdf","warpsharp",1)
return warpsharp
--------------------------------------------------------------------

-jellysandwich

Guest
27th April 2004, 02:43
# This works with my version 1.1 (code by Wilbert)

function VD_WarpSharp(clip clip, int "depth")
{
LoadVirtualdubPlugin("...\warpsharp.vdf", "_VD_WarpSharp")
return clip._VD_WarpSharp(depth)
}

# example: ConvertToRGB()
# VD_WarpSharp(50)
# ConvertToYUY2()

Please note that WarpSharp is by Avery Lee. I made a version that works with Avisynth. Avery has since released his own version 1.2 that is also compatible, and which provides additional functionality. You'll need to revise the code above to use it, however.

Finally, you are loading an Avisynth WarpSharp DLL, so why do you need the VirtualDub one?

jellysandwich
27th April 2004, 03:11
Originally posted by neuron2
# This works with my version 1.1

function VD_WarpSharp(clip clip, int "depth")
{
LoadVirtualdubPlugin("...\warpsharp.vdf", "_VD_WarpSharp")
return clip._VD_WarpSharp(depth)
}

# example: ConvertToRGB()
# VD_WarpSharp(50)
# ConvertToYUY2()

Please note that WarpSharp is by Avery Lee. I made a version that works with Avisynth. Avery has since released his own version 1.2 that is also compatible, and which provides additional functionality. You'll need to revise the code above to use it, however.

Finally, you are loading an Avisynth WarpSharp DLL, so why do you need the VirtualDub one?


Ooops, I guess I forgot to take aWarpSharp out (it didn't give me
results I was looking for). Sorry about that.

I'm using your version right now, but I might try Avery's new one.

Last, your code helped me a lot. Thank you very much.

-jellysandwich