Sources and framing
On this page
What a segment shows, and how it fits the frame.
Every Timeline names its language version in v. The newest is 1.33. A Timeline that uses something newer than its v is refused when you save it, with a detail that names the version it needs.
Words such as segment, Timeline, Preview and final are defined in the glossary.
Your photo or clip #
A segment shows one of your files: a photo for a set time, or part of a clip. Name the file by the id of an upload or an asset.
Key: source.asset · Available · Goes in a segment · Needs "v": "1.1" or newer
| Setting | Type | Default | What it does |
|---|---|---|---|
id | text | required | A name for the segment, different from every other segment's. |
source.$asset | id of your file | required | The upload or asset to show. |
duration | whole number, ≥ 1 ms | — | How long a photo shows, in milliseconds. A photo needs it. |
trim | object, 0 ≤ from < to | — | The part of a clip to play: from and to, in milliseconds of the clip. A clip needs it. |
volume | number, 0–2 | 1 | The loudness of the clip's own sound; 0 is silent. |
speed | number, 0.25–4 | 1 | Plays the clip faster (above 1) or slower (below 1), for the whole segment. |
audio_cleanup.denoise | true or false | false | Lowers steady background noise in the clip's sound. |
audio_lead | whole number, 0–5000 ms | 0 | Starts this clip's sound early, over the end of the segment before it, in milliseconds. |
audio_tail | whole number, 0–5000 ms | 0 | Lets this clip's sound run on over the start of the next segment, in milliseconds. |
Example:
{
"id": "talk",
"source": { "$asset": "<clip id>" },
"trim": { "from": 0, "to": 4000 },
"volume": 0.8
}A plain color #
A segment of one flat color, for a title card or an end card. Put text on it with an overlay.
Key: source.solid · Available · Goes in a segment · Needs "v": "1.1" or newer
| Setting | Type | Default | What it does |
|---|---|---|---|
source.solid | color, #RRGGBB | required | The color. |
duration | whole number, ≥ 1 ms | required | How long it shows, in milliseconds. |
Example:
{ "id": "card", "source": { "solid": "#101828" }, "duration": 2000 }Fill the frame #
The picture fills the whole frame. What does not fit is cut evenly from the edges. This is what a segment does when you say nothing.
Key: fit.cover · Available · Goes in a segment · Needs "v": "1.1" or newer
| Setting | Type | Default | What it does |
|---|---|---|---|
fit | cover | "cover" | How the picture fits the frame: cover, contain, show_all or smart_crop. |
Example:
{
"id": "room",
"source": { "$asset": "<photo id>" },
"duration": 3000,
"fit": "cover"
}Fit inside the frame #
The whole picture fits inside the frame, with black bars where its shape and the frame's differ.
Key: fit.contain · Available · Goes in a segment · Needs "v": "1.1" or newer
| Setting | Type | Default | What it does |
|---|---|---|---|
fit | contain | "cover" | How the picture fits the frame: cover, contain, show_all or smart_crop. |
Example:
{
"id": "plan",
"source": { "$asset": "<photo id>" },
"duration": 3000,
"fit": "contain"
}Show all of it, over a blurred copy #
The whole picture fits inside the frame over an enlarged, blurred copy of itself, so nothing is cut off and no black bar shows.
Key: fit.show_all · Available · Goes in a segment · Needs "v": "1.9" or newer
| Setting | Type | Default | What it does |
|---|---|---|---|
fit | show_all | "cover" | How the picture fits the frame: cover, contain, show_all or smart_crop. |
Example:
{
"id": "wide",
"source": { "$asset": "<photo id>" },
"duration": 3000,
"fit": "show_all"
}Aim a segment's crop #
A filled segment (fit cover) crops its picture to the frame; focus says which part to keep instead of the middle, such as the speaker in a wide clip made into a tall video.
Key: segment.focus · Available · Goes in a segment · Needs "v": "1.19" or newer
| Setting | Type | Default | What it does |
|---|---|---|---|
focus.x | number, 0–1 | 0.5 | Which part of the width to keep: 0 the left edge, 1 the right edge. |
focus.y | number, 0–1 | 0.5 | Which part of the height to keep: 0 the top, 1 the bottom. |
Example:
{
"id": "speaker",
"source": { "$asset": "<clip id>" },
"trim": { "from": 0, "to": 4000 },
"focus": { "x": 0.8, "y": 0.5 }
}Crop that follows the subject #
The crop follows the subject of a clip. Not available yet: it needs subject tracking, which the engine does not offer today.
Key: fit.smart_crop · Not available yet · Goes in a segment · Needs "v": "1.1" or newer
| Setting | Type | Default | What it does |
|---|---|---|---|
fit | smart_crop | "cover" | How the picture fits the frame: cover, contain, show_all or smart_crop. |
Example:
{
"id": "follow",
"source": { "$asset": "<clip id>" },
"trim": { "from": 0, "to": 4000 },
"fit": "smart_crop"
}