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, threads=1, seekmode=-1)
- #DSS2(src)
- emask = last.tcanny(sigma=0.8, mode=1, plane=1)
- ### export clip: emask
- ### prefetch: 32, 8
- ### ###
- ### platform: win32
- SetMemoryMax(800)
- src = last
- sw = src.width()
- sh = src.height()
- upw4 = Round(sw*0.375)*4
- uph4 = Round(sh*0.375)*4
- aa_clip = src.Spline64Resize(upw4, uph4).Repair(src.GaussResize(upw4, uph4, p=100), 1).SangNom(aa=48).TurnRight().SangNom(aa=48).Spline36Resize(sh, sw).TurnLeft()
- aacs = CSmod(aa_clip, src, chroma=false, preblur=true, RGmode=11, Repmode=13, strength=4.0, Slimit=false, Tlimit=false, Soothe=24)
- aamask = emask.mt_lutxy(src.mt_inpand(mode=mt_square(1)), "y 96 < x 16 < 0 x 16 - 5 << ? x 32 < 0 x 32 - 3 << ? ?", U=1, V=1).RemoveGrain(20, -1)
- aaed8 = mt_merge(src, aacs, aamask, luma=false, U=2, V=2)
- last = aaed8.U16()
- ### export clip: emask
- ### prefetch: 16, 0
- ### ###
- SetMemoryMax(1200)
- aaed16 = last
- nr16 = aaed16.Dither_resize16(aaed16.width(), aaed16.height()/2, kernel="Gauss", a1=15, fh=-1, fv=-1)
- noise = makediff16(aaed16, nr16, Y=3, U=3, V=3)
- db = nr16.GradFun3( smode=2, thr=0.30, elast=2.5, ampn=0, radius=14, ampo=0.8, dthr=0.011, lsb=true, lsb_in=true, mask=0 )
- deband = Dither_add16(db, noise, Y=3, U=3, V=3, dif=true)
- dbmask = emask.mt_lut("x 3 > x 3 - 6 << 0 ?",Y=3,U=1,V=1)
- Dither_merge16_8(deband, 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