Advertisement
Stovent

AVISynth script1

Nov 28th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\DeDup.dll")
  2.  
  3. #Open the source
  4. sourcevid = AVISource("C:\Users\Elian\Documents\Emulateurs\BizHawk\Movies\SNES Price of Persia\SNES Prince of Persia.avi") + AVISource("C:\Users\Elian\Documents\Emulateurs\BizHawk\Movies\SNES Price of Persia\SNES Prince of Persia_1.avi") + AVISource("C:\Users\Elian\Documents\Emulateurs\BizHawk\Movies\SNES Price of Persia\SNES Prince of Persia_2.avi") + AVISource("C:\Users\Elian\Documents\Emulateurs\BizHawk\Movies\SNES Price of Persia\SNES Prince of Persia_3.avi") + AVISource("C:\Users\Elian\Documents\Emulateurs\BizHawk\Movies\SNES Price of Persia\SNES Prince of Persia_4.avi") + AVISource("C:\Users\Elian\Documents\Emulateurs\BizHawk\Movies\SNES Price of Persia\SNES Prince of Persia_5.avi") + AVISource("C:\Users\Elian\Documents\Emulateurs\BizHawk\Movies\SNES Price of Persia\SNES Prince of Persia_6.avi") + AVISource("C:\Users\Elian\Documents\Emulateurs\BizHawk\Movies\SNES Price of Persia\SNES Prince of Persia_7.avi") + AVISource("C:\Users\Elian\Documents\Emulateurs\BizHawk\Movies\SNES Price of Persia\SNES Prince of Persia_8.avi") + AVISource("C:\Users\Elian\Documents\Emulateurs\BizHawk\Movies\SNES Price of Persia\SNES Prince of Persia_9.avi") + AVISource("C:\Users\Elian\Documents\Emulateurs\BizHawk\Movies\SNES Price of Persia\SNES Prince of Persia_10.avi") + AVISource("C:\Users\Elian\Documents\Emulateurs\BizHawk\Movies\SNES Price of Persia\SNES Prince of Persia_11.avi") + AVISource("C:\Users\Elian\Documents\Emulateurs\BizHawk\Movies\SNES Price of Persia\SNES Prince of Persia_12.avi")
  5.  
  6. #Defines how long the logo goes for and the source of the logo
  7. b = ImageSource(file="Encoder logo N64, SNES.png", start=0, end=119, fps=sourcevid.FrameRate).LanczosResize(sourcevid.width,sourcevid.height).ConvertToRGB32()
  8.  
  9. #Adds blank audio to the logo
  10. c = BlankClip(b, audio_rate=sourcevid.AudioRate, channels=sourcevid.AudioChannels, sample_type="16bit")
  11. d = AudioDub(b, c).Lanczos4Resize(c.width, c.height).AssumeFPS(sourcevid.FrameRateNumerator, sourcevid.FrameRateDenominator)
  12.  
  13. #Adds the logo and movie together
  14. last = d + sourcevid
  15.  
  16. #Below are the subtitles, text_color is usually set to 00FFFFFF, but for the sake of looking somewhat interesting, the 00
  17. #is set to 30 to make them slightly transparent. \n is a line separator, first_frame and last_frame give the time frame for
  18. #how long the subtitles last.
  19. Subtitle("SNES 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)
  20. 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)
  21.  
  22. #Converts the video to a colourspace that can be read by direct264 or x264
  23. ConvertToYV24(chromaresample="point", matrix="PC.601")
  24. ConvertToYV12(chromaresample="lanczos4", matrix="PC.601")
  25.  
  26. #This should match the "log" file name in the other script
  27. DupMC(log="dup.txt")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement