😫 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)
For Podcasters/Editors.
Engineering Prompt:
**Role:** Python GUI Developer (PyQt6 Specialist)
**Task:** Create "Universal Audio Extractor" Desktop App
**Objective:** A batch tool to extract high-quality audio tracks from video collections.
**Tech Stack:**
* Language: Python 3.10+
* GUI Library: PyQt6 (Cross-platform)
* Processing: FFmpeg
* Packaging: PyInstaller
**Functional Requirements:**
1. **UI Layout (PyQt6):**
* **Source:** Drag-and-drop area for video files or folders.
* **Output Settings:** Format Combobox (MP3, WAV, FLAC, AAC).
* **Quality:** Bitrate selection (128k, 192k, 320k) for lossy formats.
* **Console:** Log output view.
2. **Core Logic:**
* Construct FFmpeg command: `ffmpeg -i input.mp4 -vn -c:a libmp3lame -b:a 192k output.mp3`.
* **Threading:** Run FFmpeg in `QProcess` to show real-time progress.
3. **Deliverables:**
* `main.py`: Complete source code.
* `requirements.txt`: Dependencies.
* **Build Instructions:**
* Windows: `pyinstaller --onefile --noconsole main.py`
* macOS: `pyinstaller --windowed --noconsole main.py`
🧠 Prompt Decoding
- -vn flag: Tells FFmpeg to ignore video streams.
🛠️ Instructions
- Install FFmpeg.
- Copy Prompt → Run.