max-holz
10th December 2005, 11:30
Here is my script:
LoadPlugin("C:\Programmi\x264\DGDecode.dll")
LoadPlugin("C:\Programmi\x264\plugins\Undot.dll")
LoadPlugin("C:\Programmi\x264\plugins\Deen.dll")
LoadPlugin("C:\Programmi\x264\plugins\fft3dfilter.dll")
LoadPlugin("C:\Programmi\x264\plugins\DctFilter.dll")
LoadPlugin("C:\Programmi\x264\plugins\ColorMatrix.dll")
Import("C:\Programmi\x264\QMF_bistecc.avs")
Import("C:\Programmi\x264\HQDering-v0.1.avs")
Import("C:\Programmi\x264\LRemoveDust2.avs")
mpeg2source("C:\Scambio\Elaborazione Video\Bestia\Bestia.d2v")
crop(2,14,-2,-14)
function Filter_Motion_Nil(clip c)
{
c = UnDot(c)
c = FFT3DFilter(c,Sigma=2.3,bw=32,bh=32,bt=4,ow=16,oh=16)
c = LanczosResize(c,640,352)
c = HQDering(c)
Return c
}
function Filter_Motion_Min(clip c)
{
c = UnDot(c)
c = FFT3DFilter(c,Sigma=2.4,bw=32,bh=32,bt=4,ow=16,oh=16)
c = BicubicResize(c,640,352,0,0.75)
c = HQDering(c)
Return c
}
function Filter_Motion_Mid(clip c)
{
c = Undot(c)
c = FFT3DFilter(c,Sigma=2.5,bw=32,bh=32,bt=3,ow=16,oh=16)
c = BicubicResize(c,640,352,0,0.5)
c = DctFilter(c,1,1,1,1,1,1,.5,0)
Return c
}
function Filter_Motion_High(clip c)
{
c = Undot(c)
c = Deen(c,"c3d",0,7,8,3)
c = BicubicResize(c,640,352,0.333,0.333)
c = LRemoveDust_YV12(c,17,2)
c = DctFilter(c,1,1,1,1,1,1,.5,0)
Return c
}
function Filter_Motion_Very_High(clip c)
{
c = UnDot(c)
c = Deen(c,"c3d",0,8,9,3)
c = BilinearResize(c,640,352)
c = LRemoveDust_YV12(c,17,2)
c = DctFilter(c,1,1,1,1,1,1,.5,0)
Return c
}
QMF(2,5,7,12,7,debug=false).ColorMatrix()
When I try to do a preview with AVSEdit I get this error:
Script error: there is no function named "EdgeMask"
and this is the script I have downloaded:
######
##
## HQDering v0.1 by mf
##
## Applies derining by using a smart smoother near edges (where ringing occurs) only.
##
## Usage: Import("HQDering-v0.1.avs")
## HQDering()
##
####
function HQDering(clip input, int "strength", int "overall", string "smoother", string "params") {
strength = Default(strength, 255)# strength, 0-255
overall = Default(overall, 0)# overall smoothing, 0-255
smoother = Default(smoother, "Deen")# filter that smooths
#params = default defined below# filter parameters - use Chr(34) for quotes
defaultnull = Default(params, "")
defaultdeen = Default(params, Chr(34)+"a3d"+Chr(34)+", 4, 15, 15, 20")
params = (smoother=="Deen") ? defaultdeen : defaultnull
try {
smoothedwparams = Eval(smoother + "(input, " + params + ")")
}
catch(err_msg) {
smoothedwoparams = Eval(smoother + "(input)")
}
smoothed = (params=="") ? smoothedwoparams : smoothedwparams
input.EdgeMask(3, 255, 255, 255, "sobel", Y=3, V=1, U=1)
normalmask = last
normalmask.Levels(0, 3.3, 90, 0, 255).Blur(1.0)
amplifiedmask = last
normalmask.Inflate().Inflate().Inflate().Levels(0, 3.3, 90, 0, 255).Blur(1.0).Inflate().Inflate().Inflate().Levels(0, 3.3, 255, 0, 255).Inflate().Inflate()
thickmask = last
YV12Layer(amplifiedmask.Invert(), thickmask, "mul", 255, chroma=false, Y=3, V=1, U=1)
Levels(60, 3.0, 140, overall, strength)
ringingmask = last
MaskedMerge(input, smoothed, ringingmask)
}
Where can I found this function?
LoadPlugin("C:\Programmi\x264\DGDecode.dll")
LoadPlugin("C:\Programmi\x264\plugins\Undot.dll")
LoadPlugin("C:\Programmi\x264\plugins\Deen.dll")
LoadPlugin("C:\Programmi\x264\plugins\fft3dfilter.dll")
LoadPlugin("C:\Programmi\x264\plugins\DctFilter.dll")
LoadPlugin("C:\Programmi\x264\plugins\ColorMatrix.dll")
Import("C:\Programmi\x264\QMF_bistecc.avs")
Import("C:\Programmi\x264\HQDering-v0.1.avs")
Import("C:\Programmi\x264\LRemoveDust2.avs")
mpeg2source("C:\Scambio\Elaborazione Video\Bestia\Bestia.d2v")
crop(2,14,-2,-14)
function Filter_Motion_Nil(clip c)
{
c = UnDot(c)
c = FFT3DFilter(c,Sigma=2.3,bw=32,bh=32,bt=4,ow=16,oh=16)
c = LanczosResize(c,640,352)
c = HQDering(c)
Return c
}
function Filter_Motion_Min(clip c)
{
c = UnDot(c)
c = FFT3DFilter(c,Sigma=2.4,bw=32,bh=32,bt=4,ow=16,oh=16)
c = BicubicResize(c,640,352,0,0.75)
c = HQDering(c)
Return c
}
function Filter_Motion_Mid(clip c)
{
c = Undot(c)
c = FFT3DFilter(c,Sigma=2.5,bw=32,bh=32,bt=3,ow=16,oh=16)
c = BicubicResize(c,640,352,0,0.5)
c = DctFilter(c,1,1,1,1,1,1,.5,0)
Return c
}
function Filter_Motion_High(clip c)
{
c = Undot(c)
c = Deen(c,"c3d",0,7,8,3)
c = BicubicResize(c,640,352,0.333,0.333)
c = LRemoveDust_YV12(c,17,2)
c = DctFilter(c,1,1,1,1,1,1,.5,0)
Return c
}
function Filter_Motion_Very_High(clip c)
{
c = UnDot(c)
c = Deen(c,"c3d",0,8,9,3)
c = BilinearResize(c,640,352)
c = LRemoveDust_YV12(c,17,2)
c = DctFilter(c,1,1,1,1,1,1,.5,0)
Return c
}
QMF(2,5,7,12,7,debug=false).ColorMatrix()
When I try to do a preview with AVSEdit I get this error:
Script error: there is no function named "EdgeMask"
and this is the script I have downloaded:
######
##
## HQDering v0.1 by mf
##
## Applies derining by using a smart smoother near edges (where ringing occurs) only.
##
## Usage: Import("HQDering-v0.1.avs")
## HQDering()
##
####
function HQDering(clip input, int "strength", int "overall", string "smoother", string "params") {
strength = Default(strength, 255)# strength, 0-255
overall = Default(overall, 0)# overall smoothing, 0-255
smoother = Default(smoother, "Deen")# filter that smooths
#params = default defined below# filter parameters - use Chr(34) for quotes
defaultnull = Default(params, "")
defaultdeen = Default(params, Chr(34)+"a3d"+Chr(34)+", 4, 15, 15, 20")
params = (smoother=="Deen") ? defaultdeen : defaultnull
try {
smoothedwparams = Eval(smoother + "(input, " + params + ")")
}
catch(err_msg) {
smoothedwoparams = Eval(smoother + "(input)")
}
smoothed = (params=="") ? smoothedwoparams : smoothedwparams
input.EdgeMask(3, 255, 255, 255, "sobel", Y=3, V=1, U=1)
normalmask = last
normalmask.Levels(0, 3.3, 90, 0, 255).Blur(1.0)
amplifiedmask = last
normalmask.Inflate().Inflate().Inflate().Levels(0, 3.3, 90, 0, 255).Blur(1.0).Inflate().Inflate().Inflate().Levels(0, 3.3, 255, 0, 255).Inflate().Inflate()
thickmask = last
YV12Layer(amplifiedmask.Invert(), thickmask, "mul", 255, chroma=false, Y=3, V=1, U=1)
Levels(60, 3.0, 140, overall, strength)
ringingmask = last
MaskedMerge(input, smoothed, ringingmask)
}
Where can I found this function?