Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # The ffdshow VfW interface must be installed to decode the source AVI, which is encoded with FFV1. See http://ffdshow-tryout.sourceforge.net/
- # This script also requires MPASource, info at http://avisynth.org.ru/docs/english/externalfilters/mpasource.htm
- # The rest of the filters are internal
- # Expanded a bit for clarity, though it's been years since I've used AviSynth so my syntax could be a bit rusty
- # We speed up the source framerate by 1.5x to match the original video and have it more in tune with the speed of the song
- # It's then converted back down to standard NTSC because this is what Youtube expects. changefps() looks nicer than convertfps() in this case.
- # To create a native 36 fps video, remove the changefps line and scale all frame offsets by 1.5.
- src = avisource("bel.avi").assumefps(36000,1001).changefps("ntsc_video").loop(106,11,70)
- # Images were pregenerated instead of using subtitle() because I didn't feel like installing Japanese fonts in WINE
- placeholder = blankclip(src,length=28).killaudio()
- images = ImageSource("1.png",end=24) +\
- ImageSource("2.png",end=1) +\
- ImageSource("3.png",end=4) +\
- ImageSource("4.png",end=26) +\
- ImageSource("5.png",end=12) +\
- ImageSource("6.png",end=13) +\
- ImageSource("7.png",end=13) +\
- ImageSource("8.png",end=11) +\
- ImageSource("9.png",end=12) +\
- ImageSource("10.png",end=2) +\
- ImageSource("11.png",end=174)
- intro = placeholder + images.converttoyv12().assumefps("ntsc_video")
- # Animate in the video itself
- yatta = ImageSource("12.png",pixel_type="RGB32",end=122)
- intro = animate(197,319,"Overlay",intro,yatta,640,0,yatta.showalpha(),intro,yatta,-1280,0,yatta.showalpha())
- video = animate(239,320,"Overlay",intro, src,1280,intro, src,0)+src.trim(90,0).loop(21,6601,6602) # Pad the back with some extra frames
- # Mix the audio sources in
- nyan = mpasource("nyan.mp3",normalize=false)
- horse = tone(180+41.885,1,44100,2,"silence") + wavsource("horse.wav").normalize(2.0)
- audio = mixaudio(nyan,horse)
- return audiodub(video,audio)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement