SCREENCAST-MCP / TOOLS / EDIT
Timeline Edit
timeline
Edit several clips as one timeline in one render: a main track of videos and stills (in/out points, per-clip pipeline steps, a transition into each), overlay layers on upper tracks, and audio tracks at times (ducked if asked). Saves a .timeline.json to re-render with fromSpec.
editwritesdestructivesince next release
00:00PARAMETERS
| Name | Type | Description |
|---|---|---|
clips | object[] | The main track, in order. at least 1 items, at most 50 items |
clips[].file required | string | |
clips[].in | number | ≥ 0 |
clips[].out | number | > 0 |
clips[].duration | number | Stills: seconds to show it (default 3). > 0, ≤ 3600 |
clips[].steps | object[] | pipeline steps for this clip, on its own clock after in/out. at most 30 items |
clips[].transition | object | Into this clip from the one before: an xfade name (fade, dissolve, wipeleft, ...) or cut. |
clips[].transition.type required | string | |
clips[].transition.duration required | number | > 0, ≤ 5 |
clips[].gain | number | ≥ -60, ≤ 24 |
clips[].mute | boolean | |
overlays | object[] | Upper tracks: layers as in the pipeline overlay step (file, x, y, start, end, keyframes, ...), on the timeline's clock. at most 8 items |
audio | object[] | at most 10 items |
audio[].file required | string | |
audio[].at required | number | ≥ 0 |
audio[].in | number | ≥ 0 |
audio[].out | number | > 0 |
audio[].gain | number | ≥ -60, ≤ 24 |
audio[].duck | boolean | Dip under the main audio. |
width | integer | > 0, ≤ 9007199254740991 |
height | integer | > 0, ≤ 9007199254740991 |
fps | number | > 0, ≤ 120 |
quality | "draft" | "standard" | "high" | |
encode | object | Codec, encoder, rate control and container for the result. |
encode.codec | "h264" | "hevc" | "av1" | "vp9" | "prores" | |
encode.encoder | "auto" | "cpu" | "nvenc" | "qsv" | "amf" | |
encode.crf | integer | ≥ 0, ≤ 63 |
encode.bitrate | string | |
encode.maxBytes | integer | Size target; sets the bitrate. ≥ 100000, ≤ 9007199254740991 |
encode.container | "mp4" | "mov" | "mkv" | "webm" | |
encode.audioCodec | "aac" | "opus" | "pcm" | |
encode.audioBitrate | string | |
encode.pixFmt | "yuv420p" | "yuv422p" | "yuv444p" | "10bit" | |
fromSpec | string | Re-render a .timeline.json; given fields replace its. |
dryRun | boolean | |
output | string | Output path; default SCREENCAST_HOME/edits. |
overwrite | boolean | Replace an existing output. |
00:05A MINIMAL CALL
timeline {}
The required arguments only, with placeholder values. Everything else takes its default.
00:10WHAT COMES BACK
Structured content (structuredContent), alongside a text summary:
| Field | Type |
|---|---|
durationSec always | number |
clips always | object[] |
clips[].file always | string |
clips[].start always | number |
clips[].length always | number |