from command line or python would be best. and i am trying to concatenate around 15 clips of 45 seconds. preferably easy to automate with different number of videos and of different length.
Asked
Active
Viewed 1,352 times
1 Answers
2
Using MoviePy, which can import videos at a specific resolution:
from moviepy.editor import VideoFileClip, concatenate_videoclips
filenames = ["vid1.mp4", "vid2.mp4"] # You could generate this from os.listdir or similar
clips = []
for file in filenames:
clips.append(VideoFileClip(file, target_resolution=(1080, 1920))
final_clip = concatenate_videoclips(clips) # method="chain" by default. This is fine because all clips are the same size
final_clip.write_videofile("out.mp4")

Zack Walton
- 191
- 1
- 12

Tom Burrows
- 2,225
- 2
- 29
- 46