ffmpeg__process_video_for_llm
Prepare a video for LLM analysis in one ffmpeg run: trim, scale, adjust fps/speed, optionally strip audio or add watermark, and return a JSON summary.
Instructions
Build an LLM-ready video in one ffmpeg run (trim, scale, fps, speed, optional audio strip and watermark). @remarks Returns a compact JSON summary in stdout with output_path and applied options for LLM-friendly parsing. @param input_path Source video path. @param output_path Destination video path. @param start_time Optional start timestamp (for example 00:04:30). @param end_time Optional end timestamp (for example 00:05:30). @param max_resolution Optional longest-edge cap (for example 720). @param fps Optional output fps (for example 1.0). @param speed_factor Playback speed factor (for example 2.0). @param strip_audio Whether to remove audio track. @param watermark_path Optional watermark/subtitle image path. @param __mcp_response_mode Optional response mode: content (default) or structuredContent.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_path": "<input_path>",
"output_path": "<output_path>"
},
"name": "ffmpeg__process_video_for_llm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | ||
| end_time | No | ||
| input_path | Yes | ||
| start_time | No | ||
| output_path | Yes | ||
| strip_audio | No | ||
| speed_factor | No | ||
| max_resolution | No | ||
| watermark_path | No | ||
| __mcp_response_mode | No | content |