# Using Virtualdub Filter in AviSynth

1. I'm trying to use VirtualDub Deinterlacing filter on AviSynth, but LoadVirtualDubPlugin is really confusing. Can somebody look at my script and tell me what I did wrong? Thanks.
[Attachment 48219 - Click to enlarge]
. This is the VD filter I want to apply.
[Attachment 48220 - Click to enlarge]
2. Sorry, double post.
3. Why not use a better AviSynth filter instead?

Or use Yadif(Mode=1) which is the AviSynth version of what you're trying to do.
4. I have installed Yadif using LoadCPlugins, but it does not recognise it. Can you type in code format for me so that I know how to load it?
5. I load it like so:

Adjust for your own path to the Yadif.dll. And I use it as a bobber like so:

Again, though, there are better AviSynth bobbers. While slow (and Yadif is very fast), QTGMC is the best.
6. Thanks for helping. However, Yadif from AviSynth is not the same as the one in VirtualDub. I want deinterlacing with chroma behind the movement because I believe it will make video less saturated. I wan't deinterlacing like the one in this video. https://www.youtube.com/watch?v=IG7yGbP9OLk&t=1s. I also use the same device, but I get different output from his videos. I don't know why my video looks more saturated than his despite the same set up. I'm wondering what filters he used. If you can tell me that I would be appreciated.
7. How should I know? Why not write and ask him?

If you want less saturation, then adjust the Sat component of Tweak. However, it's probably a Colorimetry issue, Hi-def .vs Std-def.

I expect the VDub Yadif is identical to the AviSynth one. Perhaps someone will come along and explain how to get VDub's Yadif going for you.
8. I don't think VDub internal filters can be loaded via an Avisynth script.
9. VirtualDub's intrinsic filters cannot be used in AviSynth, only the external dll filters.

LoadVirtualDubPlugin() does not apply the filter it simply makes it available by the name specified. You have to call the filter by that name somewhere in your script. So your would do something like:

Code:
LoadVirtualDubPlugin("x:\path\to\plugin.vdf", "deinterlace_this")  # make plugin.vdf available as deinterlace_this()

WhateverSource("filename.ext")
ConvertToRGB32(interlaced=true) # VirtualDub plugins require RGB32
deinterlace_this() # include any necessary arguments for the filter
ConvertToYV12() # or whatever you need for later processing
SomeOtherFilters() #
10. Converting to RGB32 ruins picture display
11. Originally Posted by jseo13579
Converting to RGB32 ruins picture display
In what way does it "ruin" picture display ?

LoadVirtualDubPlugin in avisynth requires RGB32 .
12. It ruins the texture, making it blurrier.
13. Originally Posted by jseo13579
Converting to RGB32 ruins picture display
So you got it running in AviSynth, then?

If I understand correctly, you can use the filter without the colorspace conversions in your script by using VDub2: