Advertisement
mawen1250

Fate/Zero BD Final by mawen1250

Mar 25th, 2012
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MP_Pipeline("""
  2.  
  3. ### platform: win32
  4.  
  5. SetMemoryMax(200)
  6.  
  7. src="H:\remux\Fate/Zero Blu-ray Disc BOX Ⅰ Disc2\BDROM\BDMV\STREAM\00000.m2ts"
  8. cf = src + ".ffindex"
  9. FFIndex(src, cachefile=cf, demuxer="lavf")
  10. FFVideoSource(src, cachefile=cf, seekmode=-1, threads=1)
  11.  
  12. ### prefetch: 16,8
  13. ### lock threads to cores
  14.  
  15. ### ###
  16.  
  17. ### platform: win32
  18.  
  19. SetMemoryMax(1400)
  20.  
  21. src=last
  22. #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)
  23. nr=src.MCTD(settings="medium", radius=3, sigma=4, limit=-1, limit2=0, chroma=false, twopass=false, useTTmpSm=false,
  24. \pp=false, protect=false, deblock=false, useQED=true, enhance=false, GPU=false, fixband=false, sharp=false)
  25.  
  26. ### export clip: nr, src
  27.  
  28. ### prefetch: 6,3
  29. ### lock threads to cores
  30.  
  31. ### ###
  32.  
  33. ### platform: win32
  34.  
  35. SetMemoryMax(700)
  36.  
  37.   rg17 = nr.removegrain(17,-1)
  38.   iOB  = src.mt_lut("x 64 >= x 0 ?",U=1,V=1)
  39.   mB   = mt_makediff(iOB,rg17,U=1,V=1).mt_binarize(144,upper=false,U=1,V=1).removegrain(5,-1)
  40.   lB   = mt_lutxy(nr,src,"x y - abs 4 <= x x y - 0 < y 4 - x ? ?",U=1,V=1)
  41.   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))
  42.  
  43. lumamask=src.mt_lut("x 95 > 255 x 63 > x 64 - 3 << x 15 > 0 255 ? ? ?",U=1,V=1).RemoveGrain(19, -1)
  44. #chromamask=lumamask.mt_lut("255 x - 1 >> x +",U=1,V=1).Spline36Resize(lumamask.width/2,lumamask.height/2)
  45. #amask=YtoUV(chromamask,chromamask,lumamask)
  46. anr=mt_merge(src,pnr,lumamask,luma=false,Y=3,U=4,V=4)
  47.  
  48. #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)
  49. #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)
  50. 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)
  51.  
  52. ### export clip: anr, src, mask
  53.  
  54. ### prefetch: 6,3
  55. ### lock threads to cores
  56.  
  57. ### ###
  58.  
  59. SetMemoryMax(1500)
  60.  
  61. 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)
  62.  
  63. 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)
  64.  
  65. Dither_merge16_8(np, src.Dither_convert_8_to_16(), mask, luma=false)
  66. 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)
  67.  
  68. """)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement