Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\DeDup.dll")
- #Open the source
- 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")
- #Defines how long the logo goes for and the source of the logo
- b = ImageSource(file="Encoder logo N64, SNES.png", start=0, end=119, fps=sourcevid.FrameRate).LanczosResize(sourcevid.width,sourcevid.height).ConvertToRGB32()
- #Adds blank audio to the logo
- c = BlankClip(b, audio_rate=sourcevid.AudioRate, channels=sourcevid.AudioChannels, sample_type="16bit")
- d = AudioDub(b, c).Lanczos4Resize(c.width, c.height).AssumeFPS(sourcevid.FrameRateNumerator, sourcevid.FrameRateDenominator)
- #Adds the logo and movie together
- last = d + sourcevid
- #Below are the subtitles, text_color is usually set to 00FFFFFF, but for the sake of looking somewhat interesting, the 00
- #is set to 30 to make them slightly transparent. \n is a line separator, first_frame and last_frame give the time frame for
- #how long the subtitles last.
- 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)
- 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)
- #Converts the video to a colourspace that can be read by direct264 or x264
- ConvertToYV24(chromaresample="point", matrix="PC.601")
- ConvertToYV12(chromaresample="lanczos4", matrix="PC.601")
- #This should match the "log" file name in the other script
- DupMC(log="dup.txt")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement