๐ซ The Pain Point
You recorded a 5-minute tutorial. Itโs 500MB. Zalo limits files to 1GB, but Gmail is 25MB. Uploading 500MB on 4G data takes forever.
๐ Agentic Solution
The Shrinker: Reduces bitrates while keeping resolution.
Key Features:
- Target Size: โMake this video under 25MBโ.
- H.264: Standard compression compatible with all phones.
โ๏ธ Phase 1: Commander (Quick Fix)
For a single video.
Prompt:
โCompress
video.mp4to ensure it is smaller than 25MB (for Email). Use FFmpeg (via moviepy or subprocess).โ
Result: Email-ready video.
๐๏ธ Phase 2: Architect (Permanent Tool)
For Office Communication.
Engineering Prompt:
**Role:** Python Multimedia Dev
**Task:** Create a "Video Size Reducer".
**Requirements:**
1. **GUI:**
* Select Video.
* Select Target Platform (Email <25MB, Zalo <100MB).
* "Compress" button.
2. **Logic:**
* Check original duration.
* Calculate Target Bitrate = (Target Size / Duration).
* Run FFmpeg command with calculated bitrate.
3. **Deliverables:** `video_compress.py`, `run.bat` (Windows), `run.sh` (Mac).
๐ง Prompt Decoding
- Bitrate Math: File Size is not magic. Itโs
Bitrate * Duration. To hit a specific target size (e.g., 25MB), you must calculate the exact bitrate to tell the encoder. The โArchitectโ knows this formula.
๐ ๏ธ Instructions
- Copy Prompt -> Paste -> Run.
- Select File -> Target Email -> Compress.