-2

I want to write a program (preferably in python or java) that can stitch together multiple clips (mp4 videos) into one big video. I used the moviepy library in Python, but the program took 40 minutes to join 50 clips of ~15 seconds. Is there any way to write a faster program? There will always be about 40-50 clips of 10-15 seconds. Thanks.

rubik
  • 1
  • If all the clips are using the same codec, resolution etc., it should be possible to do a straight copy of the video and audio data rather than decoding and encoding again. Look into `ffmpeg` which can do this out of the box; see e.g. [this question](https://stackoverflow.com/questions/7333232/how-to-concatenate-two-mp4-files-using-ffmpeg). – Thomas May 28 '22 at 14:44

0 Answers0