😫 The Pain Point
You need thumbnails from a video every 30 seconds, or you want to grab specific frames for a storyboard. Pausing and screenshotting is imprecise.
🚀 Agentic Solution
A Frame Extractor that captures images at exact intervals or timestamps.
Key Features:
- Interval Mode: One frame every N seconds.
- Timestamp Mode: Specific frames at given times.
- Quality Control: PNG or JPG with adjustable quality.
⚔️ Phase 1: Commander (Quick Fix)
For quick extraction.
Prompt:
“I have a video
tutorial.mp4. Write a Python script using FFmpeg to:
- Extract: One frame every 30 seconds.
- Format: PNG for quality.
- Output: Save as
frames/frame_001.png,frame_002.png, etc.Print progress. Alternative: Extract at specific timestamps (0:30, 1:45, 5:00).”
Result: Perfect stills from your video.
🏗️ Phase 2: Architect (Permanent Tool)
Engineering Prompt:
**Role:** Python Tool Developer
**Task:** Create a "Video Frame Extractor".
**Requirements:**
1. **GUI:**
* Select video.
* Mode: Interval (every N seconds) vs Timestamps (list).
* Format dropdown (PNG, JPG).
* Quality slider (for JPG).
* Preview extracted frames.
* Progress bar.
2. **Logic:**
* Use FFmpeg fps filter for interval mode.
* Use -ss for timestamp mode (fast seeking).
* Name frames sequentially.
3. **Deliverables:**
* `extract_frames.py`
* `run.bat`, `run.sh`
* `requirements.txt`
🧠 Prompt Decoding
- fps filter:
fps=1/30means 1 frame every 30 seconds.
🛠️ Instructions
- Install FFmpeg.
- Copy Prompt → Specify interval → Run.