Advertisement
mawen1250

Steins Gate BDrip final by mawen1250

Apr 10th, 2012
322
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="03.ts"
  8. cf = src + ".ffindex"
  9. FFIndex(src, cachefile=cf, demuxer="lavf")
  10. FFVideoSource(src, cachefile=cf, seekmode=-1, threads=1)
  11.  
  12. mask=last.tcanny(sigma=1.2, mode=1, plane=1)
  13.  
  14. ### export clip: mask
  15.  
  16. ### prefetch: 16,8
  17. ### lock threads to cores
  18.  
  19. ### ###
  20.  
  21. ### platform: win32
  22.  
  23. SetMemoryMax(1000)
  24.  
  25. src=last
  26. nr=src.MCTD(settings="medium", radius=3, sigma=4, limit=-1, limit2=0, chroma=false, twopass=false, useTTmpSm=false,
  27. \pp=true, protect=true, deblock=false, useQED=true, enhance=false, GPU=false, fixband=true, sharp=false)
  28. lumamask1=src.mt_lut("x 95 > 255 x 63 > x 32 - 2 << x 15 > 128 255 ? ? ?",U=1,V=1).RemoveGrain(19, -1)
  29. anr=mt_merge(src,nr,lumamask1,luma=false,Y=3,U=4,V=4)
  30. nrmask=mt_lut(mask,"x 3 - 6 <<",Y=3,U=1,V=1)
  31. mnr=mt_merge(anr,src,nrmask,luma=false,Y=3,U=2,V=2)
  32.  
  33. ### export clip: mnr, mask
  34.  
  35. ### prefetch: 8,4
  36. ### lock threads to cores
  37.  
  38. ### ###
  39.  
  40. ### platform: win32
  41.  
  42. SetMemoryMax(400)
  43.  
  44. src=last
  45.  
  46.   w       = width(src)
  47.   h       = height(src)
  48.   upw4    = Round(w*0.375)*4
  49.   uph4    = Round(h*0.375)*4
  50.   dehalo = mnr.Dehalo_Alpha_mt(darkstr=0.2,brightstr=1.0,rx=1.8,ry=1.8,highsens=100,lowsens=30)
  51.   aa_clip = dehalo.nnedi3_rpow2(rfactor=2, fwidth=upw4, fheight=upw4, nsize=1, nns=3, qual=2).SangNom(aa=48).TurnRight().SangNom(aa=48).binomialBlur(varY=0.5,varC=0.5,usemmx=true).Spline36Resize(h, w, 0.5, -0.5).TurnLeft()
  52.   #aa_clip = dehalo.Spline64Resize(upw4, uph4).Repair(dehalo.GaussResize(upw4, uph4, p=100), 1).SangNom(aa=48).TurnRight().SangNom(aa=48).binomialBlur(varY=0.5,varC=0.5,usemmx=true).Spline36Resize(h, w).TurnLeft()
  53.   #aa_clip = dehalo.eedi2(field=1, mthresh=10, lthresh=20, vthresh=20, maxd=24, nt=50).Spline36Resize(w, h, 0, -0.5).TurnRight().eedi2(field=1, mthresh=10, lthresh=20, vthresh=20, maxd=24, nt=50).Spline36Resize(h, w, 0, -0.5).TurnLeft()
  54.   aa_cs = mt_adddiff(aa_clip, mt_makediff(aa_clip, aa_clip.RemoveGrain(24), U=3, V=3).Repair(mt_makediff(dehalo, aa_clip, U=3, V=3), 13), U=3,V=3)
  55.  
  56. ### export clip: aa_cs, mnr, mask
  57.  
  58. ### branch: 2
  59. ### prefetch: 8,4
  60. ### lock threads to cores
  61.  
  62. ### ###
  63.  
  64. ### platform: win32
  65.  
  66. SetMemoryMax(400)
  67.  
  68. src=last
  69.  
  70.   #blurc = src.binomialBlur(varY=0.5,varC=0.5,usemmx=true)
  71.   sharpmask = mask.mt_lut("x 48 < 0 x 144 >= 399 x - x 2 << 188 - ? ?",U=1,V=1)
  72.   postaaC = aa_cs.LSFmod1(defaults="slow",Smode=5,Smethod=3,Lmode=4,strength=80,sharpmask=sharpmask,preblur="OFF",secure=true,edgemode=0,soft=-2,soothe=true,ss_x=1.00,ss_y=1.00,source=src)
  73.   aamask = mask.mt_lut("x 32 < x 255 ?", U=1, V=1).mt_inflate()#.RemoveGrain(20, -1)
  74.   aaed = mt_merge(mnr, postaaC, aamask, luma=true, U=3, V=3 )
  75. dbmask=mt_lut(mask,"x 4 - 6 <<",Y=3,U=1,V=1)
  76.  
  77. ### export clip: aaed, dbmask
  78.  
  79. ### prefetch: 6,3
  80. ### lock threads to cores
  81.  
  82. ### ###
  83.  
  84. SetMemoryMax(1200)
  85.  
  86. db1=aaed.GradFun3( smode=1, thr=0.25, elast=2.5, ampn=0, radius=16, ampo=0.8, dthr=0.011, lsb=true, lsb_in=false, mask=0 )
  87. db2=db1.f3kdb(range=24, Y=56, Cb=48, Cr=48, grainY=0, grainC=0, dither_algo=2, dynamic_grain=true, keep_tv_range=false, input_mode=1, output_mode=1, output_depth=16)
  88. lumamask2=aaed.mt_lut("x 80 > x 80 - 1 << 80 x - 2 << ?",Y=3,U=1,V=1).RemoveGrain(19,-1)
  89. db=Dither_merge16_8(db2,db1,lumamask2,luma=true)
  90. np=db.GrainFL(lsb_in=true, lsb=true, th1=16, th2=24, th3=80, th4=128, 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)
  91. Dither_merge16_8(np, aaed.Dither_convert_8_to_16(), dbmask, luma=true)
  92.  
  93. f3kdb(range=0, Y=0, Cb=0, Cr=0, grainY=0, grainC=0, dither_algo=2, dynamic_grain=true, keep_tv_range=false, input_mode=1, output_mode=2, output_depth=10)
  94.  
  95. #""")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement