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?
+ Reply to Thread
Results 1 to 8 of 8
-
Last edited by killerteengohan; 12th Feb 2017 at 15:41.
-
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.
-
Last edited by raffriff42; 12th Feb 2017 at 18:19.
-
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 -
Thanks! I'll tamper with it a bit.
Last edited by killerteengohan; 17th Feb 2017 at 23:53.
-
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. -
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. -
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.
Similar Threads
-
what are transform filters and source filters?
By Mohammad48 in forum Software PlayingReplies: 4Last Post: 31st Jul 2015, 03:40 -
Problem with XVID4PSP filters
By ratskie in forum Video ConversionReplies: 9Last Post: 24th Mar 2014, 16:59 -
Help: Applying Avisynth Filters to Certain Frames and to All Frames
By DarkSamus993 in forum EditingReplies: 4Last Post: 27th Dec 2013, 13:24 -
Problem with VDub and LD comb filters/NR
By SegaSonic91 in forum Capturing and VCRReplies: 7Last Post: 10th Jun 2013, 16:19 -
Haali Media Splitter, LAV Filters, AV Splitter...How do these filters work?
By Moontrash in forum Software PlayingReplies: 3Last Post: 25th Feb 2012, 18:00