Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetMemoryMax(2560)
- src="D:\[BDMV][120307]Fate/Zero Blu-ray Disc BOX Ⅰ\Fate/Zero Blu-ray Disc BOX Ⅰ Disc1+特典CD\BDROM\BDMV\STREAM\00001.m2ts"
- cf = src + ".ffindex"
- FFIndex(src, cachefile=cf, demuxer="lavf")
- FFVideoSource(src, cachefile=cf, seekmode=-1, threads=1)
- SoraThread(5,10)
- src=last
- mask=src.TEdgeMask( link=2, preblur=true, valon=-1 ).mt_lut("x 2 <= x x 7 << ?",U=3,V=3).RemoveGrain(20, 20)
- lumamask=src.mt_lut("x 127 > 255 x 64 > x 64 - 2 << 64 x - 1 << ? ?",U=1,V=1).RemoveGrain(19, -1)
- nr=src.FFT3DFilter(sigma=3.2,sigma2=2.4,sigma3=1.6,sigma4=0.8,bw=16,bh=16,ow=8,oh=8,plane=4,bt=3)
- 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 = mt_merge(nr,lB,mB,U=2,V=2)
- anr=mt_merge(src,pnr,lumamask,luma=false,Y=3,U=4,V=4)
- db=anr.f3kdb(range=15, Y=33, Cb=33, Cr=33, grainY=0, grainC=0, dither_algo=2, dynamic_grain=true, keep_tv_range=false, input_mode=0, output_mode=1, output_depth=16)
- np=db.GrainFL(lsb_in=true, lsb=true, th1=16, th2= 32, th3=64, th4=96, g1str=0, g2str=6, g3str=0, g1shrp=60, g2shrp=66, g3shrp=80, g1size=1.40, g2size=1.40, g3size=1.40, 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