Concatenation + Outro

Sorry, im new in python and Moviepy, so i don’t know how can i redact this this properly, this is my code it takes 100 clips and cut every 10 (that works)
but i want to add an outro

something like this:

for i, j in enumerate(range(0, len(videos), CLIP_SIZE)):
       final_clip = concatenate_videoclips(videos[j:j+CLIP_SIZE])

to this


for i, j in enumerate(range(0, len(videos), CLIP_SIZE)):
       final_clip = concatenate_videoclips(videos[j:j+CLIP_SIZE], outro)  #<-------------------

but it returns an error

1 possible answer(s) on “Concatenation + Outro

  1. You need to pass the clips as a list: concatenate_videoclips([videos[j:j+CLIP_SIZE], outro]) 😉

    This isn’t quite right. concatenate_videoclips(videos[j:j+CLIP_SIZE] + [outro]) is what you want.