VC

video-creator/ffmpeg-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

153 stars 26 forks 品質 65 トレンド 20MIT

video-creator/ffmpeg-mcpは、https://github.com/video-creator/ffmpeg-mcp.からインポートされたMCPサーバー候補です。

概要

video-creator/ffmpeg-mcpは、https://github.com/video-creator/ffmpeg-mcp.からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

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 2つのビデオオーバーレイ。 background_video:バックグラウド・ビデオパス overlay_video:フロントビデオパス output_path: 出力ビデオパス 位置:相対位置

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

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_path The parameters are directory and file name, file name can be complete, or is not suffixed, recursive search in the directory, return the full path
  • get_video_info The parameters are video path, return the video info, linkes duration/fps/codec/width/height.
  • clip_video The parameter is the file path, start time, end time or duration, and returns the trimmed file path
  • concat_videos The 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 used
  • play_video Play video/audio with ffplay, support many format, like mov/mp4/avi/mkv/3gp, video_path: video path speed: play rate loop: play count
  • overlay_video Two 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 offset
  • scale_video Video scale. video_path: in video path width: out video width, -2 keep aspect height: out video height, -2 keep aspect output_path: output video path
  • extract_frames_from_video Extract 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

  1. Download project
git clone  https://github.com/video-creator/ffmpeg-mcp.git
cd ffmpeg-mcp
uv sync
  1. 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

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →