😫 The Pain Point
You recorded a podcast as video but only need the audio for distribution. Or you want to extract background music from a video for reference.
🚀 Agentic Solution
An Audio Extractor that pulls sound from any video format.
Key Features:
- Multiple Formats: MP3, WAV, AAC, FLAC.
- Bitrate Control: Adjustable quality.
- Batch Mode: Extract from multiple videos.
⚔️ Phase 1: Commander (Quick Fix)
For quick extraction.
Prompt:
“I have a folder
videoswith video files. Write a Python script using FFmpeg to:
- Extract: Audio from all videos.
- Format: MP3 at 192kbps.
- Output: Save to
audio/folder with same filenames.Print progress. Handle videos without audio (skip with warning).”
Result: Audio files ready for any platform.
🏗️ Phase 2: Architect (Permanent Tool)
Engineering Prompt:
**Role:** Python Tool Developer
**Task:** Create an "Audio Extractor".
**Requirements:**
1. **GUI:**
* Select video or folder.
* Format dropdown (MP3, WAV, AAC, FLAC).
* Bitrate slider (for lossy formats).
* Progress bar.
2. **Logic:**
* Detect input audio codec.
* Option to copy without re-encode (if compatible).
* Handle multi-track audio (extract all or select).
3. **Deliverables:**
* `extract_audio.py`
* `run.bat`, `run.sh`
* `requirements.txt`
🧠 Prompt Decoding
- -vn flag: Tells FFmpeg to ignore video streams.
🛠️ Instructions
- Install FFmpeg.
- Copy Prompt → Run.