Advertisement
mawen1250

Fate/Zero BDrip v5

Aug 19th, 2012
216
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=2.00, ss_h=2.00, 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. aaed     = last
  38.  
  39. nr1      = aaed.MCTD(settings="low", radius=2, sigma=4, limit=0, limit2=0, chroma=true, twopass=false, useTTmpSm=false, GPU=false, fixband=true, pp=true, useMMask=false, protect=true, deblock=false, useQED=true, sharp=false, enhance=false)
  40.  
  41. last     = nr1
  42.  
  43. ### prefetch: 16, 0
  44. ### export clip: emask, aaed
  45.  
  46. ### ###
  47.  
  48. SetMemoryMax(800)
  49.  
  50. aaed16 = aaed.U16
  51. nr1_16 = last.U16
  52. nr1_16 = nr1_16.Dither_repair16(aaed16, 13, 13)
  53. \              .Dither_limit_dif16(aaed16, thr=1.50, elast=3.0, Y=2, U=3, V=3)
  54. nr1    = nr1_16.DitherPost(mode=6, ampn=0)
  55.  
  56. noise      = mt_makediff(aaed, nr1, Y=3, U=1, V=1)
  57. #noisel     = noise.mt_lut("x 4 + 128 min x 4 - max", Y=3, U=1, V=1)
  58. #lmask      = nr1.mt_lut("x 127 > 255 x 64 > x 2 << 512 - 0 ? ?", Y=3, U=1, V=1)
  59. #noisereduc = Dither_merge16_8(noise.U16, noisel.U16, lmask, luma=false, Y=3, U=1, V=1)
  60. noisereduc = Dither_lutxy8(noise, nr1, "y 127 > 32768 y 64 > x 128 - 512 y 4 * - * 32768 + x 256 * ? ?", Y=3, U=1, V=1).Dither_lut16("x 32832 > x 64 - x 32704 < x 64 + 32768 ? ?", Y=3, U=1, V=1)
  61. noisereduc = Dither_limit_dif16(noisereduc, noise.U16, thr=3.00, elast=3.0, Y=3, U=1, V=1)
  62.  
  63. db     = nr1_16.GradFun3(Smode=2, radius=14, ampn=0, thr=0.25, lsb_in=true, lsb=true, mask=0, Y=3, U=3, V=3)
  64. dbl    = db
  65. dbed   = dbl.Dither_add16(noisereduc, dif=true, Y=3, U=2, V=2)
  66.  
  67. #nrmask   = emask.mt_lut("x 2 <= 0 x 2 - 6 << ?", U=1, V=1).RemoveGrain(20, -1)
  68. ymask  = emask     .ConvertToY8  .mt_lut("x 3 <= 0 x 3 - 7 << ?", U=1, V=1)
  69. uvmask = emask.UtoY.ConvertToY8  .mt_logic(emask.VtoY.ConvertToY8, "max", Y=3, U=1, V=1)
  70. \                                .Spline36Resize(emask.width, emask.height, 0.25)
  71. \                                .mt_expand(U=1, V=1).mt_lut("x 4 <= 0 255 ?", U=1, V=1)
  72. nrmask = ymask                   .mt_logic(uvmask, "max", Y=3, U=1, V=1)
  73. \                  .ConvertToYV12.Removegrain(22, -1).Removegrain(11, -1).RemoveGrain(20, -1)
  74.  
  75. Dither_merge16_8(dbed, aaed16, nrmask, luma=true, Y=3, U=3, V=3)
  76.  
  77. #SeparateResize16(1280, 720, ChromaPara="a1=0.5, a2=0.5")
  78.  
  79. Down10(stack=false)
  80.  
  81. #""")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement