asarian
28th October 2011, 19:37
I'm trying to merge two sources: one denoised with MCTemporalDenoise, the other just a background image (see code below). Without MCTemporalDenoise this works just fine, but with it I'm getting the following error:
Script error: Invalid arguments to function "MCTemporalDenoise"
(f:\jobs\shania2.avs, line 11)
I tried changing the offending line to:
MCTemporalDenoise(fore, settings="medium", stabilize=true)
But then MCTemporalDenoise simply doesn't do anything. So, what is the correct syntax to make this work?
Thanks.
SetMemoryMax(768)
SetMTMode(5,4)
fore = FFVideoSource("F:\jobs\shania.mkv")
SetMTMode(3)
fore = Crop(fore, 8, 0, -8, 0)
fore = MCTemporalDenoise(settings="medium", stabilize=true)
fore = Lanczos4Resize(fore, 1584, 1080)
fore = GradFun2DBmod(fore, thr=1.6,thrC=1.0,mode=0,str=1.8,strC=0.0,temp=50,adapt=64,mask=false,show=false)
back = ImageSource("F:\jobs\shania_template.jpg", 1, Framecount(fore))
Overlay(back, fore, x=213, y=0)
AssumeFPS(fore)
Script error: Invalid arguments to function "MCTemporalDenoise"
(f:\jobs\shania2.avs, line 11)
I tried changing the offending line to:
MCTemporalDenoise(fore, settings="medium", stabilize=true)
But then MCTemporalDenoise simply doesn't do anything. So, what is the correct syntax to make this work?
Thanks.
SetMemoryMax(768)
SetMTMode(5,4)
fore = FFVideoSource("F:\jobs\shania.mkv")
SetMTMode(3)
fore = Crop(fore, 8, 0, -8, 0)
fore = MCTemporalDenoise(settings="medium", stabilize=true)
fore = Lanczos4Resize(fore, 1584, 1080)
fore = GradFun2DBmod(fore, thr=1.6,thrC=1.0,mode=0,str=1.8,strC=0.0,temp=50,adapt=64,mask=false,show=false)
back = ImageSource("F:\jobs\shania_template.jpg", 1, Framecount(fore))
Overlay(back, fore, x=213, y=0)
AssumeFPS(fore)