question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Concatenation + Outro

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
tburrows13commented, Jan 15, 2021

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.

0reactions
estebanhirzfeldcommented, Jan 15, 2021

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

i also tried that image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Concatenating files from rawvideo - audio - Super User
I used Adobe After Effects to create a basic ~10 second outro for a video, and exported it to lossless ...
Read more >
concatenate variable length intro / outro fixed segments and ...
I've had to define the length of the intro video ( [1:v]trim=0:30 ... ) and the outro video ( [3:v]trim=0:20 ... ) -...
Read more >
Concatenating Videos Using FFmpeg | Baeldung on Linux
Likewise, let's concatenate an opening, an episode, and an ending, with two audio streams. That is, video in stream 0, audio in streams...
Read more >
gruntjs/grunt-contrib-concat: Concatenate files. - GitHub
Concatenate files. Contribute to gruntjs/grunt-contrib-concat development by creating an account on GitHub.
Read more >
bash - Concatenate several files in directory with a prepend ...
txt - outro.txt) expands to the path of a temporary file containing the output of that cat command. We use redirection instead of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found