Skip to content

Instantly share code, notes, and snippets.

@CrashedBboy
Created October 15, 2023 12:00
Show Gist options
  • Save CrashedBboy/57bbb914add21760fb4d4e2fed23afd3 to your computer and use it in GitHub Desktop.
Save CrashedBboy/57bbb914add21760fb4d4e2fed23afd3 to your computer and use it in GitHub Desktop.
Merge Video Clips
from moviepy.editor import VideoFileClip, concatenate_videoclips
clip1 = VideoFileClip("1.mp4")
clip2 = VideoFileClip("2.mp4")
clip3 = VideoFileClip("3.mp4")
clip4 = VideoFileClip("4.mp4")
clip5 = VideoFileClip("5.mp4")
clip6 = VideoFileClip("6.mp4")
final_clip = concatenate_videoclips([clip1,clip2, clip3, clip4, clip5, clip6])
final_clip.write_videofile("concatenated_20230529.mp4")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment