Advertisement
mawen1250

Fate/Zero BDrip v3

Aug 17th, 2012
352
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=1)
  11.  
  12. ### prefetch: 32, 16
  13. ### export clip: emask
  14.  
  15. ### ###
  16.  
  17. ### platform: win32
  18.  
  19. SetMemoryMax(800)
  20.  
  21. src      = last
  22. aacs     = src.CSmod(chroma=false, Smode=3, Smethod=1, strength=100, preblur=0, thr=0, 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. nrmask   = emask.mt_lut("x 2 <= 0 x 2 - 6 << ?", U=1, V=1).RemoveGrain(20, -1)
  27.  
  28. last     = aaed
  29.  
  30. ### prefetch: 16, 8
  31. ### export clip: nrmask
  32.  
  33. ### ###
  34.  
  35. ### platform: win32
  36.  
  37. SetMemoryMax(1400)
  38.  
  39. aaed     = last
  40.  
  41. nr1      = aaed.MCTD(settings="low", radius=2, sigma=4, limit=-1, limit2=0, chroma=false, twopass=false, useTTmpSm=true, GPU=false, fixband=true, pp=true, useMMask=false, protect=true, deblock=false, useQED=true, sharp=false, enhance=false)
  42. nr1      = nr1.Repair(aaed, 1, 0)
  43.  
  44. noise      = mt_makediff(aaed, nr1, Y=3, U=1, V=1)
  45. #noisel     = noise.mt_lut("x 4 + 128 min x 4 - max", Y=3, U=1, V=1)
  46. #lmask      = nr1.mt_lut("x 127 > 255 x 64 > x 2 << 512 - 0 ? ?", Y=3, U=1, V=1)
  47. #noisereduc = Dither_merge16_8(noise.U16, noisel.U16, lmask, luma=false, Y=3, U=1, V=1)
  48. noisereduc = Dither_lutxy8(noise, nr1, "y 127 > 32768 y 64 > x 128 - 512 y 4 * - * 32768 + x 256 * ? ?", Y=3, U=1, V=1)
  49. noisereduc = Dither_limit_dif16(noisereduc, noise.U16, thr=4.00, elast=3.0, Y=3, U=1, V=1)
  50.  
  51. aaed16 = aaed.U16
  52. nr1.U16
  53.  
  54. ### prefetch: 8, 2
  55. ### export clip: nrmask, aaed16, noisereduc
  56.  
  57. ### ###
  58.  
  59. SetMemoryMax(1200)
  60.  
  61. nr1_16 = last
  62.  
  63. nr2_16 = nr1_16.dfttest(Y=false, U=true, V=true, sigma=4.0, sigma2=4.0, sbsize=12, sosize=9, tbsize=3, lsb=true, lsb_in=true).Dither_limit_dif16(nr1_16, thr=2.00, elast=3.0, Y=2, U=3, V=3)
  64.  
  65. db     = nr2_16.f3kdb(range=16, Y=44, Cb=44, Cr=44, grainY=0, grainC=0, input_mode=1, output_mode=1)
  66. dbl    = db.Dither_limit_dif16(nr2_16, thr=0.30, elast=3.0, Y=3, U=3, V=3)
  67. dbed   = dbl.Dither_add16(noisereduc, dif=true, Y=3, U=2, V=2)
  68.  
  69. Dither_merge16_8(dbed, aaed16, nrmask, luma=true, Y=3, U=3, V=3)
  70.  
  71. #SeparateResize16(1280, 720, ChromaPara="a1=0.5, a2=0.5")
  72.  
  73. Down10(stack=false)
  74.  
  75. #""")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement