Skip to content

Instantly share code, notes, and snippets.

@noveoko
Created January 15, 2021 21:54
Show Gist options
  • Select an option

  • Save noveoko/bc16b564a3016ec2e8b3a71c8e19276a to your computer and use it in GitHub Desktop.

Select an option

Save noveoko/bc16b564a3016ec2e8b3a71c8e19276a to your computer and use it in GitHub Desktop.
import moviepy
from moviepy.editor import VideoFileClip, concatenate_videoclips
import glob
files = glob.glob("*." + suffix)
files = [VideoFileClip(file) for file in files]
final_video = concatenate_videoclips(files)
final_video.write_videofile(outputPath.split(".")[0] + ".mp4")
if __name__ == "__main__":
print("--------------Video Glue----------------")
suffix = input('Video extension:')
outputPath = input('Name of output video:')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment