Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #MP_Pipeline("""
- ### platform: win32
- SetMemoryMax(300)
- src="03.ts"
- cf = src + ".ffindex"
- FFIndex(src, cachefile=cf, demuxer="lavf")
- FFVideoSource(src, cachefile=cf, seekmode=-1, threads=1)
- mask=last.tcanny(sigma=1.2, mode=1, plane=1)
- ### export clip: mask
- ### prefetch: 16,8
- ### lock threads to cores
- ### ###
- ### platform: win32
- SetMemoryMax(1000)
- src=last
- nr=src.MCTD(settings="medium", radius=3, sigma=4, limit=-1, limit2=0, chroma=false, twopass=false, useTTmpSm=false,
- \pp=true, protect=true, deblock=false, useQED=true, enhance=false, GPU=false, fixband=true, sharp=false)
- lumamask1=src.mt_lut("x 95 > 255 x 63 > x 32 - 2 << x 15 > 128 255 ? ? ?",U=1,V=1).RemoveGrain(19, -1)
- anr=mt_merge(src,nr,lumamask1,luma=false,Y=3,U=4,V=4)
- nrmask=mt_lut(mask,"x 3 - 6 <<",Y=3,U=1,V=1)
- mnr=mt_merge(anr,src,nrmask,luma=false,Y=3,U=2,V=2)
- ### export clip: mnr, mask
- ### prefetch: 8,4
- ### lock threads to cores
- ### ###
- ### platform: win32
- SetMemoryMax(400)
- src=last
- w = width(src)
- h = height(src)
- upw4 = Round(w*0.375)*4
- uph4 = Round(h*0.375)*4
- dehalo = mnr.Dehalo_Alpha_mt(darkstr=0.2,brightstr=1.0,rx=1.8,ry=1.8,highsens=100,lowsens=30)
- aa_clip = dehalo.nnedi3_rpow2(rfactor=2, fwidth=upw4, fheight=upw4, nsize=1, nns=3, qual=2).SangNom(aa=48).TurnRight().SangNom(aa=48).binomialBlur(varY=0.5,varC=0.5,usemmx=true).Spline36Resize(h, w, 0.5, -0.5).TurnLeft()
- #aa_clip = dehalo.Spline64Resize(upw4, uph4).Repair(dehalo.GaussResize(upw4, uph4, p=100), 1).SangNom(aa=48).TurnRight().SangNom(aa=48).binomialBlur(varY=0.5,varC=0.5,usemmx=true).Spline36Resize(h, w).TurnLeft()
- #aa_clip = dehalo.eedi2(field=1, mthresh=10, lthresh=20, vthresh=20, maxd=24, nt=50).Spline36Resize(w, h, 0, -0.5).TurnRight().eedi2(field=1, mthresh=10, lthresh=20, vthresh=20, maxd=24, nt=50).Spline36Resize(h, w, 0, -0.5).TurnLeft()
- aa_cs = mt_adddiff(aa_clip, mt_makediff(aa_clip, aa_clip.RemoveGrain(24), U=3, V=3).Repair(mt_makediff(dehalo, aa_clip, U=3, V=3), 13), U=3,V=3)
- ### export clip: aa_cs, mnr, mask
- ### branch: 2
- ### prefetch: 8,4
- ### lock threads to cores
- ### ###
- ### platform: win32
- SetMemoryMax(400)
- src=last
- #blurc = src.binomialBlur(varY=0.5,varC=0.5,usemmx=true)
- sharpmask = mask.mt_lut("x 48 < 0 x 144 >= 399 x - x 2 << 188 - ? ?",U=1,V=1)
- postaaC = aa_cs.LSFmod1(defaults="slow",Smode=5,Smethod=3,Lmode=4,strength=80,sharpmask=sharpmask,preblur="OFF",secure=true,edgemode=0,soft=-2,soothe=true,ss_x=1.00,ss_y=1.00,source=src)
- aamask = mask.mt_lut("x 32 < x 255 ?", U=1, V=1).mt_inflate()#.RemoveGrain(20, -1)
- aaed = mt_merge(mnr, postaaC, aamask, luma=true, U=3, V=3 )
- dbmask=mt_lut(mask,"x 4 - 6 <<",Y=3,U=1,V=1)
- ### export clip: aaed, dbmask
- ### prefetch: 6,3
- ### lock threads to cores
- ### ###
- SetMemoryMax(1200)
- db1=aaed.GradFun3( smode=1, thr=0.25, elast=2.5, ampn=0, radius=16, ampo=0.8, dthr=0.011, lsb=true, lsb_in=false, mask=0 )
- db2=db1.f3kdb(range=24, Y=56, Cb=48, Cr=48, grainY=0, grainC=0, dither_algo=2, dynamic_grain=true, keep_tv_range=false, input_mode=1, output_mode=1, output_depth=16)
- lumamask2=aaed.mt_lut("x 80 > x 80 - 1 << 80 x - 2 << ?",Y=3,U=1,V=1).RemoveGrain(19,-1)
- db=Dither_merge16_8(db2,db1,lumamask2,luma=true)
- np=db.GrainFL(lsb_in=true, lsb=true, th1=16, th2=24, th3=80, th4=128, g1str=0, g2str=4, g3str=0, g1shrp=60, g2shrp=66, g3shrp=80, g1size=1.25, g2size=1.25, g3size=1.25, g1soft=3,g2soft=3,g3soft=3)
- Dither_merge16_8(np, aaed.Dither_convert_8_to_16(), dbmask, luma=true)
- f3kdb(range=0, Y=0, Cb=0, Cr=0, grainY=0, grainC=0, dither_algo=2, dynamic_grain=true, keep_tv_range=false, input_mode=1, output_mode=2, output_depth=10)
- #""")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement