Advertisement
Guest User

Untitled

a guest
Jun 17th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Captured in 720x536 with Fraps and resized to 1920x1072 (letterboxed)
  2. # I didn't include the code of the original functions used (it bloated the script), you can search for them on doom9.org
  3.  
  4. # File Opening
  5. AviSource("D:\Videos\Shen41.avi") + AviSource("D:\Videos\Shen42.avi") + AviSource("D:\Videos\Shen43.avi")
  6. AssumeFPS(59.95)
  7. ConvertToYV12()
  8.  
  9. # Cuts the end of the last assembled video
  10. Trim(0, 32650)
  11.  
  12. # Framerate (59.95 -> 29.97)
  13. salfps3(framerate() / 2)
  14.  
  15. # Resize x2
  16. nnedi3_rpow2(rfactor=2, nsize=6, nns=3, qual=2, pscrn=True, cshift="Spline36Resize", fapprox=0)
  17. mt_lutxy(binomialblur(1.0),yexpr="x x y - abs 1 x y - 10 / / atan * +",u=2,v=2)
  18.  
  19. clpo = last
  20. # Apply light Gauss blur to luma (maybe...me prefer not).
  21. Clp2 = clpo.BinomialBlur(vary=2) # From tsp's VariableBlur filter
  22.  
  23. # Apply contrast S-curve to luma; slight bias to 'mid-to-highlights':    
  24. Blend_MT_alpha3(Clpo, clp2=clp2, BLMode="Overlay", Opac1=0.6, Opac2=0.7)
  25.  
  26. # Apply tint (Sienna or whatever) favouring mid-tones.  
  27. merge(Stint_v1($BAC4FF, 0.35, 140, 180, 0, 210, clp2=clpo), 0.2)
  28.  
  29. # Gamma
  30. SmoothLevels(gamma=1.20, Smode=4)
  31. SmoothTweak(contrast=1.1, Smode=4)
  32.  
  33. # Sharpen
  34. source = last
  35. sharp0 = source.sharpen(0.5)
  36. sharpD = mt_makediff(source,sharp0)
  37. zeroD = sharpD.mt_lut("x",Y=-128)
  38.  
  39. sup1   = source.MSuper(pel=2,sharp=1)
  40. sup2   = sharpD.MSuper(pel=2,sharp=1,levels=1)
  41. bv1    = sup1.MAnalyse(isb=true, delta=1)
  42. fv1    = sup1.MAnalyse(isb=false,delta=1)
  43. bv2    = sup1.MAnalyse(isb=true, delta=2)
  44. fv2    = sup1.MAnalyse(isb=false,delta=2)
  45.  
  46. zeroD.MDegrain2(sup2,bv1,fv1,bv2,fv2)
  47. source.mt_makediff(last,U=2,V=2)
  48.  
  49. # Denoiser to help compressibility
  50. Undot()
  51. FFT3DGPU(Sigma=1, Sharpen=0, Precision=2)
  52.  
  53. # Bloom
  54. merge(Bloom(255), 0.25)
  55.  
  56. # "crops out bad luma/chroma values, and thus helps compression"
  57. Limiter()
  58.  
  59. # Crop
  60. crop(6, 0, -6, 0)
  61.  
  62. # Borders to fit 1080p
  63. AddBorders(246, 0, 246, 0)
  64.  
  65. # Fades In & Out
  66. FadeIn(12)
  67. FadeOut(500)
  68.  
  69. # Audio dub
  70. video = last
  71. audio = WAVSource("G:\Shenmue.wav")
  72. AudioDub(video, audio).DelayAudio(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement