Skip to main content
Open In Colab Tracks control two dimensions of an Editor composition:
  • Time: A clip’s start value determines when it plays.
  • Layering: The order in which visual tracks are added determines what appears on top.
Each track can contain multiple clips. Use one track for a simple sequence or multiple tracks to organize video, audio, graphics, text, and captions.

Place Clips in Time

The first argument to add_clip() or addClip() is the clip’s start time in the final timeline.
Clip start times are explicit. They can create sequential playback, gaps, or overlaps.

Sequence, Gap, or Overlap

Assume each clip is five seconds long: Audio clips that overlap are mixed. Overlapping visual clips are composed according to track and clip layering.

Visual Z-Order

Tracks added later render above earlier visual tracks.
If a full-frame image is added after a text track, it can cover the text. Add background content first and overlays afterward.

Build a Multi-Layer Composition

The following pattern combines a muted base video, background music, a logo, and a title.

Add Timed Captions as the Top Layer

Create a timed spoken-word artifact from the source video, then use those word timings to build an explicit subtitle source for the caption clip.
Python

The Two Start Values

Source trimming and timeline placement are independent:
The output remains blank or shows lower layers for the first three seconds. At three seconds, the clip appears using media from the ten-second mark of the source.

Track Organization Patterns

  • Keep a base video sequence on the first visual track.
  • Put persistent branding on a later image or text track.
  • Use dedicated tracks for captions and timed callouts.
  • Separate audio by role when the composition has several music, voice, or effect layers.
  • Add tracks to the timeline in deliberate bottom-to-top order.

Next Steps

Track Layering Notebook

Build a complete video, audio, image, text, and caption composition and compare z-order changes.

Timeline Architecture

Understand how assets, clips, tracks, and timelines fit together.