Advertisement
mawen1250

Clannad BDrip final

Jul 19th, 2012
528
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(400)
  6.  
  7. src = "R:\Anime\[KUNO-DIY][BDMV][CLANNAD][Blu-ray BOX Disc 1-5 Fin]\CLANNAD_1\BDMV\STREAM\00000.m2ts"
  8. FFIndex(src, demuxer="lavf")
  9. FFVideoSource(src, seekmode=-1, threads=1)
  10. #DSS2(src)
  11.  
  12. emask   = last.tcanny(sigma=1.2, mode=1, plane=1)
  13.  
  14. ### export clip: emask
  15.  
  16. ### prefetch: 64, 8
  17.  
  18. ### ###
  19.  
  20. ### platform: win32
  21.  
  22. SetMemoryMax(600)
  23.  
  24. ED1     = 31883
  25. ED2     = 34041
  26.  
  27. src     = last
  28.  
  29. aacs    = src.CSmod(chroma=false, Smode=3, Smethod=1, strength=100, preblur=1, thr=0, Tlimit=false, ss_w=1.5, ss_h=1.5, Repmode=13, filter_ss="SangNom(aa=48).TurnRight().SangNom(aa=48).TurnLeft()")
  30.  
  31. aacs.Trim(0, ED1-1) + src.Trim(ED1, ED2-1) + aacs.Trim(ED2, 0)
  32.  
  33. ### export clip: emask, src
  34.  
  35. ### ###
  36.  
  37. SetMemoryMax(1400)
  38.  
  39. aacs    = last
  40.  
  41. aamask  = emask.mt_lutxy(last.mt_deflate(U=1, V=1), "y 96 < x 40 <= 0 x 40 - 4 << ? x 64 <= 0 x 64 - 3 << ? ?", U=1, V=1).RemoveGrain(20, -1)
  42. aaed8   = mt_merge(src, aacs, aamask, luma=false, Y=3, U=2, V=2)
  43.  
  44. aaed16  = aaed8.U16
  45.  
  46. nr16    = aaed16.Dither_resize16(aaed16.width(), aaed16.height()/2, kernel="Gauss", a1=20, fh=-1, fv=-1, Y=3, U=1, V=1).MergeChroma(aaed16)
  47. noise   = Dither_makediff16(aaed16, nr16, Y=3, U=1, V=1)
  48.  
  49. db      = nr16.f3kdb(range=14, Y=44, Cb=44, Cr=44, grainY=0, grainC=0, input_mode=1, output_mode=1)
  50. dbl     = db.Dither_limit_dif16 (nr16, thr=0.30, elast=3.0, Y=3, U=3, V=3)
  51. dbed    = Dither_add16(dbl, noise, Y=3, U=2, V=2, dif=true)
  52.  
  53. dbmask  = emask.mt_lut("x 2 > x 2 - 6 << 0 ?", Y=3, U=1, V=1)
  54.  
  55. Dither_merge16_8(dbed, aaed16, dbmask, luma=true, Y=3, U=3, V=3)
  56. #Dither_y_gamma_to_linear(curve="709").Dither_resize16(1280, 720).Dither_y_linear_to_gamma(curve="709")
  57. Down10(stack=false)
  58.  
  59. """)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement