VideoHelp Forum




+ Reply to Thread
Results 1 to 7 of 7
  1. I hate to sound like a whinger but can somebody PLLLEAASE help understand how to frameserve with the vdub filters ......aarrgghhh I have been mucking around with the script for about 2 hrs I am a newbie to avisynth but have been encoding capping and what not for sometime and have tried to aviod learning avisynth but as my knowledge has progressed the need for avisynth is apparent and it seems the weapon of choice for efficient and effective encodes

    When I open or encode the generated AVS the picture is fine ...but no filter. I have tried the logo filter the unsharp filter but nothing...aarrgt HELP me

    AVS file to be framesevered looks like this

    import("C:\temp tracks\games\avisynth-1.0-beta3\vdfilters.avs")
    AVISource("C:\temp tracks\movie\maurice.avi")


    My vdfilters import script looks like this: I got this from the avisyth1.0 beta download and thought it might help...nothing happens...the setting I use should give a grainy picture with the white spacing between pixels .....

    ################################################## ###########
    # This file provides convenient Avisynth interfaces to #
    # various VirtualDub plugins. Load it in your script with: #
    # #
    # Import("vdfilters.avs") #
    ################################################## ###########

    ################################################## ######
    # Change VirtualDub_plugin_directory below to point to #
    # the directory containing your VirtualDub plugins. #
    ################################################## ######

    global VirtualDub_plugin_directory = "c:\temp tracks\games\VirtualDub-1.4.13-MPEG2-AC3"



    ################################
    # Unsharp Mask by Donald Graft #
    ################################

    function VD_UnsharpMask(clip clip, int "diameter", int "strength", int "threshold",
    \ bool "interlaced", int "mask_top", int "mask_bottom",
    \ int "mask_left", int "mask_right")
    {
    LoadVirtualdubPlugin(VirtualDub_plugin_directory+" \unsharp.vdf", "_VD_UnsharpMask", 1)
    return clip._VD_UnsharpMask(default(diameter,5), default(strength,160),
    \ default(threshold,30), default(mask_left,0), default(mask_right,0),
    \ default(mask_bottom,0), default(mask_top,0), default(interlaced,false)?1:0)
    }
    How long could we maintain? I wondered. How long until one of us starts raving and jabbering at this boy? What will he think then?

    If you like Tekno download one of my tracks
    www.users.bigpond.net.au/thefox149
    Quote Quote  
  2. I have read around and I think this is right (although it's not workin)

    File that is being frameserved

    import("C:\vdub6.avs")
    AVISource("C:\temp tracks\movie\mauricetestfile.avi")
    ConvertToRGB32()
    VD_UnsharpMask(1,5,160,30,0,0,0,0,false)
    ConvertToYUY2()

    the import file looks like this

    ################################################## ###########
    # This file provides convenient Avisynth interfaces to #
    # various VirtualDub plugins. Load it in your script with: #
    # #
    # Import("vdub_filters.avs") #
    # #
    # This file contains all the filters in the LabDV-package #
    # plus some extra filters. #
    # #
    # Version 1.5, 10-06-2002; #
    # sent remarks to w.j.dijkhof@tue.nl #
    ################################################## ###########

    ################################################## ######
    # Change VirtualDub_plugin_directory below to point to #
    # the directory containing your VirtualDub plugins. #
    ################################################## ######

    global VirtualDub_plugin_directory = "c:\temp tracks\games\VirtualDub-1.4.13-MPEG2-AC3\plugins"


    ################################
    # Unsharp Mask by Donald Graft #
    ################################

    function VD_UnsharpMask(clip clip, int "diameter", int "strength", int "threshold",
    \ bool "interlaced", int "mask_top", int "mask_bottom", int "mask_left", int "mask_right")
    {
    LoadVirtualdubPlugin(VirtualDub_plugin_directory+" \unsharp.vdf", "_VD_UnsharpMask", 1)
    return clip._VD_UnsharpMask(default(diameter,5), default(strength,160),
    \ default(threshold,30), default(mask_left,0), default(mask_right,0),
    \ default(mask_bottom,0), default(mask_top,0), default(interlaced,false)?1:0)

    It won't load i keep getting script errors......very fustrating...

    Help me
    How long could we maintain? I wondered. How long until one of us starts raving and jabbering at this boy? What will he think then?

    If you like Tekno download one of my tracks
    www.users.bigpond.net.au/thefox149
    Quote Quote  
  3. Member
    Join Date
    Sep 2002
    Location
    Australia
    Search Comp PM
    There are two problems here.

    Firstly there are too many values, you don't need the '1' at the start? you should only have (diameter, strength, threshold, top, bottom, left, right, interlace) - in your example this will be (5,160,30,0,0,0,0,false) which incidently are pretty harsh but you'll see that when you get it working.

    Secondly it's just unfortunate that you chose this particular filter to trial - there is an error in the import file.

    This part ...

    function VD_UnsharpMask(clip clip, int "diameter", int "strength", int "threshold",
    \ bool "interlaced", int "mask_top", int "mask_bottom", int "mask_left", int "mask_right")
    {
    Should read ...

    function VD_UnsharpMask(clip clip, int "diameter", int "strength", int "threshold",
    \ int "mask_top", int "mask_bottom", int "mask_left", int "mask_right", bool "interlaced")
    {
    .. for some reason the author put the interlace variable in the middle instead of at the end.

    I have tested these corrections and they work fine.
    Quote Quote  
  4. I used harsh setting for practise ..so that I could see the effect of what I was trying to do....than you so much I was going insane I will let you know how I go as my other machine is encoding at the moment and this one isn't set up for it.....
    How long could we maintain? I wondered. How long until one of us starts raving and jabbering at this boy? What will he think then?

    If you like Tekno download one of my tracks
    www.users.bigpond.net.au/thefox149
    Quote Quote  
  5. Member
    Join Date
    Feb 2001
    Location
    Berlin, Germany
    Search Comp PM
    Put your plugins into the Avisynth2\plugins subdirectory.
    Maybe it depends on the used versions, but here (Avisynth 2.08 + Unsharp 1.3) the "interlace" parameter is the 5th one.

    old = AVISource("h:\test.avi")
    new = VD_UnsharpMask( old, 5, 150, 0, false, 0, 0, 0, 0,)
    # new = compare(old, new) # optional for test purposes
    # Return StackHorizontal(old, new) # optional for test purposes
    Return new


    There is also an Avisynth plugin, that you may want to try, warpsharp.dll.

    old = AVISource("h:\test.avi")#.ConvertToYUY2
    new = UnsharpMask(old,strength=64, radius=3, threshold=10)
    # new = compare(old, new) # optional for test purposes
    # Return StackHorizontal(old, new) # optional for test purposes
    Return new

    #Description of the function
    # 1.Calculate the value that blur of luminance.
    # 2.From the subtraction of the luminance and value of "Description of
    # the function 1.", calculate ingredient of the blur.
    # 3.From coefficient(strength) and ingredient of the blur, adds to luminance.
    #Description of the value
    #strength : strength
    #radius : Range of blur process
    #threshold : threshold
    #Only the case is processed that absolute value of "ingredient of the blur" #is larger than threshold.
    Quote Quote  
  6. Check out http://nickyguides.digital-digest.com/synth-vdub.htm. It is a decent guide to using avisynth scripts.
    Quote Quote  
  7. thanks bunyip!!!! You have saved me from acquiring more grey hairs and to everybody else for helping
    How long could we maintain? I wondered. How long until one of us starts raving and jabbering at this boy? What will he think then?

    If you like Tekno download one of my tracks
    www.users.bigpond.net.au/thefox149
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!