Advertisement
Guest User

FINAL 5

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