get_video_duration
Extracts a video file's duration in seconds and milliseconds with ffprobe, helping automation verify or report clip length.
Instructions
[Cinematic Engine] Get the duration of a video file.
Uses ffprobe (part of ffmpeg) to extract video duration. This is a fast operation suitable for MCP tools.
Args: path: Path to the video file
Returns: {"success": True, "data": {"duration_sec": 30.5, "duration_ms": 30500}}
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": {
"path": "<path>"
},
"name": "get_video_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hints | No | ||
| message | No | ||
| success | No | ||
| suggestions | No |