# 🎬 ffmpeg-mcp
| ### 📊 **Media Information** - Get comprehensive metadata - Duration, resolution, codecs - Bitrate and stream details - JSON formatted output ### 🔄 **Format Conversion** - Convert between any formats - MP4, MKV, WebM, MOV, etc. - Custom video/audio codecs - Resolution scaling ### 🗜️ **Video Compression** - Quality presets (low/medium/high) - Encoding speed control - H.264 optimization - Size reduction stats ### ✂️ **Video Trimming** - Precise start/end times - Duration-based cuts - Stream copy (fast) - No re-encoding needed | ### 🎵 **Audio Extraction** - Multiple formats supported - MP3, AAC, WAV, FLAC, OGG, Opus - Bitrate control - High quality output ### 🎞️ **Advanced Features** - Merge multiple videos - Extract frames as images - Interval or count-based extraction - JPG, PNG, BMP, WebP output ### 📝 **Subtitles** - Burn-in SRT/ASS/VTT subtitles - Multiple styles available - Customizable font size - Works great with Whisper MCP |
| Platform | Command |
|---|---|
| 🪟 Windows | winget install FFmpeg |
| 🍎 macOS | brew install ffmpeg |
| 🐧 Linux | sudo apt install ffmpeg |
| Tool | Description |
|---|---|
ffmpeg_get_info |
Get comprehensive video/audio metadata - **Parameters**: `file_path` - **Returns**: JSON with duration, resolution, codecs, bitrate, streams |
| Tool | Description |
|---|---|
ffmpeg_convert |
Convert video/audio to different formats - **Parameters**: `file_path`, `output_format`, `scale`, `video_codec`, `audio_codec` - **Formats**: mp4, mkv, webm, mov, mp3, wav, etc. |
ffmpeg_compress |
Compress video to reduce file size - **Parameters**: `file_path`, `quality`, `scale`, `preset` - **Quality**: low, medium, high - **Preset**: ultrafast to veryslow |
| Tool | Description |
|---|---|
ffmpeg_trim |
Trim video to extract a segment - **Parameters**: `file_path`, `start_time`, `end_time` or `duration` - **Time format**: "00:01:30" or seconds |
ffmpeg_merge |
Concatenate multiple videos into one - **Parameters**: `file_paths` (list), `output_path` - **Supports**: Same codec videos |
| Tool | Description |
|---|---|
ffmpeg_extract_audio |
Extract audio track from video - **Parameters**: `file_path`, `audio_format`, `bitrate` - **Formats**: mp3, aac, wav, flac, ogg, opus |
ffmpeg_extract_frames |
Extract frames as images - **Parameters**: `file_path`, `interval` or `count`, `format` - **Formats**: jpg, png, bmp, webp |
| Tool | Description |
|---|---|
ffmpeg_add_subtitles |
Burn-in subtitles to video (hardcode) - **Parameters**: `file_path`, `subtitle_path`, `style`, `font_size`, `output_path` - **Formats**: SRT, ASS, VTT - **Styles**: outline, shadow, background, glow |