Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #MP_Pipeline("""
- ### platform: win32
- SetMemoryMax(400)
- src = "I:\11\[KUNO-DIY][Love Again][BDMV][CLANNAD AFTER STORY][Blu-ray BOX Disc 1-5 Fin]\CLANNAD_AFTER_STORY_1\BDMV\STREAM\00000.m2ts"
- FFIndex(src, demuxer="lavf")
- FFVideoSource(src, seekmode=-1, threads=1)
- #DSS2(src)
- emask = last.tcanny(sigma=1.2, mode=1, plane=1)
- ### export clip: emask
- ### prefetch: 64, 8
- ### ###
- ### platform: win32
- SetMemoryMax(1200)
- src = last
- OP = 1486
- OPa = OP + 935
- OPb = OP + 986
- aacs = src.CSmod(chroma=false, Smode=3, Smethod=1, strength=100, preblur=1, thr=1, Tlimit=false, ss_w=1.50, ss_h=1.50, Repmode=13, filter_ss="SangNom(aa=48).TurnRight().SangNom(aa=48).TurnLeft()")
- aamask = emask.mt_lutxy(src.mt_deflate(U=1, V=1), "y 96 < x 32 <= 0 x 32 - 4 << ? x 64 <= 0 x 64 - 3 << ? ?", U=1, V=1).RemoveGrain(20, -1).mt_inflate(U=1, V=1)
- aaed8 = mt_merge(src, aacs, aamask, luma=false, U=2, V=2)
- part1 = DSS2("Clannad AS part1.avi").AssumeFPS(24000, 1001)
- aaed8.Trim(0, OPa-1)+part1+aaed8.Trim(OPb+1, 0)
- ### export clip: emask
- ### ###
- SetMemoryMax(1200)
- aaed16 = last.U16
- nr16 = aaed16.Dither_resize16(aaed16.width(), aaed16.height()/2, kernel="Gauss", a1=24, fh=-1, fv=-1, Y=3, U=1, V=1).MergeChroma(aaed16)
- noise = Dither_makediff16(aaed16, nr16, Y=3, U=1, V=1)
- db = nr16.f3kdb(range=12, Y=40, Cb=36, Cr=36, grainY=0, grainC=0, input_mode=1, output_mode=1)
- dbl = db.Dither_limit_dif16 (nr16, thr=0.25, elast=3.0, Y=3, U=3, V=3)
- dbed = Dither_add16(dbl, noise, Y=3, U=2, V=2, dif=true)
- dbmask = emask.mt_lut("x 2 > x 2 - 6 << 0 ?", Y=3, U=1, V=1)
- Dither_merge16_8(dbed, aaed16, dbmask, luma=true)
- #Dither_y_gamma_to_linear(curve="709").Dither_resize16(1280, 720).Dither_y_linear_to_gamma(curve="709")
- Down10(stack=false)
- #""")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement