Code: Select all
LoadPlugin("D:/COC/Applications/AVS PLugins/VSFilter.dll")
LoadPlugin("D:/COC/Applications/AVS PLugins/aWarpSharp.dll")
LoadPlugin("D:/COC/Applications/AVS PLugins/Deen.dll")
LoadPlugin("D:/COC/Applications/AVS PLugins/UnDot.dll")
LoadPlugin("D:/COC/Applications/AVS PLugins/SmoothHiQ.dll")
Import("D:/COC/Applications/AVS PLugins/FastLineDarken.avsi")
LoadPlugin("D:/COC/Applications/AVS PLugins/TDeint.dll")
AviSource("D:/COC/InK/Itazura na Kiss 02.avi")
tweak(hue=-8,sat=1.6,bright=0.7,cont=1)
ConvertToYUY2().SmoothHiQ(5,40,23,162)
ConvertToRGB().RGBAdjust(0.8, 0.8, 0.8, 2).ConvertToYV12()
UnDot()
deen ("a3d",3,3,5,4)
Limiter(16, 235, 16, 240)
Levels(0, 1, 255, 0, 255)
#dehalo geht nicht anders als so ...
TDeint(type=2)
function DeHalo_alpha(clip clp, float "rx", float "ry", float "darkstr", float "brightstr", float "lowsens", float "highsens", float "ss")
{
rx = default( rx, 2.0 )
ry = default( ry, 2.0 )
darkstr = default( darkstr, 1.0 )
brightstr = default( brightstr, 1.0 )
lowsens = default( lowsens, 50 )
highsens = default( highsens, 50 )
ss = default( ss, 1.5 )
LOS = string(lowsens)
HIS = string(highsens/100.0)
DRK = string(darkstr)
BRT = string(brightstr)
ox = clp.width()
oy = clp.height()
uv = 1
uv2 = (uv==3) ? 3 : 2
halos = clp.bicubicresize(m4(ox/rx),m4(oy/ry)).bicubicresize(ox,oy,1,0)
are = mt_lutxy(clp.mt_expand(U=uv,V=uv),clp.mt_inpand(U=uv,V=uv),"x y -","x y -","x y -",U=uv,V=uv)
ugly = mt_lutxy(halos.mt_expand(U=uv,V=uv),halos.mt_inpand(U=uv,V=uv),"x y -","x y -","x y -",U=uv,V=uv)
so = mt_lutxy( ugly, are, "y x - y 0.001 + / 255 * "+LOS+" - y 256 + 512 / "+HIS+" + *" )
lets = mt_merge(halos,clp,so,U=uv,V=uv)
remove = (ss==1.0) ? clp.repair(lets,1,0)
\ : clp.lanczosresize(m4(ox*ss),m4(oy*ss))
\ .mt_logic(lets.mt_expand(U=uv,V=uv).bicubicresize(m4(ox*ss),m4(oy*ss)),"min",U=uv2,V=uv2)
\ .mt_logic(lets.mt_inpand(U=uv,V=uv).bicubicresize(m4(ox*ss),m4(oy*ss)),"max",U=uv2,V=uv2)
\ .lanczosresize(ox,oy)
them = mt_lutxy(clp,remove,"x y < x x y - "+DRK+" * - x x y - "+BRT+" * - ?",U=2,V=2)
return( them )
}
function m4(float x) {return(x<16?16:int(round(x/4.0)*4))}
#fastlindarken geht nicht anders als so ...
function FastLineDarken( clip c, int "strength", int "luma_cap", int "threshold", int "thinning") {
str = string(default(strength, 80) /128.)
lum = string(default(luma_cap, 198))
thr = string(default(threshold, 7))
thinning = default(thinning,30)
thn = string(thinning /11.)
exin=c.mt_Expand().mt_Inpand()
diff = mt_LutXY(c,exin,yexpr="y "+lum+" < y "+lum+" ? x "+thr+" + > x y "\
+lum+" < y "+lum+" ? - 0 ? 127 +",uexpr="x",vexpr="x")
linemask = mt_Lut(diff.mt_Inpand(),"x 127 - "+thn+" * 255 +")\
.RemoveGrain(20,0)
thick = mt_LutXY(c, exin, yexpr="y "+lum+" < y "+lum+" ? x "+thr+" + > x y "\
+lum+" < y "+lum+" ? - 0 ? "+str+" * x +",uexpr="x",vexpr="x")
thin = mt_LutXY(c.mt_Expand(),diff,yexpr="x y 127 - "+str+" 1 + * +")
return (thinning == 0) ? thick : mt_merge(thin,thick,linemask,y=3,u=2,v=2)
}
awarpsharp(8,4).coloryuv(gain_u=2,gain_v=1,gamma_u=3,autogain = false).ConvertToYV12()
Lanczos4Resize(704,396)
Ist total winzig das Script aber es hat schon was gebracht.
Ach ja, das ist nicht das Script was ich zum Encode der InK Folge benutz hab.