Skip to content

Instantly share code, notes, and snippets.

@thomasnield
Created November 3, 2021 18:21
Show Gist options
  • Save thomasnield/d4693b84d4ff17e21e58dec3672bea16 to your computer and use it in GitHub Desktop.
Save thomasnield/d4693b84d4ff17e21e58dec3672bea16 to your computer and use it in GitHub Desktop.
MoviePy Video Editing in Python
from moviepy.editor import *
clip = VideoFileClip("C:/Users/thoma/OneDrive/Workspace/Projects/Yawman/media/prototype_2_demo.mp4") \
.subclip(8*60+7,8*60+30)\
.without_audio()
final_clip = concatenate_videoclips([clip])
clip.write_videofile("C:/Users/thoma/OneDrive/Workspace/Projects/Yawman/media/turn.mp4")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment