
video-creator/ffmpeg-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
video-creator/ffmpeg-mcp — это кандидат на MCP-сервер, импортированный из https://github.com/video-creator/ffmpeg-mcp.
Обзор
video-creator/ffmpeg-mcp — это кандидат на MCP-сервер, импортированный из https://github.com/video-creator/ffmpeg-mcp.
Обзор (машинный перевод)
Использование командной строки ffmpeg для создания mcp-сервера может быть очень удобным через диалог для выполнения локального поиска видео, настройки, сшивания, воспроизведения и других функций
Инструменты поддержки
Сервер реализует следующие инструменты:
find_video_pathПараметры: имя каталога и файла, имя файла может быть полным или не иметь суффиксов, рекурсивный поиск в каталоге, возвращает полный путьget_video_infoПараметры: видеопуть, возврат видеоинформации, длительность/fps/кодек/ширина/высота.clip_videoПараметр — это путь файла, время запуска, время завершения или длительность, и возвращает обрезанный путь файлаconcat_videosПараметры включают список файлов, выходной путь, и если видеоэлементы в списке файлов, такие как ширина, высота, частота кадров и т.д., согласованы, автоматически используется синтез в быстром режимеplay_videoВоспроизведение видео/аудио с ffplay, поддерживает множество форматов, например mov/mp4/avi/mkv/3gp, video_path: скорость видеопути: цикл воспроизведенияoverlay_videoДва видео-оверлея.
background_video: Backgroud видеопуть overlay_video: передний видеопуть output_path: выходной видеопуть Положение: относительное расположение
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
FFmpeg-MCP
Using ffmpeg command line to achieve an mcp server, can be very convenient, through the dialogue to achieve the local video search, tailoring, stitching, playback and other functions
Support Tools
The server implements the following tools:
find_video_pathThe parameters are directory and file name, file name can be complete, or is not suffixed, recursive search in the directory, return the full pathget_video_infoThe parameters are video path, return the video info, linkes duration/fps/codec/width/height.clip_videoThe parameter is the file path, start time, end time or duration, and returns the trimmed file pathconcat_videosThe parameters are the list of files, the output path, and if the video elements in the list of files, such as width, height, frame rate, etc., are consistent, quick mode synthesis is automatically usedplay_videoPlay video/audio with ffplay, support many format, like mov/mp4/avi/mkv/3gp, video_path: video path speed: play rate loop: play countoverlay_videoTwo video overlay. background_video: backgroud video path overlay_video: front video path output_path: output video path position: relative location dx: x offset dy: y offsetscale_videoVideo scale. video_path: in video path width: out video width, -2 keep aspect height: out video height, -2 keep aspect output_path: output video pathextract_frames_from_videoExtract images from a video. Parameters: video_path (str): The path to the video. fps (int): Extract one frame every specified number of seconds. If set to 0, extract all frames; if set to 1, extract one frame per second. output_folder (str): The directory where the images will be saved. format (int): The format of the extracted images; 0: PNG, 1: JPG, 2: WEBP. total_frames (int): The maximum number of frames to extract. If set to 0, there is no limit
More features are coming
Installation procedure
- Download project
git clone https://github.com/video-creator/ffmpeg-mcp.git
cd ffmpeg-mcp
uv sync
- Configuration in Cline
{
"mcpServers": {
"ffmpeg-mcp": {
"autoApprove": [],
"disabled": false,
"timeout": 60,
"command": "uv",
"args": [
"--directory",
"/Users/xxx/Downloads/ffmpeg-mcp",
"run",
"ffmpeg-mcp"
],
"transportType": "stdio"
}
}
}
Note: the value:/Users/XXX/Downloads/ffmpeg in args need to replace the actual download ffmpeg-mcp directory
Supported platforms
Currently, only macos platforms are supported, including ARM64 or x86_64
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →