Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #MP_Pipeline("""
- ### platform: win32
- src = "S:\11\[BDMV][120629] 氷菓 限定版 第1巻\KAXA_5001\BDMV\STREAM\00000.m2ts"
- FFIndex(src, demuxer="lavf")
- FFVideoSource(src, seekmode=-1, threads=1)
- #DSS2(src)
- #AVCSource("S:\11\[BDMV][120629] 氷菓 限定版 第1巻\KAXA_5001\BDMV\STREAM\00000.dga")
- emask = last.tcanny(sigma=1.75, mode=1, plane=7)
- ### prefetch: 32, 16
- ### export clip: emask
- ### ###
- ### platform: win32
- SetMemoryMax(1280)
- src = last
- aacs = src.CSmod(chroma=false, Smode=2, Smethod=1, strength=150, preblur=1, 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_lutxy(src.mt_inpand(mode=mt_square(1)), "y 96 < x 48 <= 0 x 48 - 3 << ? x 96 <= 0 x 96 - 3 << ? ?", U=1, V=1).RemoveGrain(11, -1)
- aaed8 = mt_merge(src, aacs, aamask, luma=false, U=2, V=2)
- aaed16 = aaed8.U16
- nr2 = aaed16.Dither_resize16(Round(aaed8.width*1.5/16)*16, Round(aaed8.height*1.5/16)*16, kernel="Spline64", Y=1, U=3, V=3)
- \ .dfttest(Y=false, U=true, V=true, sigma=2.0, sigma2=2.0, sbsize=8, sosize=6, tbsize=3, lsb=true, lsb_in=true)
- \ .Dither_resize16(aaed8.width, aaed8.height, kernel="Spline36", Y=1, U=3, V=3)
- aaed8
- ### prefetch: 16, 8
- ### export clip: aaed16, emask, nr2
- ### ###
- ### platform: win32
- SetMemoryMax(1024)
- aaed8 = last
- nr1 = aaed8.MCTD(settings="low", radius=3, sigma=4, limit=0, limit2=0, chroma=false, twopass=false, useTTmpSm=false, GPU=false, fixband=true,
- \ pp=true, useMMask=true, protect=true, deblock=false, useQED=true, sharp=false, stabilize=false, enhance=false)
- nr1.U16.MergeChroma(nr2.Repair16(aaed16, -1, 1, lsb_in=true)).Dither_limit_dif16 (aaed16, thr=1.00, elast=3.0, Y=3, U=3, V=3)
- ### prefetch: 8, 0
- ### export clip: aaed16, emask, nr1
- ### ###
- SetMemoryMax(768)
- nr16 = last
- db = nr16.f3kdb(range=16, Y=44, Cb=36, Cr=36, grainY=0, grainC=0, input_mode=1, output_mode=1)
- dbl = db.Dither_limit_dif16 (nr16, thr=0.40, elast=3.0, Y=3, U=3, V=3)
- dmask = nr1.Dither_build_gf3_range_mask(3).mt_lutxy(nr1, "x 1 > x 1 - 415 y 2 << - * 0 ?", Y=3, U=1, V=1)
- emask = emask.mt_expand(Y=3, U=3, V=3)
- dbmask = emask.ConvertToY8 .mt_logic(emask.UtoY.ConvertToY8.Spline36Resize(emask.width, emask.height, 0.25), "max", Y=3, U=1, V=1)
- \ .mt_logic(emask.VtoY.ConvertToY8.Spline36Resize(emask.width, emask.height, 0.25), "max", Y=3, U=1, V=1)
- \ .ConvertToYV12.mt_lutxy(nr1, "x 2 > x 2 - 305.66666666666666666666666666667 y 1.2666666666666666666666666666667 * - * 0 ?", Y=3, U=1, V=1).mt_inpand(Y=3, U=1, V=1)
- \ .mt_logic(dmask, "max", Y=3, U=1, V=1)
- \ .Removegrain(22, -1).Removegrain(11, -1)
- Dither_merge16_8(dbl, aaed16, dbmask, luma=true, Y=3, U=3, V=3)
- #降为720p输出去掉#
- #SeparateReszie16(1280, 720, ChromaR="Spline36")
- GrainFL(g1str=0, g2str=4, g3str=0, g1shrp=80, g2shrp=80, g3shrp=80, g1size=1.20, g2size=1.20, g3size=1.20, g1soft=2, g2soft=2, g3soft=2, th1=16, th2=24, th3=64, th4=96, lsb_in=true, lsb=true)
- #设置输出位深
- output_depth = 10
- output_depth == 8 ? DitherPost(mode=6) : Down10(output_depth, stack=false)
- #""")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement