Advertisement
Stovent

AVISynth script

Nov 27th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\DeDup.dll")
  2.  
  3. #Open the source
  4. a = AVISource("SNES Prince of Persia.avi")
  5. a2 = AVISource("SNES Prince of Persia_1.avi")
  6. a3 = AVISource("SNES Prince of Persia_2.avi")
  7. a4 = AVISource("SNES Prince of Persia_3.avi")
  8. a5 = AVISource("SNES Prince of Persia_4.avi")
  9. a6 = AVISource("SNES Prince of Persia_5.avi")
  10. a7 = AVISource("SNES Prince of Persia_6.avi")
  11. a8 = AVISource("SNES Prince of Persia_7.avi")
  12. a9 = AVISource("SNES Prince of Persia_8.avi")
  13. a10 = AVISource("SNES Prince of Persia_9.avi")
  14. a11 = AVISource("SNES Prince of Persia_10.avi")
  15. a12 = AVISource("SNES Prince of Persia_11.avi")
  16. a13 = AVISource("SNES Prince of Persia_12.avi")
  17.  
  18. #Defines how long the logo goes for and the source of the logo
  19. b = ImageSource(file="Encoder logo N64, SNES.png", start=0, end=119, fps=a.FrameRate).ConvertToRGB24()
  20.  
  21. #Adds blank audio to the logo
  22. c = BlankClip(b, audio_rate=a.AudioRate, channels=a.AudioChannels, sample_type="16bit")
  23. d = AudioDub(b, c).Lanczos4Resize(c.width, c.height).AssumeFPS(a.FrameRateNumerator, a.FrameRateDenominator)
  24.  
  25. #Adds the logo and movie together
  26. last = d + a + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9 + a10 + a11 + a12 + a13
  27.  
  28. #Below are the subtitles, text_color is usually set to 00FFFFFF, but for the sake of looking somewhat interesting, the 00
  29. #is set to 30 to make them slightly transparent. \n is a line separator, first_frame and last_frame give the time frame for
  30. #how long the subtitles last.
  31. Subtitle("Prince of Persia by Challenger and Odongdong\nPlaying time: 33:31.2\nRerecord count: 24533", y=165, align=8, first_frame=624, last_frame=924, size=13.0, text_color=$30FFFFFF, halo_color=$00000000, lsp=1)
  32. Subtitle("This is a tool-assisted recording.\nFor details, visit http://TASVideos.org/", y=180, align=8, first_frame=1400, last_frame=1700, size=15.0, text_color=$30FFFFFF, halo_color=$00000000, lsp=1)
  33.  
  34. #Converts the video to a colourspace that can be read by direct264 or x264
  35. ConvertToYV24(chromaresample="point", matrix="PC.601")
  36. ConvertToYV12(chromaresample="lanczos4", matrix="PC.601")
  37.  
  38. #This should match the "log" file name in the other script
  39. DupMC(log="dup.txt")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement