I was looking for a super simple tool to create a slideshow of images and videos for a wedding.
I couldn’t find one that was simple, free, and automated, so I built my own using moviepy.
Hope it helps someone else too!
- Automatically generates a video slideshow from files in the medias/ folder
- Supports both images and videos
- Randomizes medias order
- Smooth fade transitions
- Output filename: slideshow.mp4
- Image duration: 3 seconds
- Fade duration (in/out): 0.5 seconds
- Frame rate: 24 FPS
- Audio: Disabled
You can customize these settings in the config.py file.
Create a virtual env and install moviepy via pip:
python3 -m venv .venv
source .venv/bin/activate
pip install moviepy==2.2.1
-
Place your images and videos in the
medias/directory.note that the order of the media will be randomised
you might want to run
mogrify -auto-orient *.jpgin the medias/ folder, from experience it helps ensure no pictures get rotated after processing -
From the venv, run the script:
python main.py -
Your generated slideshow will be saved as slideshow.mp4.