Created
January 15, 2021 21:54
-
-
Save noveoko/bc16b564a3016ec2e8b3a71c8e19276a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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