Advertisement
mawen1250

Fate/Zero BDrip v2

Jul 5th, 2012
346
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(300)
  6.  
  7. src="I:\11\[BDMV][120307]Fate/Zero Blu-ray Disc BOX Ⅰ\Fate/Zero Blu-ray Disc BOX Ⅰ Disc1+特典CD\BDROM\BDMV\STREAM\00001.m2ts"
  8. FFIndex(src, demuxer="lavf")
  9. FFVideoSource(src, seekmode=-1, threads=1)
  10. #DSS2(src)
  11. #AVCSource("I:\11\[BDMV][120307]Fate/Zero Blu-ray Disc BOX Ⅰ\Fate/Zero Blu-ray Disc BOX Ⅰ Disc1+特典CD\BDROM\BDMV\STREAM\00001.dga")
  12.  
  13. src      = last
  14. emask    = src.tcanny(sigma=1.2, mode=1, plane=1)
  15.  
  16. ### prefetch: 32, 16
  17. ### export clip: emask
  18.  
  19. ### ###
  20.  
  21. ### platform: win32
  22.  
  23. SetMemoryMax(400)
  24.  
  25. src      = last
  26. aacs     = src.CSmod(chroma=false, Smode=1, Smethod=1, strength=100, preblur=1, thr=0, Tlimit=false, ss_w=2.00, ss_h=2.00, Repmode=13, filter_ss="SangNom(aa=48).TurnRight().SangNom(aa=48).TurnLeft()")
  27. aamask   = emask.mt_lut("x 48 <= 0 x 48 - 3 << ?", U=1, V=1).RemoveGrain(20, -1).mt_inflate(U=1, V=1)
  28. aaed     = mt_merge(src, aacs, aamask, luma=false, Y=3, U=2, V=2)
  29.  
  30. last     = aaed
  31.  
  32. ### prefetch: 16, 8
  33. ### export clip: emask
  34.  
  35. ### ###
  36.  
  37. SetMemoryMax(2400)
  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. nr1      = nr1.CSmod(aaed, chroma=false, Smode=2, Smethod=3, strength=200, preblur=0, thr=0, Tlimit=false, ss_w=1.00, ss_h=1.00, Repmode=1)
  44.  
  45. noise      = mt_makediff(aaed, nr1, Y=3, U=1, V=1)
  46. noisereduc = Dither_lutxy8(noise, nr1, "y 127 > 32768 y 64 > x 128 - 512 y 4 * - * 32768 + x 256 * ? ?", Y=3, U=1, V=1)
  47.  
  48. nrmask   = emask.mt_lut("x 4 <= 0 x 4 - 3 << ?", U=1, V=1).RemoveGrain(20, -1)#.mt_deflate(U=1, V=1)
  49.  
  50. aaed16 = aaed.U16
  51. nr1_16 = nr1.U16
  52.  
  53. nr2_16 = aaed16.Dither_resize16(Round(aaed.width*1.6/16)*16, Round(aaed.height*1.6/16)*16, kernel="Spline64", Y=1, U=3, V=3).dfttest(Y=false, U=true, V=true, sigma=8.0, sigma2=8.0, sbsize=16, sosize=12, tbsize=3, lsb=true, lsb_in=true).Dither_resize16(aaed.width, aaed.height, kernel="Spline36", Y=1, U=3, V=3).MergeLuma(nr1_16)
  54.  
  55. db     = nr2_16.f3kdb(range=12, Y=48, Cb=0, Cr=0, grainY=0, grainC=0, input_mode=1, output_mode=1)
  56. dbed   = db.Dither_limit_dif16 (nr2_16, thr=0.20, elast=3.0, Y=3, U=2, V=2).Dither_add16(noisereduc, dif=true, Y=3, U=2, V=2)
  57.  
  58. Dither_merge16_8(dbed, aaed16, nrmask, luma=true, Y=3, U=3, V=3)
  59.  
  60. #Dither_y_gamma_to_linear(curve="709").Dither_reszie16(1280, 720).Dither_y_linear_to_gamma(curve="709")
  61.  
  62. Down10(stack=false)
  63.  
  64. #""")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement