Detect scene changes
detect_scenesFind where the shots change in a ready video: hard cuts and gradual transitions (dissolves, fades), each with its time, frame and confidence, and the list of scenes between them. Use it on footage that is already edited (vlogs, compilations, screen recordings with cuts) before cutting to the beat or trimming or reframing shot by shot. It analyzes the source asset, not the timeline: times are seconds into the asset. Pass startTime and endTime with the source range the shots you build use: only that range is read and charged, and its times stay seconds into the asset. null for both reads the whole video. It costs credits for each second of video it reads. A long video answers with a Job ID; call wait_for_jobs with it. Read the boundaries with read_analysis_range kind scenes: it reads the latest run on the asset, whole or ranged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assetId | Yes | Asset id of a ready video from search_assets. | |
| endTime | Yes | Source second to stop reading at, or null for the asset's end. null for both reads the whole asset. | |
| projectId | Yes | The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs. | |
| startTime | Yes | Source second to start reading at, or null for the asset's start. Pass the range of the shot you build. | |
| threshold | Yes | Transition probability a frame needs to count, 0.1 to 0.9. null for the standard 0.5; lower finds softer transitions, higher only clear ones. |