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
- a = AVISource("SNES Prince of Persia.avi")
- a2 = AVISource("SNES Prince of Persia_1.avi")
- a3 = AVISource("SNES Prince of Persia_2.avi")
- a4 = AVISource("SNES Prince of Persia_3.avi")
- a5 = AVISource("SNES Prince of Persia_4.avi")
- a6 = AVISource("SNES Prince of Persia_5.avi")
- a7 = AVISource("SNES Prince of Persia_6.avi")
- a8 = AVISource("SNES Prince of Persia_7.avi")
- a9 = AVISource("SNES Prince of Persia_8.avi")
- a10 = AVISource("SNES Prince of Persia_9.avi")
- a11 = AVISource("SNES Prince of Persia_10.avi")
- a12 = AVISource("SNES Prince of Persia_11.avi")
- a13 = AVISource("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=a.FrameRate).ConvertToRGB24()
- #Adds blank audio to the logo
- c = BlankClip(b, audio_rate=a.AudioRate, channels=a.AudioChannels, sample_type="16bit")
- d = AudioDub(b, c).Lanczos4Resize(c.width, c.height).AssumeFPS(a.FrameRateNumerator, a.FrameRateDenominator)
- #Adds the logo and movie together
- last = d + a + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9 + a10 + a11 + a12 + a13
- #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("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