Utilizes FFmpeg to enable video format conversion, information extraction, and batch processing across multiple formats (MP4, AVI, MOV, WebM, MKV, FLV, WMV, M4V) with customizable quality settings and encoding parameters.
Video MCP Server
一个基于 Model Context Protocol (MCP) 的视频处理服务器,提供视频格式转换、信息获取和批量处理功能。
功能特性
- 🎬 视频格式转换 - 支持多种视频格式之间的转换 (MP4, AVI, MOV, WebM, MKV, FLV, WMV, M4V)
- 📊 视频信息获取 - 获取视频文件的详细信息(时长、分辨率、编解码器等)
- 🔄 批量处理 - 支持批量转换多个视频文件
- ⚡ 实时进度 - 提供转换进度回调
- 🎯 质量控制 - 支持多种质量预设 (low, medium, high, ultra)
- 🛠️ 灵活配置 - 支持自定义分辨率、码率、帧率等参数
安装
使用方法
作为 MCP 服务器
在你的 MCP 客户端配置中添加:
作为 Node.js 模块
MCP 工具
convert_video
转换视频格式
参数:
input
(string): 输入视频文件路径output
(string): 输出视频文件路径format
(string): 目标格式 (mp4, avi, mov, webm, mkv, flv, wmv, m4v)quality
(string, 可选): 质量预设 (low, medium, high, ultra)resolution
(object, 可选): 目标分辨率{width: number, height: number}
videoBitrate
(number, 可选): 视频码率audioBitrate
(number, 可选): 音频码率frameRate
(number, 可选): 帧率overwrite
(boolean, 可选): 是否覆盖已存在的文件
get_video_info
获取视频文件信息
参数:
filePath
(string): 视频文件路径
batch_convert
批量转换视频文件
参数:
inputs
(array): 输入文件路径数组outputDir
(string): 输出目录format
(string): 目标格式quality
(string, 可选): 质量预设overwrite
(boolean, 可选): 是否覆盖已存在的文件
支持的格式
格式 | 扩展名 | 视频编解码器 | 音频编解码器 |
---|---|---|---|
MP4 | .mp4 | H.264 | AAC |
AVI | .avi | H.264 | AAC |
MOV | .mov | H.264 | AAC |
WebM | .webm | VP9 | Opus |
MKV | .mkv | H.264 | AAC |
FLV | .flv | H.264 | AAC |
WMV | .wmv | H.264 | AAC |
M4V | .m4v | H.264 | AAC |
质量预设
预设 | 视频码率 | 音频码率 | 描述 |
---|---|---|---|
low | 1000k | 96k | 低质量 |
medium | 2500k | 128k | 中等质量 |
high | 5000k | 192k | 高质量 |
ultra | 8000k | 320k | 超高质量 |
系统要求
- Node.js 16+
- FFmpeg (需要在系统PATH中可用)
安装 FFmpeg
Windows:
macOS:
Linux:
开发
许可证
MIT License
贡献
欢迎提交 Issue 和 Pull Request!
更新日志
v1.0.0
- 初始版本发布
- 支持多种视频格式转换
- 提供 MCP 服务器接口
- 支持批量处理和进度回调
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A Model Context Protocol server that provides video processing capabilities including format conversion, metadata extraction, and batch processing with configurable quality settings.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides web content fetching and conversion capabilities.Last updated -44582JavaScriptMIT License
- AsecurityFlicenseAqualityA Node.js server that provides advanced video and image processing capabilities through the Model Context Protocol, enabling operations like conversion, compression, editing, and effects application.Last updated -10920JavaScript
- AsecurityAlicenseAqualityModel Context Protocol server that enables generating videos from text prompts and/or images using AI models (Luma Ray2 Flash and Kling v1.6 Pro) with configurable parameters like aspect ratio, resolution, and duration.Last updated -23JavaScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables developers to integrate advanced text-to-speech and video translation capabilities into their applications through simple API calls.Last updated -PythonMIT License