Detect scene cuts
detect_scenesIdentify hard cuts in videos and get scene start/end times to split raw footage into clips.
Instructions
Find hard cuts in a video and report the shots between them.
Useful for chopping raw footage into clips: feed the returned scene start and end times straight into trim. Uses ffmpeg's own scene-change score, so unlike the other phase 4 tools this needs no vision dependency.
Lower the threshold to catch softer cuts, raise it if handheld camera motion is being reported as cuts.
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>"
},
"name": "detect_scenes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threshold | No | Scene-change score to treat as a cut. Lower finds more cuts; 0.3 suits most edited footage, 0.4-0.5 suits noisy handheld video. | |
| input_path | Yes | Video file to analyse. | |
| min_scene_seconds | No | Discard cuts closer together than this. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| job_id | Yes | ||
| status | No | queued | |
| message | No | Job queued. Poll job_status for progress, then job_result. |