Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MP_Pipeline("""
- ### platform: win32
- SetMemoryMax(200)
- src="H:\remux\Fate/Zero Blu-ray Disc BOX Ⅰ Disc2\BDROM\BDMV\STREAM\00000.m2ts"
- cf = src + ".ffindex"
- FFIndex(src, cachefile=cf, demuxer="lavf")
- FFVideoSource(src, cachefile=cf, seekmode=-1, threads=1)
- ### prefetch: 16,8
- ### lock threads to cores
- ### ###
- ### platform: win32
- SetMemoryMax(1400)
- src=last
- #nr=src.FFT3DFilter(sigma=4.2,sigma2=0.7,sigma3=0.4,sigma4=0.2,bw=8,bh=8,ow=4,oh=4,plane=4,bt=3)
- nr=src.MCTD(settings="medium", radius=3, sigma=4, limit=-1, limit2=0, chroma=false, twopass=false, useTTmpSm=false,
- \pp=false, protect=false, deblock=false, useQED=true, enhance=false, GPU=false, fixband=false, sharp=false)
- ### export clip: nr, src
- ### prefetch: 6,3
- ### lock threads to cores
- ### ###
- ### platform: win32
- SetMemoryMax(700)
- rg17 = nr.removegrain(17,-1)
- iOB = src.mt_lut("x 64 >= x 0 ?",U=1,V=1)
- mB = mt_makediff(iOB,rg17,U=1,V=1).mt_binarize(144,upper=false,U=1,V=1).removegrain(5,-1)
- lB = mt_lutxy(nr,src,"x y - abs 4 <= x x y - 0 < y 4 - x ? ?",U=1,V=1)
- pnr = MergeChroma(mt_merge(nr,lB,mB,U=2,V=2),nr.deblock_QED(quant1=25,quant2=50,uv=3).FFT3DFilter(sigma=4.0,sigma2=0.8,sigma3=0.4,sigma4=0.2,bw=8,bh=8,ow=4,oh=4,plane=3,bt=3))
- lumamask=src.mt_lut("x 95 > 255 x 63 > x 64 - 3 << x 15 > 0 255 ? ? ?",U=1,V=1).RemoveGrain(19, -1)
- #chromamask=lumamask.mt_lut("255 x - 1 >> x +",U=1,V=1).Spline36Resize(lumamask.width/2,lumamask.height/2)
- #amask=YtoUV(chromamask,chromamask,lumamask)
- anr=mt_merge(src,pnr,lumamask,luma=false,Y=3,U=4,V=4)
- #mask=src.TEdgeMask( link=2, preblur=true, valon=-1 ).mt_lut("x 3 <= 0 x 2 - 5 << ?",Y=3,U=2,V=2).mt_lut("x 4 <= 0 x 3 - 5 << ?",Y=2,U=3,V=3)
- #mask=src.tcanny(sigma=1.5, mode=1, plane=7).mt_lut("x 4 <= 0 x 2 - 5 << ?",Y=3,U=2,V=2).mt_lut("x 8 <= 0 x 4 - 5 << ?",Y=2,U=3,V=3).mt_deflate(Y=3,U=3,V=3)
- mask=src.tcanny(sigma=1.5, mode=1, plane=7).mt_lut("x 4 <= 0 x 2 - 5 << ?",Y=3,U=2,V=2).mt_lut("x 6 <= 0 x 4 - 5 << ?",Y=2,U=3,V=3).mt_deflate(Y=3,U=3,V=3)
- ### export clip: anr, src, mask
- ### prefetch: 6,3
- ### lock threads to cores
- ### ###
- SetMemoryMax(1500)
- db=anr.GradFun3( smode=1, thr=0.15, elast=2.5, ampn=0, radius=16, ampo=0.8, dthr=0.011, lsb=true, lsb_in=false, mask=0 )#.f3kdb(range=16, Y=32, Cb=32, Cr=32, grainY=0, grainC=0, dither_algo=2, dynamic_grain=true, keep_tv_range=false, input_mode=1, output_mode=1, output_depth=16)
- np=db#.GrainFL(lsb_in=true, lsb=true, th1=16, th2=24, th3=64, th4=96, 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, src.Dither_convert_8_to_16(), mask, luma=false)
- 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