Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FFVideoSource("Southpaw.mkv")
  2. Crop(0, 140, 0, -140)
  3. FillMargins(1, 1, 0, 1)
  4. Spline36Resize(1280,534,1,1,0,-1)
  5. safe=Crop(4, 2, -4, -2)
  6. ConvertToYV24()
  7. base1=Crop(0, 2, -0, -2)
  8.  
  9. # Top
  10.  
  11. Top1 = Crop(0, 0, 0, 1 - Height()).Tweak(cont=1.05)
  12. Top2 = Crop(0, 1, 0, 2 - Height()).Tweak(cont=0.98)
  13.  
  14. # Bottom
  15.  
  16. Bottom2 = Crop(0, Height() - 2, 0, -1).Tweak(cont=0.98)
  17. Bottom1 = Crop(0, Height() - 1, 0, -0).Tweak(cont=1.06)
  18. StackVertical(Top1, Top2, base1, Bottom2, Bottom1)
  19.  
  20. base2=Crop(4, 0, -4, 0)
  21.  
  22. # Left
  23.  
  24. Left1 = Crop(0, 0, 1 - Width(), 0).Tweak(cont=1.17)
  25. Left2 = Crop(1, 0, 2 - Width(), 0).Tweak(cont=0.98)
  26. Left3 = Crop(2, 0, 3 - Width(), 0).Tweak(cont=1.02)
  27. Left4 = Crop(3, 0, 4 - Width(), 0).Tweak(cont=1.005)
  28.  
  29. # Right
  30.  
  31. Right4 = Crop(Width() - 4, 0, -3, 0).Tweak(cont=1.15)
  32. Right3 = Crop(Width() - 3, 0, -2, 0).Tweak(cont=1.05)
  33. Right2 = Crop(Width() - 2, 0, -1, 0).Tweak(cont=1.02)
  34. Right1 = Crop(Width() - 1, 0, -0, 0).Tweak(cont=1.004)
  35. StackHorizontal(left1, left2, left3, left4, base2, Right4, Right3, Right2, Right1)
  36. ConvertToYV12()
  37. Overlay(last, safe, x=4, y=2)
  38. BalanceBorders(0, 0, 2, 2)
  39.  
  40. #Banding
  41.  
  42. Banding=f3kdb(dither_algo=3, range=15, grainY=10, dynamic_grain=true)
  43. ConditionalFilter(last, Banding, "SceneType", "<", "1")
  44. ConditionalReader("Banding.txt", "SceneType")
  45. function FDeb(clip c) {
  46. a = c
  47. b = c.GradFun3(thr=0.45)
  48. th_low  = 20
  49. th_high = 35
  50. dmask = b.levels(th_low,1.0,th_high,255,0,false)
  51. h=a.mt_merge(b,dmask,U=3,V=3,luma=true)
  52. repair(a, h, 15)
  53. return last
  54. }
  55.  
  56. #Banding.Range.txt
  57.  
  58. type int
  59. default 0
  60.  
  61. R 47142 47276 1    
  62. R 52589 52641 1
  63. R 53011 53077 1
  64. R 53178 53886 1
  65. R 66349 66495 1
  66. R 68482 68520 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement