Advertisement
Guest User

RR MUSTERSKRIPT

a guest
Jun 4th, 2013
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* VIDEOS LADEN */
  2. platz1 = DirectShowSource("gewinner.mp4")
  3. platz2 = DirectShowSource("loser1.mp4")
  4. platz3 = DirectShowSource("loser2.mp4")
  5. platz4 = AviSource("loser3_01.avi") +\
  6. AviSource("loser3_02.avi")
  7.  
  8.  
  9. /* GEWINNERVIDEO BEARBEITEN */
  10. platz1 = platz1.ConvertToRGB()
  11. platz1 = platz1.ChangeFPS(25) # oder 30
  12. platz1 = platz1.ResampleAudio(44100) # oder 48000
  13. platz1 = platz1.AddBorders(214, 0, 0, 0, $000000) # 3 weitere Videos untereinander, Auflösung ist 640x480 deswegen: 640/3=~214
  14.  
  15.  
  16. /* VERLIERERVIDEOS BEARBEITEN */
  17. platz2 = platz2.ConvertToRGB()
  18. platz2 = platz2.BilinearResize(214,160)
  19. platz2 = platz2.ChangeFPS(25) # oder 30
  20. platz2 = platz2.ResampleAudio(44100) # oder 48000
  21. platz2 = platz2.AmplifyDB(-1000)
  22.  
  23. platz3 = platz3.ConvertToRGB()
  24. platz3 = platz3.BilinearResize(214,160)
  25. platz3 = platz3.ChangeFPS(25) # oder 30
  26. platz3 = platz3.ResampleAudio(44100) # oder 48000
  27. platz3 = platz3.AmplifyDB(-1000)
  28.  
  29. platz4 = platz4.ConvertToRGB()
  30. platz4 = platz4.BilinearResize(214,160)
  31. platz4 = platz4.ChangeFPS(25) # oder 30
  32. platz4 = platz4.ResampleAudio(44100) # oder 48000
  33. platz4 = platz4.AmplifyDB(-1000)
  34.  
  35.  
  36. /* VIDEOS ZUSAMMENBAUEN */
  37. videos_komplett = platz1.Overlay(platz2, 0, 0)
  38. videos_komplett = videos_komplett.Overlay(platz3, 0, 161)
  39. videos_komplett = videos_komplett.Overlay(platz4, 0, 321)
  40.  
  41.  
  42. /* TIMER HINZUFÜGEN */
  43. videos_komplett = videos_komplett.ShowSMPTE(fps=25, x=220, y=470, font="Silkscreen", size=16, text_color=$FFFFFF, halo_color=$000000) # oder fps=30, font kann jeder im System installierter Font sein
  44.  
  45.  
  46. /* NAMEN HINZUFÜGEN */
  47. videos_komplett = videos_komplett.Subtitle("PLATZ 1", x=220, y=5, first_frame=0, last_frame=last.framecount-1, font="Silkscreen", size=16, text_color=$FFFFFF, halo_color=$000000, align=7) # font kann jeder im System installierter Font sein
  48. videos_komplett = videos_komplett.Subtitle("PLATZ 2", x=5, y=5, first_frame=0, last_frame=last.framecount-1, font="Silkscreen", size=16, text_color=$FFFFFF, halo_color=$000000, align=7) # font kann jeder im System installierter Font sein
  49. videos_komplett = videos_komplett.Subtitle("PLATZ 3", x=5, y=165, first_frame=0, last_frame=last.framecount-1, font="Silkscreen", size=16, text_color=$FFFFFF, halo_color=$000000, align=7) # font kann jeder im System installierter Font sein
  50. videos_komplett = videos_komplett.Subtitle("PLATZ 4", x=5, y=325, first_frame=0, last_frame=last.framecount-1, font="Silkscreen", size=16, text_color=$FFFFFF, halo_color=$000000, align=7) # font kann jeder im System installierter Font sein
  51.  
  52.  
  53. /* FARBRAUM KONVERTIEREN UND ENDVIDEO AUSGEBEN */
  54. endvideo = videos_komplett.ConvertToYV12()
  55. return endvideo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement