Troubleshooting & FFmpeg Setup - jxoesneon/gemini-audio-mcp GitHub Wiki
🛠️ Troubleshooting & FFmpeg Setup
FFmpeg is the "heart" of our audio engine. It handles all the heavy lifting for transcoding raw PCM data into your preferred formats.
📥 Installing FFmpeg
🍎 macOS
The easiest way is via Homebrew:
brew install ffmpeg
🐧 Linux (Ubuntu/Debian)
sudo apt update
sudo apt install ffmpeg
🪟 Windows
- Download the latest build from gyan.dev.
- Extract the
binfolder to a permanent location (e.g.,C:\ffmpeg). - Add
C:\ffmpeg\binto your System PATH. - Restart your terminal/IDE.
❌ Common Errors
"FFmpeg not found in PATH"
- Cause: The server cannot find the
ffmpegexecutable. - Fix: Run
ffmpeg -versionin your terminal. If it fails there, your installation or PATH configuration is incorrect. If you are using Docker, ensure you are using our provided image which has FFmpeg pre-installed.
"GEMINI_API_KEY not set"
- Cause: The environment variable is missing.
- Fix: Ensure your MCP client (Claude Desktop, etc.) is passing the environment variable.
- Example config:
"env": { "GEMINI_API_KEY": "your_key_here" }
"Micro-crossfade click"
- Cause: Occurs if the generated audio is too short for the requested duration.
- Fix: Increase the
durationparameter. The system needs at least 1-2 seconds of "tail" audio to perform a clean crossfade.