mkv

messing-with-sunvox.avs

mkv
Dec 13th, 2012
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # load the fraps capture
  2. directShowSource("Dwm 2012-12-12 16-20-59-79.avi")
  3.  
  4. # uncompress video fully in memory, gives more exact cropping
  5. convertToRgb24()
  6.  
  7. # remove audio from the fraps capture without changing channel count
  8. delayAudio(9001).resampleAudio(44100)
  9.  
  10. # remove start menu (1/left) and window title (23/top), full width and 720 height output
  11. crop(1,23,0,720)
  12.  
  13. # add a 1px border on the left (second part of concealing the start menu)
  14. addBorders(1,0,0,0)
  15.  
  16. # forgot to disable the fraps FPS counter... orz
  17. overlay(imageReader("olay.png", pixel_type="RGB24"))
  18.  
  19. # create a new clip, "d", starting at frame 325 with audio from the sunvox export
  20. d = trim(325,0).audioDub(directShowSource("compile.wav"))
  21.  
  22. # removing a playthrough between the first and last in the final video
  23. d = d.trim(0,2763) + d.trim(5068,0)
  24.  
  25. # end video when I hit the "Stop" button
  26. d = d.trim(0,4650)
  27.  
  28. # take 15 frames of silence right before the audio starts, add 15 frames of fadein, append dubbed video
  29. trim(310,324).fadein(15) + d
  30.  
  31. # required by x264.exe (encoder)
  32. ConvertToYV12()
Advertisement
Add Comment
Please, Sign In to add comment