Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. #Please note, that to fix aspect ratio in youtube, add these tags:(without the #)
  2. #yt:aspect=4:3
  3. #or
  4. #yt:aspect=16:9
  5.  
  6. a = AVISource("movie.avi")
  7. b = a.PointResize(a.width * 8, a.height * 8)
  8. d = ImageSource(file="logo1080pgb.png", start=0, end=119, fps=a.FrameRate).ConvertToRGB24()
  9. Subtitle( \
  10. game + "\n" + ( \
  11. (branch == "") ? "" : branch + "\n" \
  12. ) + "Played by " + author + "\nPlaying time: " + \
  13. time + "\nRerecord count: " + rerecords, y=(ypos * multi), \
  14. align=position, first_frame=subff, last_frame=(subff + sublength), \
  15. size=subsize * multi, text_color=$15FFFFFF, halo_color=$00000000, lsp=1 \
  16. )
  17. e = BlankClip(d, audio_rate=44100, channels=2)
  18. f = AudioDub(d, e).Lanczos4Resize(b.width, b.height).AssumeFPS(a.FrameRateNumerator, a.FrameRateDenominator)
  19. last = f + b
  20. ChangeFPS(30)
  21. ConvertToYV24(chromaresample="point")
  22. ConvertToYV12(chromaresample="point")
  23. return last
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement