Advertisement
mawen1250

Hyouka BDrip v2

Aug 4th, 2012
599
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:\11\[BDMV][120629] 氷菓 限定版 第1巻\KAXA_5001\BDMV\STREAM\00000.m2ts"
  6. FFIndex(src, demuxer="lavf")
  7. FFVideoSource(src, seekmode=-1, threads=1)
  8. #DSS2(src)
  9. #AVCSource("S:\11\[BDMV][120629] 氷菓 限定版 第1巻\KAXA_5001\BDMV\STREAM\00000.dga")
  10.  
  11. emask   = last.tcanny(sigma=1.75, mode=1, plane=7)
  12.  
  13. ### prefetch: 32, 16
  14. ### export clip: emask
  15.  
  16. ### ###
  17.  
  18. ### platform: win32
  19.  
  20. SetMemoryMax(1280)
  21.  
  22. src    = last
  23.  
  24. aacs   = src.CSmod(chroma=false, Smode=2, Smethod=1, strength=150, preblur=1, 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()")
  25.  
  26. aamask = emask.mt_lutxy(src.mt_inpand(mode=mt_square(1)), "y 96 < x 48 <= 0 x 48 - 3 << ? x 96 <= 0 x 96 - 3 << ? ?", U=1, V=1).RemoveGrain(11, -1)
  27. aaed8  = mt_merge(src, aacs, aamask, luma=false, U=2, V=2)
  28. aaed16 = aaed8.U16
  29.  
  30. nr2    = aaed16.Dither_resize16(Round(aaed8.width*1.5/16)*16, Round(aaed8.height*1.5/16)*16, kernel="Spline64", Y=1, U=3, V=3)
  31. \              .dfttest(Y=false, U=true, V=true, sigma=2.0, sigma2=2.0, sbsize=8, sosize=6, tbsize=3, lsb=true, lsb_in=true)
  32. \              .Dither_resize16(aaed8.width, aaed8.height, kernel="Spline36", Y=1, U=3, V=3)
  33.  
  34. aaed8
  35.  
  36. ### prefetch: 16, 8
  37. ### export clip: aaed16, emask, nr2
  38.  
  39. ### ###
  40.  
  41. ### platform: win32
  42.  
  43. SetMemoryMax(1024)
  44.  
  45. aaed8  = last
  46.  
  47. nr1    = aaed8.MCTD(settings="low", radius=3, sigma=4, limit=0, limit2=0, chroma=false, twopass=false, useTTmpSm=false, GPU=false, fixband=true,
  48. \                   pp=true, useMMask=true, protect=true, deblock=false, useQED=true, sharp=false, stabilize=false, enhance=false)
  49.  
  50. nr1.U16.MergeChroma(nr2.Repair16(aaed16, -1, 1, lsb_in=true)).Dither_limit_dif16 (aaed16, thr=1.00, elast=3.0, Y=3, U=3, V=3)
  51.  
  52. ### prefetch: 8, 0
  53. ### export clip: aaed16, emask, nr1
  54.  
  55. ### ###
  56.  
  57. SetMemoryMax(768)
  58.  
  59. nr16   = last
  60.  
  61. db     = nr16.f3kdb(range=16, Y=44, Cb=36, Cr=36, grainY=0, grainC=0, input_mode=1, output_mode=1)
  62. dbl    = db.Dither_limit_dif16 (nr16, thr=0.40, elast=3.0, Y=3, U=3, V=3)
  63.  
  64. dmask  = nr1.Dither_build_gf3_range_mask(3).mt_lutxy(nr1, "x 1 > x 1 - 415 y 2 << - * 0 ?", Y=3, U=1, V=1)
  65. emask  = emask.mt_expand(Y=3, U=3, V=3)
  66. dbmask = emask.ConvertToY8  .mt_logic(emask.UtoY.ConvertToY8.Spline36Resize(emask.width, emask.height, 0.25), "max", Y=3, U=1, V=1)
  67. \                           .mt_logic(emask.VtoY.ConvertToY8.Spline36Resize(emask.width, emask.height, 0.25), "max", Y=3, U=1, V=1)
  68. \             .ConvertToYV12.mt_lutxy(nr1, "x 2 > x 2 - 305.66666666666666666666666666667 y 1.2666666666666666666666666666667 * - * 0 ?", Y=3, U=1, V=1).mt_inpand(Y=3, U=1, V=1)
  69. \                           .mt_logic(dmask, "max", Y=3, U=1, V=1)
  70. \                           .Removegrain(22, -1).Removegrain(11, -1)
  71. Dither_merge16_8(dbl, aaed16, dbmask, luma=true, Y=3, U=3, V=3)
  72.  
  73. #降为720p输出去掉#
  74. #SeparateReszie16(1280, 720, ChromaR="Spline36")
  75.  
  76. GrainFL(g1str=0, g2str=4, g3str=0, g1shrp=80, g2shrp=80, g3shrp=80, g1size=1.20, g2size=1.20, g3size=1.20, g1soft=2, g2soft=2, g3soft=2, th1=16, th2=24, th3=64, th4=96, lsb_in=true, lsb=true)
  77.  
  78. #设置输出位深
  79. output_depth = 10
  80. output_depth == 8 ? DitherPost(mode=6) : Down10(output_depth, stack=false)
  81.  
  82. #""")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement