Video Mix Set Matte

Sets the alpha of a video from the luma or one channel of a second video, the matte: a text or a shape drawn in white on black, a gradient, a PNG image, the output of a threshold or a key. Track mattes and garbage mattes: any black and white picture becomes transparency.

Example: a lake takes its alpha from the white text USINE drawn on black (channel luma, mode replace) and is laid by Video Mix Over on a dark color; then the sea with the alpha of a radial gradient (black point 0.35, white point 0.55), laid on blue.

The matte value goes through levels: up to black point it gives a transparent pixel, from white point an opaque one, with a ramp between them. The colors of the video are kept (unless premultiply is ON), so the result is ready for Video Mix Over with its default settings. A matte of another size is stretched to the video. Without a matte the video passes unchanged; without a video, a black frame of the size of the matte takes the alpha. A frame costs 0.7 to 1 ms at 1920 x 1080 and 3 to 4.5 ms at 3840 x 2160.

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).

matte

The matte, stretched to the size of video in 1. With the default settings, white gives an opaque pixel and black a transparent one.

video out

Video output flow(s).

process time

Total time used for the calculation of the module.

channel

Channel of the matte that gives the alpha (default luma).

  • luma: its luminance, (77 R + 151 G + 28 B) / 256: a matte of color (200, 100, 50) gives 124.
  • red: its red channel (200 for the same color).
  • green: its green channel.
  • blue: its blue channel.
  • alpha: its alpha channel, to reuse the alpha of another video.

mode

How the matte acts on the alpha of the video (default replace).

  • replace: the matte becomes the alpha.
  • multiply: the matte multiplies the alpha already there, to remove parts of a keyed video (a garbage matte): white leaves the alpha unchanged, gray 128 halves it, black makes the pixel transparent.

invert

When ON, the alpha given by the levels is inverted: the white parts of the matte become transparent and the black parts opaque.

black point

Matte level at and below which the pixel is fully transparent, from 0 to 1 (default 0).

white point

Matte level at and above which the pixel is fully opaque, from 0 to 1 (default 1). Between black point and white point the alpha rises linearly. When white point is not above black point, the alpha becomes a hard step: opaque above black point, transparent at it and below.

matte = horizontal gradient, black on the left, white on the right
black point = 0.4, white point = 0.6
alpha = 0 on the left 40 % of the width, a ramp up to 60 %, then 255

premultiply

When ON, the colors are multiplied by the new alpha (black where it is 0), for a module that expects premultiplied colors, such as Video Mix Over with alpha premultiplied. OFF by default, which suits the default straight mode of Over.

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