Video Mix Over

Lays a layer with transparency, the foreground, over a background, video in 1, with an opacity, a size, a scale and a position. The basic operation of compositing: a keyed subject over a set, a picture in picture, a logo, stacked layers.

Example: a building shot on a green screen, keyed with Despill, Set Matte and Matte Choker, then laid over a bridge with the default settings; then a picture in picture: size fit, scale 0.5, center x 0.72, center y 0.3, opacity 0.9, the layer cut to a soft disc by Set Matte.

Where the alpha of the layer is 0 the background shows unchanged, where it is 255 the layer replaces it, and in between the two are mixed (the Porter-Duff over operator): a red layer of alpha 128 over blue gives (128, 0, 127). The output has the size of the background; over a translucent background the alphas are combined and the colors stay straight. Opacity 0, a missing foreground or a layer moved out of the frame gives the background; a missing background gives the layer over black, at the size of the layer. Players, generators and Fill Color give opaque frames: the alpha of the layer comes from a key, Video Mix Set Matte, Video Color Channels or Video Detection Background Subtraction. A frame costs about 1 ms at 1920 x 1080 and 4 ms at 3840 x 2160, up to 4.4 ms and 8.3 ms when the layer is resized.

Settings

bypass

Bypasses the module processing when activated (ON).

  • OFF (0): Module processes normally
  • ON (1): Input passes directly to output without processing

video in

Video input flow(s).

foreground

The layer drawn over video in 1, with its alpha. It is placed by size, scale, center x and center y. A resized layer is interpolated without letting the colors of its transparent pixels bleed into its edges.

video out

Video output flow(s).

process time

Total time used for the calculation of the module.

opacity

Opacity of the layer, from 0 to 1 (default 1): it multiplies the alpha of the foreground. At 0 the output is the background.

alpha

How the colors of the foreground are stored (default straight).

  • straight: the colors are not multiplied by the alpha: the frames of Usine, PNG images, Set Matte, Matte Choker, Despill and Background Subtraction.
  • premultiplied: the colors are already multiplied by the alpha, as Video Mix Luma Key gives them. With straight, the soft edges of such a layer get darker.

size

Size of the layer before scale (default fit).

  • native: its own size in pixels.
  • fit: as large as possible inside the background, aspect ratio kept: the whole layer is visible.
  • fill: covers the whole background, aspect ratio kept: what goes past the edges is cut.
  • stretch: the size of the background, aspect ratio not kept.

scale

Scale of the layer, from 0 to 5 (default 1), applied after size: 0.5 halves its width and its height. A layer smaller than one pixel is not drawn.

center x

Horizontal position of the center of the layer, from -1 to 2 (default 0.5): 0 on the left edge of the background, 1 on the right edge. Below 0 or above 1 the layer goes partly or wholly out of the frame.

center y

Vertical position of the center of the layer, from -1 to 2 (default 0.5): 0 on the top edge of the background, 1 on the bottom edge.

video in 1 = 1920 x 1080, foreground = 1920 x 1080
size = native, scale = 0.25, center x = 0.8, center y = 0.2
layer = 480 x 270 pixels, from x 1296 to 1775 and from y 81 to 350
Common Settings

info

show manual

Button. Opens the manual page of the selected object (or of its parent module for a control) in the web browser. If no page exists for this object, an error is traced in the trace panel.

For more details about information/help creation, see create-help-file.

description

Free multi-line text attached to the module, saved with the patch. When it is not empty, it is shown as the hint of the module (mouse over the module header in the patch) in place of the default module hint, even when the module hints are disabled.

ID's

visible only in god mode, see setup-panel-tab-expert.

unique ID

Read-only, not saved. Current private numeric ID of the object, used internally to identify it (for example as the target of a bind ID).

preset ID

Read-only, not saved. Private ID used to store and recall the values of this control in presets.

recreate ID

Button. Generates a new unique ID, original ID and preset ID for the object. Use it if you experience difficulties in Polyphonic mode or if two objects share the same ID. Preset values and binds referring to the old IDs are lost.

Object Remote Address

absolute

Read-only, not saved. Absolute address of the object in the Usine objects tree, built from the workspace root. This is the address to use to reach the object from scripts, the objects panel or remote messages. Only shown for objects that are registered in the objects list. See objects-address.

local

Read-only, not saved. Address of the object relative to the current patch, valid inside that patch only. See objects-address.

user addr

Free user-defined address for the object (empty by default). When set, the object is also registered in the objects tree under this name, so it can be reached independently of its position in the workspace (the value is also reported in the mouse-over and mouse-down chunks). Changing it rebuilds the objects list. Only available on objects that support a user address. See objects-address.

See also

version 7.0.250921

Edit All Pages