Advertisement
Guest User

Untitled

a guest
Sep 28th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function isplice (clip c, int "frameno")
  2. {
  3.  
  4. filename =  "fixed" + RightStr( "000000" + String(frameno) ,6)  +".png"
  5. frame=imagesource(filename)
  6. frame=frame.selectevery(frame.framecount,0).assumefps(c.framerate).converttoyv24()
  7. c.trim(0,frameno-1)++frame++c.trim(frameno+1,0)
  8. }
  9.  
  10. function osplice (clip c, int "frameno")
  11. {
  12.  
  13. converttorgb32(c)
  14. ImageWriter(".\", frameno-2, frameno-2, type = "png")
  15. ImageWriter(".\", frameno-1, frameno-1, type = "png")
  16. ImageWriter(".\tofix", frameno, frameno, type = "png")
  17. ImageWriter(".\", frameno+1, frameno+1, type = "png")
  18. ImageWriter(".\", frameno+2, frameno+2, type = "png")
  19. converttoyv24(c)
  20.  
  21. }
  22.  
  23.  
  24.  
  25. #Replace With Next Frame
  26. function rwn(clip c, int fculprit)
  27. {
  28.     deleteframe(c,fculprit)
  29.     duplicateframe(fculprit)
  30. }
  31. function rwna(clip c, int fculprit)
  32. {
  33.     deleteframe(c,fculprit)
  34.     deleteframe(c,fculprit)
  35.     duplicateframe(fculprit)
  36.     duplicateframe(fculprit)
  37. }
  38.  
  39. #Replace Next Frame With Cureent
  40. function rnwc(clip c, int fculprit)
  41. {
  42.     deleteframe(c,fculprit+1)
  43.     duplicateframe(fculprit)
  44.    
  45. }
  46.  
  47.  
  48. # mildly filtered to get out more banding
  49. # installed avisynth mt
  50. SetMTmode(5,16)
  51. # source is heavily blocked cpu 4 deblocks
  52. mpeg2source("source.d2v" , cpu=4 )
  53. tfm(d2v="source.d2v")
  54. tdecimate(mode=1)
  55. ConvertToyv24()
  56. # 2 pixels lrft , 3 right 4:3 AR , makes it 1.875 from top and bottom too
  57.  
  58. Trim(3175,8999)+Trim(11159,22259)+trim(24778,40816)
  59.  
  60. #Bad scenecuts and bad frames , original width and height
  61.  
  62. rwn(433)
  63. rwn(458)
  64. rwn(590)
  65. rwn(1797)
  66. isplice(2858)
  67. isplice(2906)
  68. isplice(3178)
  69. rnwc(3737)
  70. isplice(5919)
  71. rwn(6230)
  72. rnwc(6866)
  73. rnwc(7094)
  74. rwn(7371)
  75. rwn(7551)
  76. rnwc(7974)
  77. isplice(8474)
  78. rnwc(8666)
  79. rwn(8827)
  80. rwn(9243)
  81. rwn(10344)
  82. rnwc(10493)
  83. rnwc(10934)
  84. rwn(11267)
  85. rnwc(11459)
  86. rnwc(11626)
  87. rnwc(12163)
  88. rnwc(12289)
  89. rnwc(12327)
  90. rnwc(12738)
  91. rnwc(12797)
  92. isplice(13008)
  93. rnwc(13053)
  94. rwn(13187)
  95. rwn(13267)
  96. rnwc(13379)
  97. rwn(13450)
  98. rnwc(13570)
  99. rnwc(13653)
  100. rwn(13832)
  101. rnwc(13877)
  102. isplice(14315)
  103. rwn(14819)
  104. rnwc(14882)
  105. rnwc(15262)
  106. rnwc(15466)
  107. rwn(16171)
  108. rwn(16371)
  109. rwn(16467)
  110. rnwc(17164)
  111. rnwc(17540)
  112. rnwc(17656)
  113. rnwc(18548)
  114. rwn(18953)
  115. rwn(19206)
  116. rnwc(19432)
  117. rnwc(19512)
  118. rnwc(19564)
  119. rwn(19661)
  120. rwn(19973)
  121. rwn(20285)
  122. rwn(20621)
  123. rwn(20765)
  124. rwn(21409)
  125. rnwc(21684)
  126. rwn(21958)
  127. rwn(22030)
  128. rnwc(22256)
  129. rnwc(22309)
  130. rwn(22311)
  131. rwn(23341)
  132. rwn(23437)
  133. rwn(23659)
  134. rwn(23793)
  135. rnwc(24273)
  136. rwn(24275)
  137. rwn(24388)
  138. rwn(24768)
  139. rwn(25292)
  140. rnwc(25608)
  141. rnwc(25727)
  142. rwn(25729)
  143. rwn(26097)
  144. isplice(26193)
  145. rwn(26517)
  146. rnwc(26587)
  147. rnwc(26752)
  148. rnwc(26812)
  149. rnwc(27305)
  150. rwn(27541)
  151. rnwc(27656)
  152. rwn(27752)
  153. rwn(27937)
  154. rnwc(28100)
  155. rwn(28193)
  156. rwn(28497)
  157. rwn(28878)
  158. rwn(28941)
  159. rnwc(29048)
  160. rnwc(29308)
  161. rwn(29369)
  162. rnwc(31860)
  163. rwn(32040)
  164. rwn(32540)
  165. rwn(32780)
  166. Spline36Resize(1280,720, 3, 1.875, 1435, 1076.25)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement