π« The Pain Point
You have a video with an SRT subtitle file. You need the subtitles burned into the video so they show up everywhere, even on devices that donβt support external subtitles.
π Agentic Solution
A Subtitle Burner that permanently embeds text into the video.
Key Features:
- Font Customization: Size, color, outline, position.
- Multiple Formats: SRT, ASS, VTT support.
- Batch Mode: Process multiple videos.
βοΈ Phase 1: Commander (Quick Fix)
For quick burning.
Prompt:
βI have a video
movie.mp4and subtitlesmovie.srt. Write a Python script using FFmpeg to:
- Burn: Embed subtitles into video permanently.
- Style: White text, black outline, bottom center.
- Font Size: 24pt.
- Output: Save as
movie_subtitled.mp4.Handle encoding issues (UTF-8 subtitles). Print progress.β
Result: Video with embedded subtitles.
ποΈ Phase 2: Architect (Permanent Tool)
Engineering Prompt:
**Role:** Python Tool Developer
**Task:** Create a "Subtitle Burner".
**Requirements:**
1. **GUI:**
* Select video and subtitle file.
* Font picker, size slider.
* Color picker for text and outline.
* Position dropdown (top/bottom).
* Preview with subtitle overlay.
* Progress bar.
2. **Logic:**
* Use FFmpeg subtitles filter.
* Handle different encodings.
* Option for ASS styling.
3. **Deliverables:**
* `burn_subs.py`
* `run.bat`, `run.sh`
* `requirements.txt`
π§ Prompt Decoding
- Hardcoded vs Softcoded: Hardcoded (burned) subtitles are part of the video pixels. Cannot be turned off but work everywhere.
π οΈ Instructions
- Install FFmpeg.
- Copy Prompt β Run.