FFmpeg-MCP Server

by video-creator
Verified

concat_videos

Combine multiple video files into one using FFmpeg. Specify input files, optional output path, and choose between fast or adaptive merging based on video parameters like encoding, resolution, and frame rate. Output format is determined by the file extension.

Instructions

使用FFmpeg拼接多个视频文件 参数: input_files (List[str]): 输入视频文件路径列表 output_path (str): 合并后的输出文件路径,如果不传入,会一个默认的输出路径 fast (bool): 拼接方法,可选值:"True"(默认,要求所有视频必须具有相同的编码格式、分辨率、帧率等参数)| "False(当不确定合并的视频编码格式、分辨率、帧率等参数是否相同的情况下,这个参数应该是False)" 返回: 执行日志 注意: 1. 当fast=True时,要求所有视频必须具有相同的编码格式、分辨率、帧率等参数 2. 推荐视频文件使用相同编码参数,避免拼接失败 3. 输出文件格式由output_path后缀决定(如.mp4/.mkv)

Input Schema

NameRequiredDescriptionDefault
fastNo
input_filesYes
output_pathNo

Input Schema (JSON Schema)

{ "properties": { "fast": { "default": true, "title": "Fast", "type": "boolean" }, "input_files": { "items": { "type": "string" }, "title": "Input Files", "type": "array" }, "output_path": { "default": null, "title": "Output Path", "type": "string" } }, "required": [ "input_files" ], "title": "concat_videosArguments", "type": "object" }

You must be authenticated.

Other Tools from FFmpeg-MCP Server

Related Tools

ID: 2zxiyezqfc