I'm adding clips to a main clip:
final_clip = VideoFileClip('video.mp4')
secondary_clip = VideoFileClip('video2.mp4')
for tr in time_ranges:
clip = secondary_clip.subclip(tr['start'], tr['end']).set_position((0, 0))
final_clip = concatenate_videoclips([final_clip.subclip(
0, tr['end']), clip, final_clip.subclip(tr['end'], final_clip.duration)], method="compose")
Problem is that the video is 1GB+ and is 35 minutes long, so it barely renders on my laptop. Any suggestions to make it faster?
Thoughts I had:
- Try to use something different than "compose" (I need the secondary clip to be fullscreen).
- Parallelize it and concat the operations later.