VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. I am trying to do something I did a long time ago. I want to apply different filters for different areas of the video. I am having a problem with it this time though.

    The old source I did this to, I did not use hqdering(smoother=deen("c3d",1,9,2,2)) in it. I want to use it for minor halo removal this time but I keep getting this error.

    " Invalid arguments to function "deen" "




    This is the script I'm trying.


    LoadPlugin("C:\Program Files (x86)\MeGui\tools\dgindex\DGDecode.dll")
    LoadPlugin("C:\Program Files (x86)\MeGui\tools\avisynth_plugin\ColorMatrix.dll" )

    source=DGDecode_mpeg2source("C:\Users\User\Desktop \Encoding\ID OVA\Ep1\VTS_11_1.d2v", info=3).ColorMatrix(hints=true, threads=0).crop( 4, 2, -4, -2).LanczosResize(640,480) # Lanczos (Sharp)

    clip1=Trim(source, 0, 20593).hqdering(smoother=deen("c3d",1,9,2,2)).maa2 ().blur(0.092)

    clip2=Trim(source, 20594, 22728).QTGMC(preset="slow", fpsdivisor=2, sourcematch=3).hqdering(smoother=deen("c3d",1,9,2, 2)).maa2().blur(0.092)

    clip3=Trim(source, 22729, 0).hqdering(smoother=deen("c3d",1,9,2,2)).maa2().b lur(0.092)

    Return clip1 + clip2 + clip3




    Now when I try it like this, I don't get any error, but none of the filters at the bottom are having any effect at all.


    LoadPlugin("C:\Program Files (x86)\MeGui\tools\dgindex\DGDecode.dll")
    LoadPlugin("C:\Program Files (x86)\MeGui\tools\avisynth_plugin\ColorMatrix.dll" )

    source=DGDecode_mpeg2source("C:\Users\User\Desktop \Encoding\ID OVA\Ep1\VTS_11_1.d2v", info=3).ColorMatrix(hints=true, threads=0).crop( 4, 2, -4, -2).LanczosResize(640,480) # Lanczos (Sharp)

    clip1=Trim(source, 0, 20593)

    clip2=Trim(source, 20594, 22728).QTGMC(preset="slow", fpsdivisor=2, sourcematch=3)

    clip3=Trim(source, 22729, 0)

    Return clip1 + clip2 + clip3

    hqdering(smoother=deen("c3d",1,9,2,2))
    maa2()
    blur(0.092)




    I don't have any problem using deen, or using hqdering on the entire thing and not using the clip parts of the script.

    It works fine like this but then I cant use different filters on different frames.


    crop( 4, 2, -4, -2)
    LanczosResize(640,480) # Lanczos (Sharp)
    hqdering(smoother=deen("c3d",1,9,2,2))
    maa2()
    blur(0.092)



    Any suggestions on what the issue here is?
    Last edited by killerteengohan; 12th Feb 2017 at 15:41.
    Quote Quote  
  2. If I use hqdering() with no extra parameters in the clip1, clip2, and clip3 lines it seems to work okay so far. but I still get the " Invalid arguments to function "deen" " when I try to add any custom parameters to it.


    EDIT: It is also working if I put it in the source= line of the script right after the resizer, but I still get the " Invalid arguments to function "deen" " when I try to add any custom parameters to it.
    Last edited by killerteengohan; 12th Feb 2017 at 15:44.
    Quote Quote  
  3. 1) "Deen" has no source clip, since default clip "Last" is empty.
    2) Early "return" statement bypasses the lines below it.
    Some suggested changes below in color:
    Originally Posted by killerteengohan View Post
    "Invalid arguments to function 'deen'"

    This is the script I'm trying.
    Code:
    LoadPlugin("C:\Program Files (x86)\MeGui\tools\dgindex\DGDecode.dll")
    LoadPlugin("C:\Program Files (x86)\MeGui\tools\avisynth_plugin\ColorMatrix.dll")
    
    source=DGDecode_mpeg2source("C:\Users\User\Desktop\Encoding\ID OVA\Ep1\VTS_11_1.d2v", info=3).ColorMatrix(hints=true, threads=0).crop( 4, 2, -4, -2).LanczosResize(640,480) # Lanczos (Sharp)
    
    clip1=Trim(source, 0, 20593)
    clip1=clip1.hqdering(smoother=clip1.deen("c3d",1,9,2,2)).maa2().blur(0.092)
    
    clip2=Trim(source, 20594, 22728)
    clip2=clip2.QTGMC(preset="slow", fpsdivisor=2, sourcematch=3).hqdering(smoother=clip2.deen("c3d",1,9,2,2)).maa2().blur(0.092)
    
    clip3=Trim(source, 22729, 0)
    clip3=clip3.hqdering(smoother=clip3.deen("c3d",1,9,2,2)).maa2().blur(0.092)
    
    Return clip1 + clip2 + clip3
    Now when I try it like this, I don't get any error, but none of the filters at the bottom are having any effect at all.
    Code:
    LoadPlugin("C:\Program Files (x86)\MeGui\tools\dgindex\DGDecode.dll")
    LoadPlugin("C:\Program Files (x86)\MeGui\tools\avisynth_plugin\ColorMatrix.dll")
    
    source=DGDecode_mpeg2source("C:\Users\User\Desktop\Encoding\ID OVA\Ep1\VTS_11_1.d2v", info=3).ColorMatrix(hints=true, threads=0).crop( 4, 2, -4, -2).LanczosResize(640,480) # Lanczos (Sharp)
    
    clip1=Trim(source, 0, 20593)
    
    clip2=Trim(source, 20594, 22728).QTGMC(preset="slow", fpsdivisor=2, sourcematch=3)
    
    clip3=Trim(source, 22729, 0)
    
    #Return clip1 + clip2 + clip3 --> script exits here
    
    clip1 + clip2 + clip3 
    hqdering(smoother=deen("c3d",1,9,2,2))
    maa2()
    blur(0.092)
    return Last
    EDIT Missed a couple deen's, fixed. Also, the deen source must be Trim'ed the same as the main clip.
    Last edited by raffriff42; 12th Feb 2017 at 18:19.
    Quote Quote  
  4. When I enter it like you suggested, hqdering works with parameters in it now, but everything gets all garbled up and ruined.


    LoadPlugin("C:\Program Files (x86)\MeGui\tools\dgindex\DGDecode.dll")
    LoadPlugin("C:\Program Files (x86)\MeGui\tools\avisynth_plugin\ColorMatrix.dll" )

    source=DGDecode_mpeg2source("C:\Users\User\Desktop \Encoding\ID OVA\Ep1\VTS_11_1.d2v", info=3).ColorMatrix(hints=true, threads=0).crop( 4, 2, -4, -2).LanczosResize(640,480) # Lanczos (Sharp)

    clip1=Trim(source, 0, 20593)
    clip1=clip1.hqdering(smoother=clip1.deen("c3d",1,9 ,2,2)).maa2().blur(0.092)

    clip2=Trim(source, 20594, 22728)
    clip2=clip2.QTGMC(preset="slow", fpsdivisor=2, sourcematch=3).hqdering(smoother=clip2.deen("c3d", 1,9,2,2)).maa2().blur(0.092)

    clip3=Trim(source, 22729, 0)
    clip3=clip3.hqdering(smoother=clip3.deen("c3d",1,9 ,2,2)).maa2().blur(0.092)

    Return clip1 + clip2 + clip3
    Quote Quote  
  5. Thanks! I'll tamper with it a bit.
    Last edited by killerteengohan; 17th Feb 2017 at 23:53.
    Quote Quote  
  6. Thanks for the suggestions. I figured it out for the most part.


    I just gave clip3=clip3.hqdering(smoother=clip3.deen("c3d",1,9 ,2,2)) its own line and moved .maa2().blur(0.092) right after the trim like so.


    clip1=Trim(source, 0, 20593).maa2().blur(0.092)
    clip1=clip1.hqdering(smoother=clip1.deen("c3d",1,9 ,2,2))

    clip2=Trim(source, 20594, 22728).QTGMC(preset="slow", fpsdivisor=2, sourcematch=3).maa2().blur(0.092)
    clip2=clip2.hqdering(smoother=clip2.deen("c3d", 1,9,2,2))

    clip3=Trim(source, 22729, 0).maa2().blur(0.092)
    clip3=clip3.hqdering(smoother=clip3.deen("c3d",1,9 ,2,2))



    The only problem I am having now is that no matter what I try, it will not let me use hqdering() at all in clip 1. I get a cache error.
    Quote Quote  
  7. Member
    Join Date
    Sep 2012
    Location
    Australia
    Search Comp PM
    To match the first script you'd need

    hqdering(smoother=deen(source,"c3d",1,9,2,2))

    The script in post 4 works fine for me using DGDecodeIM instead of MPEG2Source.
    Quote Quote  
  8. Member
    Join Date
    Sep 2012
    Location
    Australia
    Search Comp PM
    To match the first script you'd need

    hqdering(smoother=deen(source,"c3d",1,9,2,2))

    The script in post 4 works fine for me using DGDecodeIM instead of MPEG2Source.
    Quote Quote  



Similar Threads

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