Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #MP_Pipeline("""
- ### platform: win32
- src="S:\1\[BDMV][120307]Fate/Zero Blu-ray Disc BOX Ⅰ\Fate/Zero Blu-ray Disc BOX Ⅰ Disc1+特典CD\BDROM\BDMV\STREAM\00000.m2ts"
- FFIndex(src, demuxer="lavf")
- FFVideoSource(src, seekmode=-1, threads=1)
- #DSS2(src)
- emask = last.tcanny(sigma=2.00, mode=1, plane=7)
- ### prefetch: 64, 32
- ### export clip: emask
- ### ###
- ### platform: win32
- SetMemoryMax(1000)
- src = last
- aacs = src.CSmod(chroma=false, Smode=3, Smethod=1, strength=100, preblur=0, thr=0, Soothe=-1, Tlimit=false, ss_w=1.75, ss_h=1.75, Repmode=13, filter_ss="SangNom(aa=48).TurnRight().SangNom(aa=48).TurnLeft()")
- aamask = emask.mt_lut("x 48 <= 0 x 48 - 3 << ?", U=1, V=1).RemoveGrain(20, -1).mt_inflate(U=1, V=1)
- aaed = mt_merge(src, aacs, aamask, luma=false, Y=3, U=2, V=2)
- last = aaed
- ### prefetch: 32, 16
- ### export clip: emask
- ### ###
- ### platform: win32
- SetMemoryMax(2000)
- sigma = 4.0
- aaed = last
- prenr = aaed.FFT3DFilter(sigma=sigma*0.8,sigma2=sigma*0.6,sigma3=sigma*0.4,sigma4=sigma*0.2,bw=16,bh=16,ow=8,oh=8,plane=4,bt=1,ncpu=1)
- nr16 = aaed.SMDegrain(lsb_in=false,lsb=true,lsb_out=true,tr=2,Contrasharp=false,RefineMotion=true,plane=4,prefilter=prenr,
- \thSAD=300,thSADC=150,blksize=16,thSCD1=200,thSCD2=100,Truemotion=false,Chroma=true,limit=4,limitC=3)
- last = nr16
- ### prefetch: 16, 0
- ### export clip: emask, aaed
- ### ###
- SetMemoryMax(800)
- nr16 = last
- aaed16 = aaed.U16
- nr16 = nr16.Dither_repair16(aaed16, 13, 13)
- noise = Dither_makediff16(aaed16, nr16, Y=3, U=1, V=1)
- limitd = "64"
- limitb = "1024"
- noised = noise#.Dither_lut16("x 32768 " + limitd + " + > x " + limitd + " - x 32768 " + limitd + " - < x " + limitd + " + 32768 ? ?", Y=3, U=1, V=1)
- noiseb = noise.Dither_gen_null_diff#.Dither_lut16("x 32768 " + limitb + " + > x " + limitb + " - x 32768 " + limitb + " - < x " + limitb + " + 32768 ? ?", Y=3, U=1, V=1)
- lmask = aaed.mt_lut("x 95 > 255 x 64 > x 3 << 512 - 0 ? ?", Y=3, U=1, V=1).RemoveGrain(20, -1)
- noisereduc = Dither_merge16_8(noised, noiseb, lmask, luma=false, Y=3, U=1, V=1)
- db = nr16.f3kdb(range=14, Y=28, Cb=28, Cr=28, grainY=0, grainC=0, input_mode=1, output_mode=1)
- dbl = db.Dither_limit_dif16(nr16, thr=0.20, elast=2.5, Y=3, U=3, V=3)
- dbed = dbl.Dither_add16(noisereduc, dif=true, Y=3, U=2, V=2)
- ymask = emask.ConvertToY8 .mt_lutxy(aaed, "x 3 <= 0 y 130 > x 3 - 4 << y 64 > x 3 - 1148 * y 59.5 - / 255 ? ? ?", U=1, V=1)
- uvmask = emask.UtoY8 .mt_logic(emask.VtoY8, "max", Y=3, U=1, V=1)
- \ .Spline36Resize(emask.width, emask.height, 0.25)
- \ .mt_expand(U=1, V=1).mt_lut("x 6 <= 0 255 ?", U=1, V=1)
- ymask = ymask .mt_logic(uvmask, "max", Y=3, U=1, V=1)
- \ .ConvertToYV12.Removegrain(22, -1).Removegrain(11, -1).RemoveGrain(20, -1)
- uvmask = ymask.mt_inpand(U=1, V=1).ConvertToY8.Spline36Resize(emask.width/2, emask.height/2, -0.5)
- nrmask = YtoUV(uvmask, uvmask, ymask)
- Dither_merge16_8(dbed, aaed16, nrmask, luma=false, Y=3, U=3, V=3)
- #SeparateResize16(1280, 720, ChromaPara="a1=0.5, a2=0.5")
- Down10(stack=false, dither=-2)
- #""")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement