|Docs

Timeline edit operations

Your agent edits a timeline with one tool, edit_timeline. It sends a list of operations, and each operation is an op and its fields. The CLI sends the same list with invideo edit change. This is the full MCP edit_timeline call:

{  "url": "https://invideo.io/@acme/launch-reel/tree/main/seq-9.1",  "timeline_id": "T1",  "expected_state_token": "<state_token from get_timeline>",  "dry_run": true,  "operations": [    { "op": "split_clip", "clip": "c7", "at_f": 90 }  ]}

How an edit works

An edit is a read, then a list of operations, then a check. These rules hold for every op on this page.

  • Read first. get_timeline returns the ids (T1 a timeline, V2 a track, c7 a clip, m3 media in the bin) and a state_token. Pass ids as they are. An object without a short id, like a keyframe, has a UUID.
  • Send the latest token. Every edit needs expected_state_token from your latest read or edit. A newer edit by anyone makes it stale, and the edit is refused as a conflict. Read again and rebuild the change.
  • All or none. The operations in one call land together or not at all. Put a whole change in one call: a cut and its gap close, or every marker for a song.
  • Check with dry_run. dry_run: true checks the operations without applying them.
  • Look up the fields. Call timeline_catalog with ops naming the ops you are about to use, for their exact fields. Call it with effects, audio_effects or transitions for their settings. Unknown ops and fields are refused, and a renamed op says its new name.
  • Retry the same request. After a timeout or completion_unknown, send the identical request with the same token. If the first one landed, the retry is refused as a conflict and a read shows the change. Never re-read and resend because a call timed out.
  • Use a new object in a second call. An op cannot always use an object made earlier in the same call. set_keyframes on a text clip made in that call is refused, and so is the whole call. Ops that change an effect, a transition or an audio effect take its id from get_timeline. Make the object, read the timeline, then send the second call.
  • Explicit values only. Your agent decides the edits and sends exact values. There is no natural-language editing.

Time units

Fields ending in _f are frames at the timeline's rate, and may be fractional. Fields ending in _seconds, and at_seconds, are seconds. Ranges include their start and exclude their end, so a clip from frame 0 to frame 90 ends before frame 90. Reads give rational times as {value, rate}, which is value / rate seconds.

At 30 frames a second, two seconds is 60 frames. Convert seconds from a transcript or a beat list with the timeline's own rate from get_timeline.

From the CLI

The CLI takes the same operations list from a file. Read the edit for its token, check with --dry-run, then apply. ops.json holds a bare JSON list, [ {...} ], with no operations wrapper and none of the other MCP fields.

invideo edit show <edit-url>invideo edit catalog <edit-url> --ops split_clip,delete_clipinvideo edit change <edit-url> --timeline T1 --token … \  --operations @ops.json --dry-runinvideo edit change <edit-url> --timeline T1 --token … \  --operations @ops.json

<edit-url> comes from invideo edit new. The --token value is the state_token that invideo edit show prints; each change returns a fresh one. On a branch, use the branch_url that invideo branch new returns, and a token from invideo edit show <branch-url>.

Operations by job

Each table gives the op, what it does, and the fields it needs. Most ops take more optional fields; timeline_catalog lists them all.

Placement and media

These ops put media on the timeline, move and transform clips, and keep the media bin in order. An asset is a bin id like m3, or a sequence URL from read, which goes into the bin first.

OpWhat it doesRequired fields
insert_mediaPlaces a whole media file on one track. On a video track it places the picture alone.asset, track, at_f, ripple
place_mediaPlaces part of a file, from one source time to another, with or without its sound.asset, track, at_f, source_start_seconds, source_end_seconds, mode, linked_audio
move_clipMoves one clip to a track and frame. Linked clips stay unless you move them too.clip, track, at_f, mode
reorder_clipPuts a clip right after another clip in a track's order.clip, track
duplicate_clipCopies a clip and puts the copy right after it.clip
link_clipsLinks clips into one group that moves, trims, splits and deletes together.clips
unlink_clipsTakes clips out of their link groups.clips
set_positionMoves a visual clip, in canvas pixels from the center.clip, x, y
set_zoomZooms a visual clip. 1 fits the canvas. Give x and y the same value.clip, x, y
set_rotationSets a visual clip's rotation in degrees.clip, degrees
set_anchorSets the point a clip rotates and zooms around.clip, x, y
set_opacitySets the opacity of a visual clip or a video track.target, opacity
set_blend_modeSets how a clip or a video track blends with what is below it.target, mode
fit_frameZooms a clip so the whole picture fits the canvas, with bars.clip
fill_frameZooms a clip so the picture covers the canvas, cropping the overflow.clip
paste_attributesCopies transform, composite, crop, playback or effects from one clip onto others.from, to, attributes
set_clip_enabledTurns a clip off or on. A clip that is off is skipped in playback and exports.clip, enabled
set_nameRenames a media clip, track, marker, folder or other named object.target, name
create_folderMakes a folder in the media bin.name
move_bin_itemsMoves bin folders and assets into a folder.folders, assets
delete_bin_itemsDeletes bin folders and assets.folders, assets

Cutting and trimming

These ops cut clips, move their edges, and open or close time. from_f on a trim or a roll must match the edge as you last read it.

OpWhat it doesRequired fields
split_clipCuts a clip in two at a frame. The right half is a new clip; the left half keeps the id.clip, at_f
trim_clipMoves the head or tail of a clip.clip, edge, from_f, to_f, mode, linked
slip_clipChanges which part of its media a clip plays, without moving it.clip, from_src_f, to_src_f
rollMoves the cut between two touching clips. One gets longer, the other shorter.left_clip, right_clip, from_f, to_f
delete_clipRemoves a clip, and leaves a gap (leave_gap) or closes it (close_gap).clip, mode, linked
clear_trackEmpties a track, or one span of it, and keeps the track.track
edit_gapCloses, resizes or opens a gap on a track.kind
edit_time_rangeInserts time, or removes a span, on every unlocked track at once.timeline, start_f, end_f, mode
retimeChanges speed inside one video clip: ramp, freeze, reverse, section, points or reset.clip, kind

Tracks

These ops add, order, hide and lock tracks.

OpWhat it doesRequired fields
add_trackAdds an empty video or audio track.name, kind
delete_trackDeletes a track and everything on it.track
move_trackMoves a track above another track of the same kind.track
set_track_hiddenHides or shows a video track.track, hidden
set_track_lockedLocks or unlocks a track. Edits on a locked track are refused.track, locked
add_adjustmentAdds an adjustment clip. Its effects and grades apply to everything below it.track, start_f, end_f

Text and captions

Text clips hold one block of words. Caption clips hold slides, each a line of text with a start and an end, and optional timed words that light up as they are spoken.

OpWhat it doesRequired fields
add_textAdds a text clip. It never covers or pushes other clips.track, start_f, end_f, text
set_textReplaces the words of a text clip, or of a caption clip with one slide.clip, text
set_text_styleRestyles a whole text or caption clip. Only the keys you send change.clip, style
style_text_rangeStyles some characters of a text clip.target, range, style
add_captionsAdds a caption clip from a list of slides, with optional words.track, slides
set_caption_slide_textReplaces the text of one caption slide.clip, slide_index, text
append_caption_slideAdds a slide at the end of a caption clip.clip, text, duration_seconds
delete_caption_slideRemoves one slide, as a blank gap or with the rest moving up.clip, slide, ripple
move_caption_slideMoves one slide later or earlier inside its caption clip.clip, slide, delta_seconds
trim_caption_slideMoves the left or right edge of one slide.clip, slide, delta_seconds, edge, ripple
split_caption_fragmentSplits one timed word of a slide in two.clip, slide, fragment_index, character_offset
merge_caption_fragmentJoins one timed word with the next.clip, slide, fragment_index

Shapes

A shape clip holds paths: rectangles, ellipses, stars or drawn outlines. Each path has fills and strokes, called paint.

OpWhat it doesRequired fields
add_shapeAdds a shape clip from a preset, with its box and center in canvas pixels.track, at_f, duration_f, preset, width, height, x, y
add_shape_pathAdds a rectangle, ellipse or star to a shape clip.clip, preset, size
remove_shape_pathRemoves one path.clip, path
reorder_shape_pathMoves a path in the drawing order.clip, path, index
rename_shape_pathRenames a path.clip, path, name
set_shape_path_visibleShows or hides a path.clip, path, visible
set_shape_path_geometryMakes a path a rectangle, ellipse or star with a size and position.clip, path, geometry
convert_shape_path_to_pointsTurns a preset path into points you can move one by one.clip, path, at_seconds
set_shape_path_pointsSets every point of a drawn path at one time.clip, path, at_seconds, closed, vertices
transform_shape_pathMoves, scales, rotates or fades one path at one time.clip, path, at_seconds, values
trim_shape_pathDraws only part of a path's outline, for a line that draws itself on.clip, path, at_seconds, enabled
add_shape_paintAdds a fill or a stroke to a path.clip, path, kind
remove_shape_paintRemoves a fill or a stroke.clip, path, layer
reorder_shape_paintMoves a fill or a stroke in the paint order.clip, path, layer, index
set_shape_paintChanges a fill's or a stroke's settings at one time.clip, path, layer, at_seconds, values
animate_shape_pathStarts animating a drawn path's outline.clip, path, at_seconds
stop_animating_shape_pathStops the outline animation and keeps the outline at one time.clip, path, at_seconds
delete_shape_path_keyframeRemoves the outline keyframe at one time.clip, path, at_seconds
move_shape_path_keyframeMoves an outline keyframe to another time.clip, path, from_seconds, to_seconds
set_shape_path_keyframe_easingSets the easing from one outline keyframe to the next.clip, path, at_seconds, in_handle, out_handle
create_shape_keyframe_laneStarts animating one setting of a path, like transform.rotation.clip, parameter, path

Effects

Effects go on a video or image clip, or on a whole video track. Call timeline_catalog with effects for each effect's settings and ranges.

OpWhat it doesRequired fields
add_effectAdds an effect to the end of a clip's effects.clip, effect
remove_effectRemoves one effect or grade from a clip.clip, effect
set_effect_parameterSets one setting of an effect on a clip.clip, effect, parameter, value
set_visual_effect_enabledTurns one effect off or on without removing it.target, effect, enabled
move_visual_effectReorders one effect in its stack.target, effect
add_track_effectAdds an effect to a video track, for everything on it.track, effect
remove_track_effectRemoves one effect from a video track.track, effect
set_track_effect_parameterSets one setting of an effect on a video track.track, effect, parameter, value
set_matte_sourceSets the track a track_matte_key takes its shape from.target, effect
apply_effect_assetAdds an effect asset from the media bin to a clip.clip, asset

Transitions

Transitions sit on the cut between two touching clips, or at a clip's head or tail, from or to black. in_f is how far a transition reaches into the left clip and out_f into the right clip.

OpWhat it doesRequired fields
add_transitionAdds a transition at the cut between two touching clips.left_clip, right_clip, type, in_f, out_f
add_edge_transitionAdds a transition at a clip's head or tail, from or to black.clip, edge, type, in_f, out_f
remove_transitionRemoves a transition by its id.transition
set_transition_parameterSets one setting of a transition.transition, parameter, value
resize_transitionChanges how far a transition reaches into each clip.transition, in_f, out_f
apply_transition_assetPlaces a custom transition from the media bin on a cut.left_clip, right_clip, asset, in_f, out_f

Color

A grade is a stack of color controls on a clip. Masks limit a grade to part of the picture.

OpWhat it doesRequired fields
edit_gradeAdds, removes or reorders a grade on a clip.clip, kind
set_grade_parameterSets one control of a grade, like exposure or saturation.clip, grade, parameter, value
set_grade_curveReplaces one whole curve of a grade.clip, grade, which, points
edit_grade_maskAdds or removes a mask on a grade.clip, grade, kind
set_grade_mask_parameterSets one setting of a grade mask, like its center or feather.clip, grade, mask, parameter, value
apply_lutApplies a LUT from the media bin to a clip's grade. Bring the .cube or PNG LUT file in with add_media on the timeline URL first.clip, lut
set_media_color_profileSays which color profile a bin file was shot in, such as a log profile.asset, profile
set_timeline_working_spaceSets the color space a timeline is mixed in.timeline, working_space

Audio and buses

A video's sound is a separate audio clip linked to it, so target that clip. Call timeline_catalog with audio_effects for each audio effect's settings.

OpWhat it doesRequired fields
set_audio_gainSets the volume of an audio clip or track, in dB.target, gain_db
set_audio_mutedMutes or unmutes an audio clip or track.target, muted
set_audio_soloSolos or unsolos an audio track.track, solo
set_audio_panSets the stereo pan of an audio track.track, pan
set_audio_fadesSets both fades of an audio clip, in frames.clip, fade_in_f, fade_out_f
set_audio_fadeSets one fade of an audio clip, in seconds, and its curve.clip, direction, curve
set_audio_speedSets an audio clip's playback speed.clip, speed
set_audio_pitch_preservedChooses whether an audio clip keeps its pitch when its speed changes.clip, maintain_pitch
apply_audio_crossfadeCrossfades two touching audio clips.outgoing, incoming, curve, duration_seconds, alignment, trim_to_fit
remove_audio_crossfadeRemoves a crossfade between two audio clips.outgoing, incoming
add_audio_effectAdds an audio effect to a clip, a track, a bus or the timeline's chain.target, target_kind, effect
remove_audio_effectRemoves one audio effect.effect
set_audio_effect_enabledTurns one audio effect off or on.effect, enabled
move_audio_effectReorders one audio effect in its chain.effect
set_audio_effect_parameterSets one setting of an audio effect.effect, parameter, value
create_audio_busMakes a submix bus that feeds the main output.timeline, name
set_audio_routingSends a track's or a bus's output to a bus.target
create_audio_sendSends a copy of a track's or a bus's sound to another bus.target, bus, level, pre_fader
set_audio_send_levelChanges a send's level.send, level
delete_audio_sendRemoves one send.send
set_audio_bus_controlsChanges a bus's volume, pan, mute, solo, name or effect switch.bus, values
set_main_outputChanges the main audio output, the last stage before export.values
set_timeline_audioSets the volume of a timeline's whole mix, or mutes it.timeline
set_sidechain_sourcePicks the track, usually the voice, that ducker effects react to. A new timeline already uses A1; set it only when the voice is on another track.timeline

Keyframes

A keyframe lane animates one property of a clip or a track. Keyframe times are in seconds: from the clip's start for a clip lane, and from the timeline's start for a track lane.

OpWhat it doesRequired fields
set_keyframesReplaces a clip's whole opacity or rotation animation, in frames.clip, property, points
add_keyframe_laneStarts animating one property of a clip or track.parent, parent_kind, property, default_value
create_effect_keyframe_laneStarts animating one number setting of an effect.clip, parameter, effect
add_keyframeAdds a point to a lane.lane, time_seconds, value
add_keyframesAdds many points to one lane at once.lane, points
move_keyframeMoves a keyframe and gives it a new value.keyframe, time_seconds, value
delete_keyframeDeletes one keyframe.keyframe
remove_keyframe_laneRemoves a lane and stops that animation.lane
set_keyframe_interpolationSets the easing from one keyframe to the next.keyframe, bezier_in, bezier_out, hold

Markers and guides

Markers sit on the timeline at a frame. Guides are lines on the canvas, placed as a fraction of its width or height.

OpWhat it doesRequired fields
add_markerAdds a marker at a frame, or over a range with duration_f.at_f
set_markerChanges a marker's frame, length, name, note or color.marker
delete_markerRemoves a marker.marker
create_guideAdds a guide line to the canvas.timeline, orientation, position, locked
set_guideSets a guide's position and lock.guide, position, locked
update_guideChanges any of a guide's position, orientation, lock or color.guide
delete_guideDeletes one guide.guide
set_timeline_guides_lockedLocks or unlocks all guides at once.timeline, locked
clear_timeline_guidesRemoves all guides, or only the horizontal or vertical ones.timeline

Nesting

A nested clip shows another timeline inside this one.

OpWhat it doesRequired fields
nest_timelinePlaces another timeline as a nested clip.timeline, track, start_f, end_f
nest_clipsCopies chosen clips into a new timeline, and can replace them with one nested clip.video_clips, audio_clips, name, mode
unnest_clipReplaces a nested clip with copies of the clips it shows.clip
make_nested_clip_uniqueGives one nested clip its own copy of its timeline.clip

Timelines and settings

These ops make timelines and change their size, rate and work area. Branches and checkpoints are not ops: the timeline_history tool keeps them, and the CLI branch commands do the same.

OpWhat it doesRequired fields
create_timelineMakes a new timeline with empty video and audio tracks. Edit it in a later call.width, height, fps
duplicate_timelineCopies a whole timeline into a new one that shares nothing with it.timeline, name
set_timeline_settingsSets a timeline's canvas size and frame rate together.timeline, width, height, fps
set_timeline_work_areaMarks the part of a timeline to work on.timeline, start_seconds, end_seconds
clear_timeline_work_areaClears the work area, so the whole timeline is used.timeline

Custom shaders

When no effect or transition in the catalog fits, write a GLSL shader. Read timeline_catalog with guides: ["custom_shader"] once first. The shader is compiled and checked before it lands; a refusal lists the compiler's errors.

OpWhat it doesRequired fields
add_custom_effectPuts a GLSL effect you write on a video or image clip, with its parameters as controls.clip, name, source, params
update_custom_effectReplaces a custom effect's shader. It needs the hash from inspect_objects.clip, effect_id, expected_effect_hash, source, params
add_custom_transitionPuts a GLSL transition you write on a cut, or at a clip's head or tail.name, source, params, in_f, out_f
update_custom_transitionReplaces a custom transition's shader. It needs the hash from inspect_objects.transition_id, expected_transition_hash, source, params

Effect, audio effect and transition names

These are the names that add_effect, add_track_effect, add_audio_effect, add_transition and add_edge_transition take. Call timeline_catalog with the name for its settings and ranges.

Effects

Effects go on a video or image clip with add_effect, or on a video track with add_track_effect.

NameWhat it does
auroraAdds moving bands of rainbow aurora light over the picture.
beat_rockSplits the picture's color channels apart in short, regular bursts, like a beat hitting.
drop_shadowPuts a soft shadow of the clip's shape behind it.
tintRecolors the picture with two colors: one for the darks and one for the lights.
dynamic_zoomZooms and pans smoothly over the clip's length, from a start framing to an end framing.
dynamic_anchor_zoomZooms smoothly around the clip's anchor point over its length, from a start framing to an end framing.
edge_roundnessRounds the clip's corners.
8bitTurns the picture into blocky pixel art with a small retro game palette.
fast_chroma_keyRemoves a solid background color, like a green screen, so the tracks below show through.
fit_with_blurFits the whole clip in the frame and fills the empty bars with a blurred, enlarged copy of it.
flashbackFlickers the picture with bright, tinted overexposure in bursts, like a memory.
focus_blurKeeps the center sharp and blurs toward the edges, with slight color fringing.
gaussian_blurBlurs the picture evenly.
invertInverts the colors, like a film negative.
kaleidoscopeFolds the picture into a moving kaleidoscope pattern.
lens_flareAdds a lens flare glow over the picture.
multi_mirrorMirrors one part of the picture onto the rest.
pixel_glitchFlashes shifted blocks of the picture with noisy grain, like a digital glitch.
16bitTurns the picture into blocky pixel art with fewer color levels, keeping its own colors.
tritoneRecolors the picture with three colors: one each for the darks, midtones and lights.
wiggleShakes the picture randomly, zoomed in slightly so the edges stay hidden.
zoom_outShrinks the picture and repeats it in tiles to fill the frame.
cropCuts the clip down to a rectangle, with optional soft edges and rounded corners.
track_matte_keyShows the clip only where another video track has picture, using that track as a mask.

Audio effects

Audio effects go on an audio clip, an audio track, a bus or the timeline's own chain with add_audio_effect.

NameWhat it does
compressorEvens out a performance: loud parts quieter, quiet parts louder.
de_esserSoftens harsh s and sh sounds in a voice.
click_removerRemoves lip smacks and mouth clicks from a voice.
duckerPulls music down under a voice, and back up after it.
eqAn 8-band equalizer.
limiterHolds the level under a ceiling, for delivery.
pitch_shiftMoves a voice up or down without changing its timing.
plate_reverbA classic plate reverb.
voice_eqCleans up a recorded voice: less rumble, more clarity.
voice_reverbA one-knob plate reverb for voice.

Transitions

Transitions go on a cut with add_transition, or at a clip's head or tail with add_edge_transition.

NameWhat it does
back_flipThe next clip flips over in 3D from one side and lands on top of the current one.
barrelThe picture bulges or pinches like a fisheye lens while it crossfades to the next clip.
big_revealThe current clip shrinks and slides away while the next one slides in, zooming down from close up.
blinkThe picture flickers between the two clips and settles on the next one.
block_displacementThe picture breaks into rectangular blocks that slide away to show the next clip.
blurBoth clips blur to a peak in the middle while they crossfade.
bold_and_powerfulThe next clip slides in enlarged over the current one, then settles back to its normal size.
bounce_backThe next clip slides in with a springy bounce.
cross_zoomA zoom blur sweeps across the frame while the clips crossfade.
cross_zoom_blurThe current clip zooms in and blurs as the next one zooms down into place.
cube_3d_rotationThe two clips turn like neighboring faces of a cube.
curl_inThe next clip pushes the current one out in stop-start steps.
curtain_callThe current clip shrinks as it is pushed out and the next one grows into place.
cutThe frame splits in half and the halves slide apart to show the next clip.
dot_glitchA digital glitch of noise blocks and dots that switches to the next clip at its peak.
dotsThe current clip dissolves into a grid of halftone dots that resolves into the next one.
fadeA plain crossfade; at the start or end of a clip, a fade from or to black.
film_roll_inThe frame scrolls quickly through a strip of frames, like a film reel, and lands on the next clip.
flashA flash of color hides the change to the next clip.
flippinThe whole frame flips over like a card, with the next clip on the back.
light_leakA glow of colored light with dust and soft light spots washes over a crossfade.
light_leak_bokehDrifting, out-of-focus spots of light pass over a crossfade.
light_leak_flickerA flickering burst of colored light covers the middle of a crossfade.
light_leak_flowBoth clips smear along one direction as a band of light flows across.
glitchThe color channels wave apart while the clips crossfade.
glitch_displaceThe picture breaks into noisy, washed-out fragments that resolve into the next clip.
glitch_slideStrips of the picture slide out of place with a color split while the clips crossfade.
granularityBoth clips break into large pixel blocks at the middle while they crossfade.
hingeThe next clip swings into place around a corner, like a door on a hinge.
holeA round opening grows from the center as one clip zooms through it into the other.
impactThe next clip snaps in close up, then punches back out to its normal size in steps.
lens_distortionThe picture bulges like a lens with color fringing, then settles into the next clip.
lens_flareA lens flare sweeps over a soft crossfade.
mirror_zoomThe current clip shrinks into mirrored tiles while the next one grows out of them.
pixelate_zoomThe current clip zooms in while it pixelates, and the next one sharpens into place.
radial_blurA zoom blur toward the center while the clips crossfade.
rewindFrames scroll past quickly, snap back and land on the next clip, like a rewind.
rollThe frame rolls past repeated copies of itself and lands on the next clip.
roll_3dLike roll, with the frame bulging like a cylinder and, if set, turning as it rolls.
rotationThe current clip spins away with motion blur as the next one spins in.
rotation_zoomThe current clip spins and zooms away while the next one spins in from small.
showtimeA hard-edged wipe shows the next clip in stop-start steps.
shake_flashA camera shake around the change, hidden by a flash of color.
shake_slideThe next clip pushes in with a camera shake and a color split.
shake_zoomA zoom between the clips with a camera shake and a color split.
slideThe next clip pushes the current one out of the frame.
slide_blurThe clips slide with motion blur along a straight or curved path.
slide_cubeThe current clip squeezes toward one edge as the next one expands from the other.
slide_fadeThe clips slide past each other while they crossfade.
slide_stretchThe clips slide with a heavy stretch and blur along the motion.
slide_warpThe clips slide with motion blur, the leading edge bending as it moves.
slit_scanThe edge of the picture smears across the frame, then unsmears into the next clip.
stackThe next clip slides in over the current one, which stays still.
thresholdThe picture gives way by brightness, through a solid color, to the next clip.
twirlThe picture swirls around the center while the clips crossfade.
waveSideways ripples run through the picture while the clips crossfade.
wipeA hard edge wipes across the frame to show the next clip.
wiperThe frame zooms in and spins with blur, changes to the next clip and unwinds.
wobble_slideStrips of the picture wobble out of place with blur and color blocks while the clips crossfade.
zoomOne clip zooms in or out of the other, with a fade.
zoom_twirl_rgbThe current clip zooms away with a twirl and a color split as the next one grows into place.

Examples

Each example is the operations list of one edit_timeline call, or the contents of ops.json for invideo edit change. The ids are examples: take the real ones from get_timeline. The timeline runs at 30 frames a second.

Place a file on the timeline

This places bin asset m3 at the start of track V1, then places seconds 4 to 10 of m4, with its sound, right after it.

[  {    "op": "insert_media",    "asset": "m3",    "track": "V1",    "at_f": 0,    "ripple": false  },  {    "op": "place_media",    "asset": "m4",    "track": "V1",    "at_f": 150,    "source_start_seconds": 4,    "source_end_seconds": 10,    "mode": "overwrite",    "linked_audio": true  }]

Cut the first three seconds

This splits clip c7 at frame 90. The left half keeps the id c7, so the delete removes it and closes the gap. Its linked sound goes with it.

[  { "op": "split_clip", "clip": "c7", "at_f": 90 },  {    "op": "delete_clip",    "clip": "c7",    "mode": "close_gap",    "linked": true  }]

Add a title and match an existing one

This adds a white, bold title for the first three seconds, then restyles text clip c12 to match.

[  {    "op": "add_text",    "track": "V2",    "start_f": 0,    "end_f": 90,    "text": "Summer in Lisbon",    "style": {      "font_size": 96,      "font_weight": 700,      "color": "#ffffff",      "align": "center",      "shadow": true    }  },  {    "op": "set_text_style",    "clip": "c12",    "style": { "font_weight": 700, "color": "#ffffff", "shadow": true }  }]

Add a crossfade and a fade to black

This crossfades the cut between c7 and c8 over 24 frames, then fades the tail of c8 to black over one second.

[  {    "op": "add_transition",    "left_clip": "c7",    "right_clip": "c8",    "type": "fade",    "in_f": 12,    "out_f": 12  },  {    "op": "add_edge_transition",    "clip": "c8",    "edge": "tail",    "type": "fade",    "in_f": 0,    "out_f": 30  }]

Add word-by-word captions

This adds two caption slides with timed words. The words build up as they are spoken. The times come from a transcript (media with audio.transcript), turned into frames.

[  {    "op": "add_captions",    "track": "V3",    "slides": [      {        "text": "Welcome back",        "start_f": 0,        "end_f": 30,        "words": [          { "text": "Welcome", "start_f": 0, "end_f": 15 },          { "text": "back", "start_f": 15, "end_f": 30 }        ]      },      {        "text": "to the channel",        "start_f": 30,        "end_f": 66,        "words": [          { "text": "to", "start_f": 30, "end_f": 38 },          { "text": "the", "start_f": 38, "end_f": 46 },          { "text": "channel", "start_f": 46, "end_f": 66 }        ]      }    ],    "style": {      "font_size": 64,      "color": "#ffffff",      "stroke": true,      "stroke_color": "#000000",      "stroke_width": 4    }  }]

After an edit

Check the result before you call it done. capture renders frames of the timeline at the seconds you name. check_timeline reports structural problems, like a clip that points at something deleted. It does not judge the edit. On the CLI, the same checks are invideo edit capture and invideo edit check.