Avisynth Filter on Virtualdub Error

Discussion in 'Blu-ray' started by ofscreen, Feb 21, 2012.

  1. ofscreen

    ofscreen Member

    Joined:
    Feb 9, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    11
    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
     
  2. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,147
    Likes Received:
    41
    Trophy Points:
    128
    LoadPlugin(E:\filter.dll)

    perhaps should be LoadPlugin("E:\filter.dll") with the quotes.
    What does 'filter.dll' do?
     
  3. ofscreen

    ofscreen Member

    Joined:
    Feb 9, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    11
    I changed it but still the same error :(

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

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,147
    Likes Received:
    41
    Trophy Points:
    128
  5. stdlbw18

    stdlbw18 Member

    Joined:
    Jun 1, 2008
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    11
    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()
     
    Last edited: Mar 22, 2012

Share This Page