Soooo, I have no clue how to do this and am completely new to python however, I would like to select all images in a folder and turn them into 10 second individual videos for each image using MoviePy.
but instead of combining all the images together into one video, I want to make multiple videos for each individual image in the folder. From what I know you can use import glob
to get all images in the folder but that's about it.
I have tried:
clips = [ImageClip(clip).set_duration(10) for clip in glob("imagesfolder/*.jpg")]
video_clip = concatenate_videoclips(clips, method="compose")
audioclip = AudioFileClip("backgroundmusicforduck.mp3")
new_audio = afx.audio_loop(audioclip, duration=video_clip.duration)
video_clip.audio = new_audio
video_clip.write_videofile("memes.mp4", fps=24, remove_temp=True, codec="libx264", audio_codec="aac")
but all this does is combine all the images together into one video.. Thanks!!!