trds

Untitled

Sep 22nd, 2021
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.59 KB | None | 0 0
  1. LoadPlugin("D:\Encode\DG\x64 Binaries\DGDecodeNV.dll")
  2. DGSource("D:\encode\shakespeare.dgi")
  3. crop(2,128,-2,-130).FillMargins(0,1,0,0)
  4. #########################################################################
  5.  
  6. ConditionalFilter(last, logo, "SceneType", ">", "1")
  7. ConditionalFilter(last, main, "SceneType", "<", "2")
  8. ConditionalFilter(last, main2, "SceneType", "<", "3")
  9. ConditionalReader("D:\encode\Scenes.txt", "SceneType")
  10.  
  11. #########################################################################
  12.  
  13. function logo(clip c) {
  14.  
  15. safe = c.Crop(0, 12, 0, -12)
  16. c.ConvertToYV24()
  17.  
  18. base1 = Crop(0, 12, 0, 0)
  19.  
  20. t1 = Crop(0, 0, 0, 1 - Height())
  21. t2 = Crop(0, 1, 0, 2 - Height())
  22. t3 = Crop(0, 2, 0, 3 - Height())
  23. t4 = Crop(0, 3, 0, 4 - Height())
  24. t5 = Crop(0, 4, 0, 5 - Height()).Tweak(cont=2.11)
  25. t6 = Crop(0, 5, 0, 6 - Height()).Tweak(cont=1.01)
  26. t7 = Crop(0, 6, 0, 7 - Height()).Tweak(cont=0.94)
  27. t8 = Crop(0, 7, 0, 8 - Height()).Tweak(cont=1.06)
  28. t9 = Crop(0, 8, 0, 9 - Height()).Tweak(cont=1.03)
  29. t10 = Crop(0, 9, 0, 10 - Height()).Tweak(cont=0.99)
  30. t11 = Crop(0, 10, 0, 11 - Height()).Tweak(cont=1.02)
  31. t12 = Crop(0, 11, 0, 12 - Height()).Tweak(cont=1.03)
  32. StackVertical(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, base1)
  33.  
  34. base2 = Crop(0, 0, 0, -12)
  35.  
  36. b1 = Crop(0, Height() - 1, 0, 0)
  37. b2 = Crop(0, Height() - 2, 0, -1)
  38. b3 = Crop(0, Height() - 3, 0, -2)
  39. b4 = Crop(0, Height() - 4, 0, -3).Tweak(cont=1.83)
  40. b5 = Crop(0, Height() - 5, 0, -4).Tweak(cont=1.03)
  41. b6 = Crop(0, Height() - 6, 0, -5).Tweak(cont=0.97)
  42. b7 = Crop(0, Height() - 7, 0, -6).Tweak(cont=1.03)
  43. b8 = Crop(0, Height() - 8, 0, -7)
  44. b9 = Crop(0, Height() - 9, 0, -8)
  45. b10 = Crop(0, Height() - 10, 0, -9)
  46. b11 = Crop(0, Height() - 11, 0, -10)
  47. b12 = Crop(0, Height() - 12, 0, -11)
  48. StackVertical(base2, b12, b11, b10, b9, b8, b7, b6, b5, b4, b3, b2, b1)
  49.  
  50. ConvertToYV12()
  51.  
  52. Overlay(last, safe, x=0, y=12)
  53.  
  54. return last
  55. }
  56.  
  57. #########################################################################
  58.  
  59. function main(clip c) {
  60.  
  61. safe = c.Crop(0, 8, 0, -8)
  62. c.ConvertToYV24()
  63.  
  64. base1 = Crop(0, 8, 0, 0)
  65.  
  66. t1 = Crop(0, 0, 0, 1 - Height()).Tweak(cont=1.06)
  67. t2 = Crop(0, 1, 0, 2 - Height()).Tweak(cont=1.06)
  68. t3 = Crop(0, 2, 0, 3 - Height()).Tweak(cont=0.92)
  69. t4 = Crop(0, 3, 0, 4 - Height()).Tweak(cont=1.04)
  70. t5 = Crop(0, 4, 0, 5 - Height()).Tweak(cont=0.97)
  71. t6 = Crop(0, 5, 0, 6 - Height()).Tweak(cont=1.01)
  72. t7 = Crop(0, 6, 0, 7 - Height()).Tweak(cont=0.98)
  73. t8 = Crop(0, 7, 0, 8 - Height()).Tweak(cont=1.01)
  74. StackVertical(t1, t2, t3, t4, t5, t6, t7, t8, base1)
  75.  
  76. base2 = Crop(0, 0, 0, -8)
  77.  
  78. b1 = Crop(0, Height() - 1, 0, 0).Tweak(cont=1.09)
  79. b2 = Crop(0, Height() - 2, 0, -1).Tweak(cont=0.95)
  80. b3 = Crop(0, Height() - 3, 0, -2).Tweak(cont=1.06)
  81. b4 = Crop(0, Height() - 4, 0, -3).Tweak(cont=0.99)
  82. b5 = Crop(0, Height() - 5, 0, -4).Tweak(cont=1.03)
  83. b6 = Crop(0, Height() - 6, 0, -5).Tweak(cont=0.99)
  84. b7 = Crop(0, Height() - 7, 0, -6).Tweak(cont=1)
  85. b8 = Crop(0, Height() - 8, 0, -7).Tweak(cont=1)
  86. StackVertical(base2, b8, b7, b6, b5, b4, b3, b2, b1)
  87.  
  88. ConvertToYV12()
  89.  
  90. Overlay(last, safe, x=0, y=8)
  91.  
  92. return last
  93. }
  94.  
  95. #########################################################################
  96.  
  97. function main2(clip c) {
  98.  
  99. safe = c.Crop(0, 12, 0, -12)
  100. c.ConvertToYV24()
  101.  
  102. base1 = Crop(0, 12, 0, 0)
  103.  
  104. t1 = Crop(0, 0, 0, 1 - Height()).Tweak(cont=1.2)
  105. t2 = Crop(0, 1, 0, 2 - Height()).Tweak(cont=1.2)
  106. t3 = Crop(0, 2, 0, 3 - Height()).Tweak(cont=1.07)
  107. t4 = Crop(0, 3, 0, 4 - Height())
  108. t5 = Crop(0, 4, 0, 5 - Height()).Tweak(cont=1.12)
  109. t6 = Crop(0, 5, 0, 6 - Height()).Tweak(cont=1.01)
  110. t7 = Crop(0, 6, 0, 7 - Height()).Tweak(cont=1.03)
  111. t8 = Crop(0, 7, 0, 8 - Height())
  112. t9 = Crop(0, 8, 0, 9 - Height())
  113. t10 = Crop(0, 9, 0, 10 - Height())
  114. t11 = Crop(0, 10, 0, 11 - Height())
  115. t12 = Crop(0, 11, 0, 12 - Height())
  116. StackVertical(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, base1)
  117.  
  118. base2 = Crop(0, 0, 0, -12)
  119.  
  120. b1 = Crop(0, Height() - 1, 0, 0).Tweak(cont=1.45)
  121. b2 = Crop(0, Height() - 2, 0, -1).Tweak(cont=1.07)
  122. b3 = Crop(0, Height() - 3, 0, -2).Tweak(cont=0.95)
  123. b4 = Crop(0, Height() - 4, 0, -3).Tweak(cont=1.05)
  124. b5 = Crop(0, Height() - 5, 0, -4).Tweak(cont=0.98)
  125. b6 = Crop(0, Height() - 6, 0, -5)
  126. b7 = Crop(0, Height() - 7, 0, -6)
  127. b8 = Crop(0, Height() - 8, 0, -7)
  128. b9 = Crop(0, Height() - 9, 0, -8)
  129. b10 = Crop(0, Height() - 10, 0, -9)
  130. b11 = Crop(0, Height() - 11, 0, -10)
  131. b12 = Crop(0, Height() - 12, 0, -11)
  132. StackVertical(base2, b12, b11, b10, b9, b8, b7, b6, b5, b4, b3, b2, b1)
  133.  
  134. ConvertToYV12()
  135.  
  136. Overlay(last, safe, x=0, y=12)
  137.  
  138. return last
  139. }
  140.  
  141. #########################################################################
  142.  
  143. Fixer(4,3,4,0)
Advertisement
Add Comment
Please, Sign In to add comment