Add markers at scene changes of a clip
add_scene_markersDetect shot changes in a timeline clip's source video with ffmpeg and add sequence markers at each cut, mapped to timeline time; use dry_run to preview marker times without changes.
Instructions
Detect the shot changes inside one timeline clip's source video with ffmpeg (scene score) and add a sequence marker at each change, mapped to timeline time (clip start + source time - clip in point). Only the part of the media the clip uses is analysed. Pass clip_id (or track_type + track_index + clip_index). Returns the markers added (time, name). dry_run returns the times only. Needs ffmpeg.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_scene_markers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Marker colour index: 0 green, 1 red, 2 purple, 3 orange, 4 yellow, 5 white, 6 blue, 7 cyan. Default: Premiere's default. | |
| clip_id | No | The clip to analyse (a video clip). | |
| dry_run | No | true: return the plan without changing anything. Default false. | |
| threshold | No | Scene score (0-1) a frame must exceed to count as a change. Default 0.3; lower finds more. | |
| clip_index | No | 0-based position of the clip in its track. | |
| track_type | No | With track_index + clip_index when clip_id is not given. Default "video". | |
| name_prefix | No | Marker names are "<prefix> <n>". Default "Scene". | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | No | 0-based track index. | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| min_spacing_seconds | No | Ignore a change closer than this to the previous one, in seconds. Default 0.5. |