Sources and framing

On this page

← OneUpRender

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

SettingTypeDefaultWhat it does
idtextrequiredA name for the segment, different from every other segment's.
source.$assetid of your filerequiredThe upload or asset to show.
durationwhole number, ≥ 1 ms—How long a photo shows, in milliseconds. A photo needs it.
trimobject, 0 ≤ from < to—The part of a clip to play: from and to, in milliseconds of the clip. A clip needs it.
volumenumber, 0–21The loudness of the clip's own sound; 0 is silent.
speednumber, 0.25–41Plays the clip faster (above 1) or slower (below 1), for the whole segment.
audio_cleanup.denoisetrue or falsefalseLowers steady background noise in the clip's sound.
audio_leadwhole number, 0–5000 ms0Starts this clip's sound early, over the end of the segment before it, in milliseconds.
audio_tailwhole number, 0–5000 ms0Lets this clip's sound run on over the start of the next segment, in milliseconds.

Example:

JSON
{
  "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

SettingTypeDefaultWhat it does
source.solidcolor, #RRGGBBrequiredThe color.
durationwhole number, ≥ 1 msrequiredHow long it shows, in milliseconds.

Example:

JSON
{ "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

SettingTypeDefaultWhat it does
fitcover"cover"How the picture fits the frame: cover, contain, show_all or smart_crop.

Example:

JSON
{
  "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

SettingTypeDefaultWhat it does
fitcontain"cover"How the picture fits the frame: cover, contain, show_all or smart_crop.

Example:

JSON
{
  "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

SettingTypeDefaultWhat it does
fitshow_all"cover"How the picture fits the frame: cover, contain, show_all or smart_crop.

Example:

JSON
{
  "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

SettingTypeDefaultWhat it does
focus.xnumber, 0–10.5Which part of the width to keep: 0 the left edge, 1 the right edge.
focus.ynumber, 0–10.5Which part of the height to keep: 0 the top, 1 the bottom.

Example:

JSON
{
  "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

SettingTypeDefaultWhat it does
fitsmart_crop"cover"How the picture fits the frame: cover, contain, show_all or smart_crop.

Example:

JSON
{
  "id": "follow",
  "source": { "$asset": "<clip id>" },
  "trim": { "from": 0, "to": 4000 },
  "fit": "smart_crop"
}