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
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)
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/files/addgrain_25_dll_20030618.zip
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()