Split screens

On this page

← OneUpRender

Several photos or clips in one frame: side by side, stacked, in a grid, or in boxes you place. A small picture over the video is an overlay instead.

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.

Split screens and grids #

One segment shows several of your files at once: two side by side or stacked, three in a row, a 2×2 or 2×3 grid, or up to six boxes you place yourself. Each box can carry a label, such as BEFORE and AFTER. A split screen is silent unless one box is the heard one.

Key: source.compose · Available · Goes in a segment's source.compose · Needs "v": "1.1" or newer

SettingTypeDefaultWhat it does
layoutone of 2up_h, 2up_v, 3up, grid_2x2, grid_2x3, freerequired2up_h two side by side, 2up_v two stacked, 3up three along the long side of the frame, grid_2x2, grid_2x3 (two across, three down in a tall frame), or free.
cellslist, 1–6requiredThe boxes, in order: as many as the layout has (2, 3, 4 or 6; up to 6 for free).
cells[].source.$assetid of your filerequiredThe photo or clip in this box.
cells[].trimobject, 0 ≤ from < to—For a clip, the part to play, from and to in milliseconds. It must last at least as long as the segment.
cells[].fitone of cover, contain"cover"How the picture fits its box.
cells[].label.texttext, 1–80—A label drawn on the box.
cells[].label.styleone of badge, title, caption"badge"badge a boxed tag near the top, title a headline near the top, caption a boxed line near the bottom.
cells[].rectobject, 0–1—For free only, and required there: the box's x, y, w and h as fractions of the frame, inside it.
gapwhole number, 0–200 px0Space between the boxes, in pixels.
backgroundcolor, #RRGGBB"#000000"The color that shows in the gaps.
durationwhole number, ≥ 1 msrequiredHow long the split screen shows, in milliseconds (on the segment or here).

Example:

JSON
{
  "id": "compare",
  "source": {
    "compose": {
      "layout": "2up_v",
      "gap": 8,
      "cells": [
        {
          "source": { "$asset": "<before photo id>" },
          "label": { "text": "BEFORE", "style": "badge" }
        },
        {
          "source": { "$asset": "<after photo id>" },
          "label": { "text": "AFTER", "style": "badge" }
        }
      ]
    }
  },
  "duration": 4000
}

The box you hear #

In a split screen of clips, one box can be the one you hear: the segment plays that clip's sound.

Key: compose.audio · Available · Goes in a segment's source.compose · Needs "v": "1.4" or newer

SettingTypeDefaultWhat it does
cells[].audiotrue or falsefalseThis box's sound is the segment's sound. At most one box may say so.

Example:

JSON
{
  "id": "duet",
  "source": {
    "compose": {
      "layout": "2up_v",
      "cells": [
        {
          "source": { "$asset": "<first clip id>" },
          "trim": { "from": 0, "to": 4000 },
          "audio": true
        },
        {
          "source": { "$asset": "<second clip id>" },
          "trim": { "from": 0, "to": 4000 }
        }
      ]
    }
  },
  "duration": 4000
}

A whole picture in a box, over a blurred copy #

A box shows its whole picture over an enlarged, blurred copy of it, so no edge is cut and no bar shows.

Key: compose.fit_show_all · Available · Goes in a segment's source.compose · Needs "v": "1.14" or newer

SettingTypeDefaultWhat it does
cells[].fitshow_all"cover"show_all shows the box's whole picture over a blurred copy.

Example:

JSON
{
  "id": "pair",
  "source": {
    "compose": {
      "layout": "2up_v",
      "cells": [
        { "source": { "$asset": "<wide photo id>" }, "fit": "show_all" },
        { "source": { "$asset": "<tall photo id>" } }
      ]
    }
  },
  "duration": 4000
}

Aim a box's crop #

A box that is filled (fit cover) crops its picture; focus says which part to keep instead of the middle, such as a head near the top of a tall clip.

Key: compose.cell_focus · Available · Goes in a segment's source.compose · Needs "v": "1.15" or newer

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

Example:

JSON
{
  "id": "interview",
  "source": {
    "compose": {
      "layout": "2up_v",
      "cells": [
        {
          "source": { "$asset": "<host clip id>" },
          "trim": { "from": 0, "to": 4000 },
          "focus": { "x": 0.5, "y": 0.3 }
        },
        {
          "source": { "$asset": "<guest clip id>" },
          "trim": { "from": 0, "to": 4000 }
        }
      ]
    }
  },
  "duration": 4000
}

A box of one color #

A box may be filled with one color instead of a clip or photo: source: { solid: "#RRGGBB" }. An empty part of a split is a black box.

Key: compose.solid_cell · Available · Goes in a segment's source.compose · Needs "v": "1.26" or newer

SettingTypeDefaultWhat it does
cells[].source.solidcolor, #RRGGBB—The box's color.

Example:

JSON
{
  "id": "split",
  "source": {
    "compose": {
      "layout": "2up_v",
      "cells": [
        { "source": { "solid": "#000000" } },
        {
          "source": { "$asset": "<clip id>" },
          "trim": { "from": 0, "to": 4000 },
          "audio": true
        }
      ]
    }
  },
  "duration": 4000
}

Zoom into a box's picture #

A filled box (fit cover) may show its picture closer: zoom from 1 to 4, aimed by focus as the crop is.

Key: compose.cell_zoom · Available · Goes in a segment's source.compose · Needs "v": "1.26" or newer

SettingTypeDefaultWhat it does
cells[].zoomnumber, 1–41How much closer: 1 is as filled, 2 twice as close.

Example:

JSON
{
  "id": "closer",
  "source": {
    "compose": {
      "layout": "2up_v",
      "cells": [
        {
          "source": { "$asset": "<host clip id>" },
          "trim": { "from": 0, "to": 4000 },
          "zoom": 1.5
        },
        {
          "source": { "$asset": "<guest clip id>" },
          "trim": { "from": 0, "to": 4000 }
        }
      ]
    }
  },
  "duration": 4000
}

A short clip in a box #

A clip shorter than its piece says what happens when it ends: run_out: "hold" keeps its last frame, "loop" plays it again from its start (at most 20 times).

Key: compose.cell_run_out · Available · Goes in a segment's source.compose · Needs "v": "1.26" or newer

SettingTypeDefaultWhat it does
cells[].run_outone of—hold or loop.

Example:

JSON
{
  "id": "broll",
  "source": {
    "compose": {
      "layout": "2up_v",
      "cells": [
        {
          "source": { "$asset": "<b-roll clip id>" },
          "trim": { "from": 0, "to": 1500 },
          "run_out": "loop"
        },
        {
          "source": { "$asset": "<speaker clip id>" },
          "trim": { "from": 0, "to": 4000 },
          "audio": true
        }
      ]
    }
  },
  "duration": 4000
}

The smooth push #

A two-box split opens from the whole frame and closes back to it: as the divider slides, the main picture shrinks into its box and the other grows into its own, with no jump. A picture in picture grows from its corner.

Key: compose.push · Available · Goes in a segment's source.compose · Needs "v": "1.29" or newer

SettingTypeDefaultWhat it does
push.innumber, 0 or 100–30000Milliseconds to open; 0 is a cut.
push.outnumber, 0 or 100–30000Milliseconds to close; 0 is a cut.
push.mainnumber, 0–10Which box fills the frame at those ends.
push.fitone ofthe box's own fitHow the main picture filled the frame: cover or contain.
push.focusobjectthe box's own aimWhere its crop was aimed, x and y from 0 to 1.

Example:

JSON
{
  "id": "opens",
  "source": {
    "compose": {
      "layout": "2up_v",
      "push": { "in": 600, "out": 600 },
      "cells": [
        {
          "source": { "$asset": "<host clip id>" },
          "trim": { "from": 0, "to": 4000 },
          "fit": "contain"
        },
        {
          "source": { "$asset": "<guest clip id>" },
          "trim": { "from": 0, "to": 4000 },
          "fit": "contain"
        }
      ]
    }
  },
  "duration": 4000
}

Hear several boxes #

More than one box may set audio: true; their sound is added together, each at its own volume (0 to 2).

Key: compose.cell_audio_mix · Available · Goes in a segment's source.compose · Needs "v": "1.26" or newer

SettingTypeDefaultWhat it does
cells[].volumenumber, 0–21A heard box's volume.

Example:

JSON
{
  "id": "both",
  "source": {
    "compose": {
      "layout": "2up_h",
      "cells": [
        {
          "source": { "$asset": "<speaker clip id>" },
          "trim": { "from": 0, "to": 4000 },
          "audio": true
        },
        {
          "source": { "$asset": "<b-roll clip id>" },
          "trim": { "from": 0, "to": 4000 },
          "audio": true,
          "volume": 0.3
        }
      ]
    }
  },
  "duration": 4000
}

A new background behind a person #

Puts the person in a clip on a new background: a color, a photo, or their own room blurred. It needs the clip's cutout, made by the cutout model oneup/video-cutout. It works on a segment or on a box of a split screen.

Key: effect.background · Available · Goes in a segment · Needs "v": "1.16" or newer

SettingTypeDefaultWhat it does
background.matte.$assetid of your filerequiredThe clip's cutout, the video oneup/video-cutout returned for this clip.
background.kindone of blur, color, photorequiredblur the person's own room, blurred; color a flat color; photo one of your photos.
background.colorcolor, #RRGGBB—For color, and only then: the color.
background.photo.$assetid of your file—For photo, and only then: the photo, filling the frame.
fitone of cover, contain, show_all"cover"How the person fits: cover fills the frame, contain and show_all show the whole person.

Example:

JSON
{
  "id": "talk",
  "source": { "$asset": "<clip id>" },
  "trim": { "from": 0, "to": 4000 },
  "fit": "contain",
  "background": {
    "matte": { "$asset": "<cutout id>" },
    "kind": "color",
    "color": "#1D4ED8"
  }
}

A new background from a two-file cutout #

The same new background, with the cutout as two videos: the person's colors in background.matte and the person's coverage in background.alpha. This is what the cutout model oneup/video-cutout-pro returns, in that order.

Key: effect.background_alpha · Available · Goes in a segment · Needs "v": "1.20" or newer

SettingTypeDefaultWhat it does
background.matte.$assetid of your filerequiredThe person's colors: the first video oneup/video-cutout-pro returned for this clip.
background.alpha.$assetid of your filerequiredThe person's coverage (black is the room, white is the person): the second video.

Example:

JSON
{
  "id": "talk",
  "source": { "$asset": "<clip id>" },
  "trim": { "from": 0, "to": 4000 },
  "background": {
    "matte": { "$asset": "<colors id>" },
    "alpha": { "$asset": "<coverage id>" },
    "kind": "blur"
  }
}

Face retouch #

A face on camera looks a little better: smoother, more even skin, softer wrinkles and smile lines, lighter dark circles, a touch of light and warmth. One entry per clip, applied to every segment that cuts that clip, on the clip's own picture before its framing. It needs the clip's face map, made once per clip by the face analysis; only the face changes, and nothing outside it.

Key: clip.retouch · Available · Goes in the Timeline's retouch list · Needs "v": "1.33" or newer

SettingTypeDefaultWhat it does
clip.$assetid of your filerequiredThe video clip, as the segments name it in source.
map.$annotationid of your filerequiredThat clip's face map, from the face analysis.
strengthwhole number, 0–100100Scales every effect together; 0 is the clip as filmed.
smooth_skinwhole number, 0–1000Softer skin texture; pores stay.
wrinkleswhole number, 0–1000Softer forehead lines and crow's feet.
smile_lineswhole number, 0–1000Softer lines from the nose to the mouth's corners.
dark_circleswhole number, 0–1000Lighter under the eyes, toward the person's own cheek, never lighter than it.
even_tonewhole number, 0–1000Blotches even out toward the skin's own color; brightness untouched.
brightenwhole number, 0–1000A little more light on the face; the hue is kept.
warmthwhole number, 0–1000A slightly warmer skin; warmer only.

Example:

JSON
{
  "segments": [
    {
      "id": "talk",
      "source": { "$asset": "<clip id>" },
      "trim": { "from": 0, "to": 4000 }
    }
  ],
  "retouch": [
    {
      "clip": { "$asset": "<clip id>" },
      "map": { "$annotation": "<face map id>" },
      "smooth_skin": 40,
      "wrinkles": 60,
      "dark_circles": 30
    }
  ]
}