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=2.00, ss_h=2.00, 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)
- aaed = last
- nr1 = aaed.MCTD(settings="low", radius=2, sigma=4, limit=0, limit2=0, chroma=true, twopass=false, useTTmpSm=false, GPU=false, fixband=true, pp=true, useMMask=false, protect=true, deblock=false, useQED=true, sharp=false, enhance=false)
- last = nr1
- ### prefetch: 16, 0
- ### export clip: emask, aaed
- ### ###
- SetMemoryMax(800)
- aaed16 = aaed.U16
- nr1_16 = last.U16
- nr1_16 = nr1_16.Dither_repair16(aaed16, 13, 13)
- \ .Dither_limit_dif16(aaed16, thr=1.50, elast=3.0, Y=2, U=3, V=3)
- nr1 = nr1_16.DitherPost(mode=6, ampn=0)
- noise = mt_makediff(aaed, nr1, Y=3, U=1, V=1)
- #noisel = noise.mt_lut("x 4 + 128 min x 4 - max", Y=3, U=1, V=1)
- #lmask = nr1.mt_lut("x 127 > 255 x 64 > x 2 << 512 - 0 ? ?", Y=3, U=1, V=1)
- #noisereduc = Dither_merge16_8(noise.U16, noisel.U16, lmask, luma=false, Y=3, U=1, V=1)
- noisereduc = Dither_lutxy8(noise, nr1, "y 127 > 32768 y 64 > x 128 - 512 y 4 * - * 32768 + x 256 * ? ?", Y=3, U=1, V=1).Dither_lut16("x 32832 > x 64 - x 32704 < x 64 + 32768 ? ?", Y=3, U=1, V=1)
- noisereduc = Dither_limit_dif16(noisereduc, noise.U16, thr=3.00, elast=3.0, Y=3, U=1, V=1)
- db = nr1_16.GradFun3(Smode=2, radius=14, ampn=0, thr=0.25, lsb_in=true, lsb=true, mask=0, Y=3, U=3, V=3)
- dbl = db
- dbed = dbl.Dither_add16(noisereduc, dif=true, Y=3, U=2, V=2)
- #nrmask = emask.mt_lut("x 2 <= 0 x 2 - 6 << ?", U=1, V=1).RemoveGrain(20, -1)
- ymask = emask .ConvertToY8 .mt_lut("x 3 <= 0 x 3 - 7 << ?", U=1, V=1)
- uvmask = emask.UtoY.ConvertToY8 .mt_logic(emask.VtoY.ConvertToY8, "max", Y=3, U=1, V=1)
- \ .Spline36Resize(emask.width, emask.height, 0.25)
- \ .mt_expand(U=1, V=1).mt_lut("x 4 <= 0 255 ?", U=1, V=1)
- nrmask = ymask .mt_logic(uvmask, "max", Y=3, U=1, V=1)
- \ .ConvertToYV12.Removegrain(22, -1).Removegrain(11, -1).RemoveGrain(20, -1)
- Dither_merge16_8(dbed, aaed16, nrmask, luma=true, Y=3, U=3, V=3)
- #SeparateResize16(1280, 720, ChromaPara="a1=0.5, a2=0.5")
- Down10(stack=false)
- #""")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement