Advertisement
mawen1250

Fate/Zero BDrip v6

Aug 20th, 2012
1,290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #MP_Pipeline("""
  2.  
  3. ### platform: win32
  4.  
  5. src="S:\1\[BDMV][120307]Fate/Zero Blu-ray Disc BOX Ⅰ\Fate/Zero Blu-ray Disc BOX Ⅰ Disc1+特典CD\BDROM\BDMV\STREAM\00000.m2ts"
  6. FFIndex(src, demuxer="lavf")
  7. FFVideoSource(src, seekmode=-1, threads=1)
  8. #DSS2(src)
  9.  
  10. emask    = last.tcanny(sigma=2.00, mode=1, plane=7)
  11.  
  12. ### prefetch: 64, 32
  13. ### export clip: emask
  14.  
  15. ### ###
  16.  
  17. ### platform: win32
  18.  
  19. SetMemoryMax(1000)
  20.  
  21. src      = last
  22. aacs     = src.CSmod(chroma=false, Smode=3, Smethod=1, strength=100, preblur=0, thr=0, Soothe=-1, Tlimit=false, ss_w=1.75, ss_h=1.75, Repmode=13, filter_ss="SangNom(aa=48).TurnRight().SangNom(aa=48).TurnLeft()")
  23. aamask   = emask.mt_lut("x 48 <= 0 x 48 - 3 << ?", U=1, V=1).RemoveGrain(20, -1).mt_inflate(U=1, V=1)
  24. aaed     = mt_merge(src, aacs, aamask, luma=false, Y=3, U=2, V=2)
  25.  
  26. last     = aaed
  27.  
  28. ### prefetch: 32, 16
  29. ### export clip: emask
  30.  
  31. ### ###
  32.  
  33. ### platform: win32
  34.  
  35. SetMemoryMax(2000)
  36.  
  37. sigma    = 4.0
  38. aaed     = last
  39. prenr    = aaed.FFT3DFilter(sigma=sigma*0.8,sigma2=sigma*0.6,sigma3=sigma*0.4,sigma4=sigma*0.2,bw=16,bh=16,ow=8,oh=8,plane=4,bt=1,ncpu=1)
  40.  
  41. nr16     = aaed.SMDegrain(lsb_in=false,lsb=true,lsb_out=true,tr=2,Contrasharp=false,RefineMotion=true,plane=4,prefilter=prenr,
  42. \thSAD=300,thSADC=150,blksize=16,thSCD1=200,thSCD2=100,Truemotion=false,Chroma=true,limit=4,limitC=3)
  43.  
  44. last     = nr16
  45.  
  46. ### prefetch: 16, 0
  47. ### export clip: emask, aaed
  48.  
  49. ### ###
  50.  
  51. SetMemoryMax(800)
  52.  
  53. nr16   = last
  54. aaed16 = aaed.U16
  55. nr16   = nr16.Dither_repair16(aaed16, 13, 13)
  56.  
  57. noise      = Dither_makediff16(aaed16, nr16, Y=3, U=1, V=1)
  58. limitd     = "64"
  59. limitb     = "1024"
  60. noised     = noise#.Dither_lut16("x 32768 " + limitd + " + > x  " + limitd + "  - x 32768 " + limitd + " - < x  " + limitd + "  + 32768 ? ?", Y=3, U=1, V=1)
  61. noiseb     = noise.Dither_gen_null_diff#.Dither_lut16("x 32768 " + limitb + " + > x  " + limitb + "  - x 32768 " + limitb + " - < x  " + limitb + "  + 32768 ? ?", Y=3, U=1, V=1)
  62. lmask      = aaed.mt_lut("x 95 > 255 x 64 > x 3 << 512 - 0 ? ?", Y=3, U=1, V=1).RemoveGrain(20, -1)
  63. noisereduc = Dither_merge16_8(noised, noiseb, lmask, luma=false, Y=3, U=1, V=1)
  64.  
  65. db     = nr16.f3kdb(range=14, Y=28, Cb=28, Cr=28, grainY=0, grainC=0, input_mode=1, output_mode=1)
  66. dbl    = db.Dither_limit_dif16(nr16, thr=0.20, elast=2.5, Y=3, U=3, V=3)
  67. dbed   = dbl.Dither_add16(noisereduc, dif=true, Y=3, U=2, V=2)
  68.  
  69. ymask  = emask.ConvertToY8  .mt_lutxy(aaed, "x 3 <= 0 y 130 > x 3 - 4 << y 64 > x 3 - 1148 * y 59.5 - / 255 ? ? ?", U=1, V=1)
  70. uvmask = emask.UtoY8        .mt_logic(emask.VtoY8, "max", Y=3, U=1, V=1)
  71. \                           .Spline36Resize(emask.width, emask.height, 0.25)
  72. \                           .mt_expand(U=1, V=1).mt_lut("x 6 <= 0 255 ?", U=1, V=1)
  73. ymask  = ymask              .mt_logic(uvmask, "max", Y=3, U=1, V=1)
  74. \             .ConvertToYV12.Removegrain(22, -1).Removegrain(11, -1).RemoveGrain(20, -1)
  75. uvmask = ymask.mt_inpand(U=1, V=1).ConvertToY8.Spline36Resize(emask.width/2, emask.height/2, -0.5)
  76. nrmask = YtoUV(uvmask, uvmask, ymask)
  77.  
  78. Dither_merge16_8(dbed, aaed16, nrmask, luma=false, Y=3, U=3, V=3)
  79.  
  80. #SeparateResize16(1280, 720, ChromaPara="a1=0.5, a2=0.5")
  81.  
  82. Down10(stack=false, dither=-2)
  83.  
  84. #""")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement