I am making a program that cuts out certain parts of a video in MoviePy. I have a list like this:
myList = [[3, 7], [11, 15]]
and want to remove those times from the video - so it would remove the 3-7 second, and the 11-15 second, etc.
This list has lots of values in it, so if I try this:
for x in myList:
videoObject = videoObject.cutout(x[0], x[1])
it works but eventually comes up with a RecursionError: maximum recursion depth exceeded while calling a Python object
which is probably because I am calling that function a lot of times.
Is there any easy way I can do this?