Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #MP_Pipeline("""
- ### platform: win32
- SetMemoryMax(300)
- src="I:\11\[BDMV][120307]Fate/Zero Blu-ray Disc BOX Ⅰ\Fate/Zero Blu-ray Disc BOX Ⅰ Disc1+特典CD\BDROM\BDMV\STREAM\00001.m2ts"
- FFIndex(src, demuxer="lavf")
- FFVideoSource(src, seekmode=-1, threads=1)
- #DSS2(src)
- #AVCSource("I:\11\[BDMV][120307]Fate/Zero Blu-ray Disc BOX Ⅰ\Fate/Zero Blu-ray Disc BOX Ⅰ Disc1+特典CD\BDROM\BDMV\STREAM\00001.dga")
- src = last
- emask = src.tcanny(sigma=1.2, mode=1, plane=1)
- ### prefetch: 32, 16
- ### export clip: emask
- ### ###
- ### platform: win32
- SetMemoryMax(400)
- src = last
- aacs = src.CSmod(chroma=false, Smode=1, Smethod=1, strength=100, preblur=1, thr=0, 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: 16, 8
- ### export clip: emask
- ### ###
- SetMemoryMax(2400)
- aaed = last
- nr1 = aaed.MCTD(settings="low", radius=2, sigma=4, limit=-1, limit2=0, chroma=false, twopass=false, useTTmpSm=true, GPU=false, fixband=true, pp=true, useMMask=false, protect=true, deblock=false, useQED=true, sharp=false, enhance=false)
- nr1 = nr1.Repair(aaed, 1, 0)
- nr1 = nr1.CSmod(aaed, chroma=false, Smode=2, Smethod=3, strength=200, preblur=0, thr=0, Tlimit=false, ss_w=1.00, ss_h=1.00, Repmode=1)
- noise = mt_makediff(aaed, nr1, 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)
- nrmask = emask.mt_lut("x 4 <= 0 x 4 - 3 << ?", U=1, V=1).RemoveGrain(20, -1)#.mt_deflate(U=1, V=1)
- aaed16 = aaed.U16
- nr1_16 = nr1.U16
- nr2_16 = aaed16.Dither_resize16(Round(aaed.width*1.6/16)*16, Round(aaed.height*1.6/16)*16, kernel="Spline64", Y=1, U=3, V=3).dfttest(Y=false, U=true, V=true, sigma=8.0, sigma2=8.0, sbsize=16, sosize=12, tbsize=3, lsb=true, lsb_in=true).Dither_resize16(aaed.width, aaed.height, kernel="Spline36", Y=1, U=3, V=3).MergeLuma(nr1_16)
- db = nr2_16.f3kdb(range=12, Y=48, Cb=0, Cr=0, grainY=0, grainC=0, input_mode=1, output_mode=1)
- dbed = db.Dither_limit_dif16 (nr2_16, thr=0.20, elast=3.0, Y=3, U=2, V=2).Dither_add16(noisereduc, dif=true, Y=3, U=2, V=2)
- Dither_merge16_8(dbed, aaed16, nrmask, luma=true, Y=3, U=3, V=3)
- #Dither_y_gamma_to_linear(curve="709").Dither_reszie16(1280, 720).Dither_y_linear_to_gamma(curve="709")
- Down10(stack=false)
- #""")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement