Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions jobs/compose.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
</CodeGroup>

<Info>
**Assets:** video, image, text, audio, composition · **Output:** mp4 / webm / gif / mp3 (audio only) / jpg / png (still frame)

Check warning on line 145 in jobs/compose.mdx

View check run for this annotation

Mintlify / Mintlify Validation (rendobar) - vale-spellcheck

jobs/compose.mdx#L145

Did you really mean 'webm'?

Check warning on line 145 in jobs/compose.mdx

View check run for this annotation

Mintlify / Mintlify Validation (rendobar) - vale-spellcheck

jobs/compose.mdx#L145

Did you really mean 'gif'?
</Info>

Without `trim`, a clip plays its source from the start for `length` seconds. To use a specific segment instead, add `trim: { from, to }` (in source seconds) to the asset. `length` is always the timeline duration. `trim` only chooses which part of the source fills it.
Expand All @@ -155,9 +155,9 @@

```json
"clips": [
{ "asset": { "type": "video", "src": "a.mp4" }, "start": 0, "length": 3 },
{ "asset": { "type": "video", "src": "https://cdn.rendobar.com/assets/examples/sample.mp4" }, "start": 0, "length": 3 },
{ "type": "transition", "transition": "crossfade", "duration": 1 },
{ "asset": { "type": "video", "src": "b.mp4" }, "start": 2, "length": 3 }
{ "asset": { "type": "video", "src": "https://cdn.rendobar.com/assets/examples/sample.mp4" }, "start": 2, "length": 3 }
]
```

Expand Down Expand Up @@ -201,7 +201,7 @@
```json
"tracks": [
{ "clips": [
{ "asset": { "type": "video", "src": "a.mp4" }, "start": 0, "length": 5 }
{ "asset": { "type": "video", "src": "https://cdn.rendobar.com/assets/examples/sample.mp4" }, "start": 0, "length": 5 }
] },
{ "clips": [
{ "asset": { "type": "text", "text": "Coastal Escape", "style": { "size": 84 } },
Expand All @@ -216,7 +216,7 @@

```json
{
"asset": { "type": "video", "src": "a.mp4" },
"asset": { "type": "video", "src": "https://cdn.rendobar.com/assets/examples/sample.mp4" },
"start": 0,
"length": 5,
"color": { "saturation": 1.2, "temperature": 6800 },
Expand Down Expand Up @@ -311,11 +311,11 @@
{
"scenes": [
{ "duration": 4, "transition": { "transition": "crossfade", "duration": 0.6 },
"clips": [{ "asset": { "type": "video", "src": "a.mp4" } }] },
{ "duration": 4, "clips": [{ "asset": { "type": "video", "src": "b.mp4" } }] }
"clips": [{ "asset": { "type": "video", "src": "https://cdn.rendobar.com/assets/examples/sample.mp4" } }] },
{ "duration": 4, "clips": [{ "asset": { "type": "video", "src": "https://cdn.rendobar.com/assets/examples/sample.mp4" } }] }
],
"overlays": [
{ "asset": { "type": "image", "src": "logo.png" }, "start": 0, "length": 8,
{ "asset": { "type": "image", "src": "https://cdn.rendobar.com/assets/brand/logo-mark.png" }, "start": 0, "length": 8,
"transform": { "scale": 0.2, "position": { "x": "88%", "y": "12%" } } }
]
}
Expand Down Expand Up @@ -356,13 +356,13 @@

| Field | What it does |
| --- | --- |
| `opacity` | `0`..`1`, or keyframes `[{ time, value, easing: step \| linear \| smooth }]` |

Check warning on line 359 in jobs/compose.mdx

View check run for this annotation

Mintlify / Mintlify Validation (rendobar) - vale-spellcheck

jobs/compose.mdx#L359

Did you really mean 'keyframes'?
| `transform` | `position {x,y}`, `scale`, `rotate`, `anchor` (`center` \| `topLeft`), `fit` (`contain` \| `fill`), `animateTo` (Ken Burns end state) |
| `crop` | `top` / `right` / `bottom` / `left`, each a percent string like `"10%"` |
| `speed` | playback rate (`0.5` = slow motion, `2` = fast, and pitch shifts with speed) |
| `color` | `brightness` (-1..1), `contrast` (0..4), `saturation` (0..3), `gamma` (0.1..10), `hue` (-180..180), `temperature` (1000..40000 K) |
| `filter` | `greyscale`, `negative`, `boost`, `muted`, `lighten`, `darken`, `contrast` (mutually exclusive with `color`) |
| `blur` / `sharpen` | gaussian blur strength / unsharp amount |

Check warning on line 365 in jobs/compose.mdx

View check run for this annotation

Mintlify / Mintlify Validation (rendobar) - vale-spellcheck

jobs/compose.mdx#L365

Did you really mean 'gaussian'?

Check warning on line 365 in jobs/compose.mdx

View check run for this annotation

Mintlify / Mintlify Validation (rendobar) - vale-spellcheck

jobs/compose.mdx#L365

Did you really mean 'unsharp'?
| `chromaKey` | `color` (hex), `similarity` (0..1) |
| `blendMode` | `normal`, `multiply`, `screen`, `overlay`, `darken`, `lighten`, `add`, `difference` |
| `pan` | stereo balance, `-1` (left) to `1` (right) |
Expand Down
Loading