Moviepy: Concatenation + Outro

Created on 15 Jan 2021  路  5Comments  路  Source: Zulko/moviepy

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

question video

Most helpful comment

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.

All 5 comments

but it returns an error

Could you share the error?

but it returns an error

Could you share the error?

image

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

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

i also tried that
image

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.

Was this page helpful?
0 / 5 - 0 ratings