Advertisement
mawen1250

Clannad AS BDrip v2 by mawen1250

Jul 1st, 2012
256
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 = "I:\11\[KUNO-DIY][Love Again][BDMV][CLANNAD AFTER STORY][Blu-ray BOX Disc 1-5 Fin]\CLANNAD_AFTER_STORY_1\BDMV\STREAM\00000.m2ts"
  8. FFIndex(src, demuxer="lavf")
  9. FFVideoSource(src, threads=1, seekmode=-1)
  10. #DSS2(src)
  11.  
  12. emask   = last.tcanny(sigma=0.8, mode=1, plane=1)
  13.  
  14. ### export clip: emask
  15.  
  16. ### prefetch: 32, 4
  17.  
  18. ### ###
  19.  
  20. ### platform: win32
  21.  
  22. SetMemoryMax(1200)
  23.  
  24. src     = last
  25.  
  26. aacs    = src.CSmod(chroma=false, Smode=3, Smethod=1, strength=100, preblur=1, thr=1, Tlimit=false, ss_w=1.50, ss_h=1.50, Repmode=13, filter_ss="SangNom(aa=48).TurnRight().SangNom(aa=48).TurnLeft()")
  27.  
  28. aamask  = emask.mt_lutxy(src.mt_inpand(mode=mt_square(1)), "y 96 < x 16 < 0 x 16 - 5 << ? x 32 < 0 x 32 - 3 << ? ?", U=1, V=1).RemoveGrain(20, -1)
  29. aaed8   = mt_merge(src, aacs, aamask, luma=false, U=2, V=2)
  30.  
  31. last    = aaed8
  32.  
  33. ### export clip: emask
  34.  
  35. ### prefetch: 16, 0
  36.  
  37. ### ###
  38.  
  39. SetMemoryMax(1200)
  40.  
  41. aaed16  = last.U16
  42.  
  43. nr16    = aaed16.Dither_resize16(aaed16.width(), aaed16.height()/2, kernel="Gauss", a1=15, fh=-1, fv=-1)
  44. noise   = makediff16(aaed16, nr16, Y=3, U=3, V=3)
  45.  
  46. db      = nr16.GradFun3( smode=2, thr=0.28, elast=2.5, ampn=0, radius=14, ampo=0.8, dthr=0.011, lsb=true, lsb_in=true, mask=0 )
  47. deband  = Dither_add16(db, noise, Y=3, U=3, V=3, dif=true)
  48. dbmask  = emask.mt_lut("x 3 > x 3 - 6 << 0 ?", Y=3, U=1, V=1)
  49.  
  50. Dither_merge16_8(deband, aaed16, dbmask, luma=true)
  51. #Dither_y_gamma_to_linear(curve="709").Dither_resize16(1280, 720).Dither_y_linear_to_gamma(curve="709")
  52. Down10(stack=false)
  53.  
  54. """)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement