ffmpeg__split_video
Split a video into multiple segments at specified timestamps. Provide input file and comma-separated cut points to generate separate video clips with optional re-encoding.
Instructions
Split a single video into multiple segments at specified timestamps. @remarks split_points is a comma-separated list of timestamps (HH:MM:SS or seconds). Returns JSON in stdout with output_dir, segment_count, and segments array. Falls back to FFMPEG_OUTPUT_DIR or SHELL_AS_MCP_OUTPUT_DIR if output_dir param is omitted. @param input_path Source video file path. @param output_dir Output directory for generated segments. Falls back to FFMPEG_OUTPUT_DIR or SHELL_AS_MCP_OUTPUT_DIR. @param split_points Comma-separated list of cut timestamps, for example 00:10:00,00:20:00,00:30:00. @param output_prefix Filename prefix for segment files, default segment. @param reencode Whether to re-encode segments. Default false uses stream copy (faster but may cause keyframe misalignment). @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>",
"split_points": "<split_points>"
},
"name": "ffmpeg__split_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reencode | No | ||
| input_path | Yes | ||
| output_dir | No | ||
| split_points | Yes | ||
| output_prefix | No | ||
| __mcp_response_mode | No | content |