Advertisement
mawen1250

Hunter X Hunter 2011 BD EP01 final5 by mawen1250

Jul 1st, 2012
333
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 = "D:\mawen1250\[BDMV][HUNTER × HUNTER][ハンターハンター Vol.4][KUNO-DIY]\BDMV\STREAM\00006.m2ts"
  8.  
  9. FFIndex(src, demuxer="lavf")
  10. FFVideoSource(src, seekmode=-1, threads=1)
  11. #DSS2(src)
  12.  
  13. emask = last.tcanny(sigma=1.0, mode=1, plane=1)
  14.  
  15. ### inherit start ###
  16.  
  17. OP1=816
  18. OP2=2734
  19. ED1=31650
  20. ED2=33568
  21.  
  22. downscale=false
  23.  
  24. ### inherit end ###
  25.  
  26. ### export clip: emask
  27.  
  28. ### prefetch: 32, 4
  29. ### lock threads to cores
  30.  
  31. ### ###
  32.  
  33. ### platform: win32
  34.  
  35. SetMemoryMax(1000)
  36.  
  37. src  = last
  38. sw   = src.width()
  39. sh   = src.height()
  40.  
  41. up   = src.SoftCubicResize(sw*2, sh*2, soft=50)
  42. sm1  = up.awarpsharp2(chroma=6, thresh=100, type=1, depth=16).Spline36Resize(sw, sh)
  43. sm2  = up.awarpsharp2(chroma=6, thresh=100, type=1, depth= 6).Spline36Resize(sw, sh)
  44. sm3  = MergeChroma(src, sm1.Trim(0,OP1+134)+sm2.Trim(OP1+135,OP1+440)+sm1.Trim(OP1+441,OP1+572)+sm2.Trim(OP1+573,OP2-1)+sm1.Trim(OP2,0), 1.0)
  45.  
  46. sclp = sm3.CSmod(chroma=false, Smode=3, Smethod=3, strength=100, preblur=1, usepasf=false, Sovershoot=2, Tlimit=false, ss_w=1.50, ss_h=1.50, ssrep=true, filter_ss="Dehalo_Alpha_mt(darkstr=0.2, brightstr=1.0, rx=2.0, ry=2.0, highsens=100, lowsens=30)")
  47.  
  48. ### export clip: sclp, emask
  49.  
  50. ### prefetch: 16, 0
  51.  
  52. ### ###
  53.  
  54. SetMemoryMax(1200)
  55.  
  56. src  = last
  57. sw   = src.width()
  58. sh   = src.height()
  59. dw   = 1280
  60. dh   =  720
  61.  
  62. deband1 = sclp.GradFun3( smode=2, thr=0.25, elast=2.5, ampn=0, radius=16, ampo=0.8, dthr=0.011, lsb=true, lsb_in=false, mask=0 )
  63. deband2 = sclp.GradFun3( smode=2, thr=0.35, elast=2.5, ampn=0, radius=16, ampo=0.8, dthr=0.011, lsb=true, lsb_in=false, mask=0 ).f3kdb(range=24, Y=48, Cb=33, Cr=33, grainY=0, grainC=0, dither_algo=3, dynamic_grain=true, keep_tv_range=false, input_mode=1, output_mode=1, output_depth=16)
  64. deband3 = StackVertical(sclp.Crop(0, 0, 0, -sh/2).f3kdb(range=24, Y=120, Cb=64, Cr=64, grainY=0, grainC=0, dither_algo=3, dynamic_grain=true, keep_tv_range=false, input_mode=0, output_mode=1, output_depth=16), sclp.Crop(0, sh/2, 0, 0).f3kdb(range=24, Y=40, Cb=48, Cr=48, grainY=0, grainC=0, dither_algo=3, dynamic_grain=true, keep_tv_range=false, input_mode=0, output_mode=1, output_depth=16)")
  65. deband  = deband1.Trim(0,OP1+134)+deband2.Trim(OP1+135,OP1+235)+deband1.Trim(OP1+236,ED1+240)+deband2.Trim(ED1+241,ED1+492)+deband3.Trim(ED1+493,ED1+604)+deband1.Trim(ED1+605,0)
  66. addgrain= deband#.GrainFL(lsb_in=true, lsb=true, th1=16, th2=24, th3=64, th4=96, g1str=0, g2str=4, g3str=0, g1shrp=60, g2shrp=66, g3shrp=80, g1size=1.25, g2size=1.25, g3size=1.25, g1soft=3,g2soft=3,g3soft=3)
  67. mask1   = emask.mt_lut("x 2 <= x x 5 << ?", U=1, V=1)
  68. mask2   = emask.mt_lut("x 3 <= x x 1 - 5 << ?", U=1, V=1)
  69. mask3   = emask.mt_lut("x 6 <= x x 4 - 5 << ?", U=1, V=1)
  70. dbmask  = mask1.Trim(0,OP1+134)+mask2.Trim(OP1+135,OP1+235)+mask1.Trim(OP1+236,ED1+240)+mask2.Trim(ED1+241,ED1+492)+mask3.Trim(ED1+493,ED1+604)+mask1.Trim(ED1+605,0)
  71. db      = Dither_merge16_8( addgrain, sclp.U16(), dbmask, luma=true)
  72. final   = downscale ? db.Dither_y_gamma_to_linear(curve="709").Dither_resize16(dw, dh, kernel="Spline36").Dither_y_linear_to_gamma(curve="709") : db
  73.  
  74. final.Down10(tvRange=true, stack=false)
  75.  
  76. """)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement