- Time: A clip’s start value determines when it plays.
- Layering: The order in which visual tracks are added determines what appears on top.
Place Clips in Time
The first argument toadd_clip() or addClip() is the clip’s start time in the final timeline.
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.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: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.