Skip to content

Instantly share code, notes, and snippets.

@Zulko
Created August 19, 2021 21:10
Show Gist options
  • Save Zulko/57e6e50debef1834fb9b60700b1b9f99 to your computer and use it in GitHub Desktop.
Save Zulko/57e6e50debef1834fb9b60700b1b9f99 to your computer and use it in GitHub Desktop.
from moviepy.editor import *
from moviepy import *
video = VideoFileClip(r"[MYFILE]").subclip(50,60)
# Make the text. Many more options are available.
txt_clip = ( TextClip("My Holidays 2013",fontsize=70,color='white')
.set_position('center')
.set_duration(10) )
result = CompositeVideoClip([video, txt_clip]) # Overlay text on video
result.write_videofile("myHolidays_edited.webm",fps=25) # Many options...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment