var2_render_timeline
Build a PRECISE multi-track video timeline — explicit per-clip start times, overlaps, per-clip mute/volume/fades/trim, TEXT/CAPTION overlays with styling, audio tracks with offsets — and save it as an editable project (render=false, default) or queue the render (render=true). Accepts a simplified tracks[] or the raw GUI editor schema; captions turns word/line lyrics timestamps into a styled caption track server-side. Frames at 30fps are canonical; seconds fields are converted exactly. For simple back-to-back concatenation use var2_join_videos instead; status of a queued render → var2_check_join_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| assets | No | Raw-schema mode: map of assetId → url / var2 share link / placeholder_id. | |
| render | No | Default false = save project only (user edits in GUI). true = also queue the render now. | |
| schema | No | RAW GUI editor ProjectSchema passthrough (fps/width/height/durationInFrames/tracks with startFrame+durationInFrames). Use with `assets`. | |
| tracks | No | Simplified timeline: [{type: video|image|audio|text, muted?, clips: [{type?, asset? (url/share link/placeholder_id), text? (string or {content,fontSize,color,backgroundColor,alignment,bold}), start_seconds?, duration_seconds (required), trim_start_seconds?, muted?, volume?, fade_in_seconds?, fade_out_seconds?, label?, objectFit?}]}]. Omitted start_seconds appends after the previous clip in the track. | |
| captions | No | Server-computed caption/lyrics track — no frame math needed: {timestamps: [{text, start_seconds, end_seconds}] (word- OR line-level), max_words_per_caption? (word-level, default 4), style? (TextProps overrides), position? (bottom|top|center)}. Appended as a text track to the timeline. | |
| resolution | No | Default 1080p (render only). | |
| aspect_ratio | No | Default 16:9. |