This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import os | |
from moviepy import ImageClip, VideoFileClip, concatenate_videoclips | |
from PIL import Image | |
def create_slideshow(image_files, image_durations, output_file, fps=60, codec="libx264", preset="medium", debug=False, test_run=False, overwrite="ask"): | |
""" | |
Creates a slideshow video from a list of images. | |
Parameters: |