AfterDawn Forums

Avisynth Filter on Virtualdub Error

#1 21 Feb 2012 @ 8:33
I tried to encode a video using VirtualDub with Avisynth filter but I got an error. I open video on VD (VirtualDub) and then run the script on it File<Run script but I got error:
Error during script execution at line 1, column 21: Variable 'LoadPlugin' not found
LoadPlugin<!>(E:\filter.dll)

Here is the script I made

LoadPlugin(E:\filter.dll)
AviSource("D:\myfile.avi")
Filter(20, 0, 0)

Can anyone help me about this? I dont know also how to use the filter with .dll file

Thanks in advance
AfterDawn Advertisement
#2 21 Feb 2012 @ 10:44
LoadPlugin(E:\filter.dll)

perhaps should be LoadPlugin("E:\filter.dll") with the quotes.
What does 'filter.dll' do?
#3 23 Feb 2012 @ 4:02
Originally posted by attar:
LoadPlugin(E:\filter.dll)

perhaps should be LoadPlugin("E:\filter.dll") with the quotes.
What does 'filter.dll' do?
I changed it but still the same error :(

LoadPlugin("E:\AddGrain.dll")
AviSource("E:\movie.avi")
AddGrain (20, 0, 0)
#4 23 Feb 2012 @ 5:58
I copied movie.avi and the addgrain.dll file (from the zip) to e:\
Copied your script and opened it with Windows Media Player and VirtualDub ok.

http://avisynth.org/warpenterprises/fil...ll_20030618.zip
#5 22 Mar 2012 @ 3:54
Originally posted by ofscreen:
Originally posted by attar:
LoadPlugin(E:\filter.dll)

perhaps should be LoadPlugin("E:\filter.dll") with the quotes.
What does 'filter.dll' do?
I changed it but still the same error :(

LoadPlugin("E:\AddGrain.dll")
AviSource("E:\movie.avi")
AddGrain (20, 0, 0)
Looks like you are not doing the YV12 conversion on the source before running the plugin. That is my guess. Or you do not have AVIsynth 2.5. Those are know limitations posted in the documentation you had in the zip.

LoadPlugin("E:\AddGrain.dll")
A = AviSource("E:\movie.avi")
ConvertToYV12(A)
AddGrain (20, 0, 0)

I can't remember if you need to create the variable or not. Maybe this

LoadPlugin("E:\AddGrain.dll")
AviSource("E:\movie.avi")
ConvertToYV12()
AddGrain (20, 0, 0)

to use Virtualdub plugins later you might have to convert it back to rgb32 or 24

ConvertToRGB()
This message has been edited since its posting. Latest edit was made on 22 Mar 2012 @ 4:02
This discussion thread has been automatically closed, as it hasn't received any new posts during the last 180 days. This means that you can't post replies or new questions to this discussion thread.

If you have something to add to this topic, use this page to post your question or comments to a new discussion thread.

Subscribe to AfterDawn's weekly newsletter.