π« The Pain Point
You have 100 vacation photos. You want a video to post on Facebook. Dragging 100 photos into a timeline editor and adjusting duration for each is tedious.
π Agentic Solution
One-Click Slideshow: Folder + Music = Video.
Key Features:
- Beat Sync: Calculates photo duration to match music length.
- Resizing: Automatically adds black bars (padding) so landscape and portrait photos fit the same video.
βοΈ Phase 1: Commander (Quick Fix)
For a quick memory video.
Prompt:
βCreate a slideshow video from the βPhotosβ folder using βmusic.mp3β as background. 3 seconds per image. Use crossfade transition.β
Result: An MP4 video.
ποΈ Phase 2: Architect (Permanent Tool)
For Content Creators.
Engineering Prompt:
**Role:** Python Video Editor
**Task:** Create a "Batch Slideshow Generator".
**Requirements:**
1. **GUI:**
* Select Image Folder.
* Select Audio File.
* Input: Seconds per Image.
* "Render" button.
2. **Logic:**
* Load images, resize to 1920x1080 (Letterbox) to ensure consistency.
* Create `ImageClip` sequence with transitions.
* Loop or Cut audio to fit video length.
* Write MP4.
3. **Deliverables:** `slideshow_gen.py`, `run.bat` (Windows), `run.sh` (Mac).
π§ Prompt Decoding
- Uniformity: If you mix vertical phone photos with horizontal camera photos, the video glitches. The engineering prompt explicitly asks to βresize to 1920x1080β to handle this aspect ratio mismatch.
π οΈ Instructions
- Copy Prompt -> Paste -> Run.
- Select Photos + Music -> Render.