relatively new python user here. I'm trying to use moviepy to splice up 5 min long videos into 8-second bits. I used the code in this thread to extract subclips and it works. I did the following to make it a loop that covers the whole video, but I only get one 8-sec video as an output:
from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip
videopath = '../img/videos/Mopac+Cesarchavez-1.m4v'
for sec in videopath:
sec = 0
ffmpeg_extract_subclip(videopath, sec, sec+8.00, "../img/videos/subclips/testclip.mp4")
if sec == 327:
break
Do I need to specify a naming convention so that my output isn't just one video? How would I do that?