Video Color Channels

Operations on the channels of one video: shows red, green, blue, the alpha or the luma as a gray picture, copies a channel into the alpha, sets or inverts the alpha, inverts the colors, premultiplies or unpremultiplies, or flattens the video on a color. The checking and plumbing tool of compositing: see a matte, prepare a key, fix an alpha.

Example: a night street keyed by Video Mix Luma Key (threshold high 0.3): show alpha, the matte as a gray picture; then flatten on blue ($FF2060C0), the alpha removed.

The default operation, show alpha, shows at once the matte of a keyed video; it is all white on an opaque video. It reads the alpha as it is in the frame, so it also shows the matte of Video Mix Luma Key. A frame costs 0.5 to 0.8 ms at 1920 x 1080 and 2.3 to 3.6 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).

video out

Video output flow(s).

process time

Total time used for the calculation of the module.

operation

The operation applied to the video (default show alpha).

  • show red: the red channel as an opaque gray picture.
  • show green: the green channel as an opaque gray picture.
  • show blue: the blue channel as an opaque gray picture.
  • show alpha: the alpha as an opaque gray picture: white where opaque, black where transparent.
  • show luma: the luma, (77 R + 151 G + 28 B) / 256, as an opaque gray picture.
  • red to alpha: the red channel becomes the alpha; the colors are kept.
  • green to alpha: the green channel becomes the alpha; the colors are kept.
  • blue to alpha: the blue channel becomes the alpha; the colors are kept.
  • luma to alpha: the luma becomes the alpha; the colors are kept. A pixel (216, 196, 166) gets an alpha of 198.
  • set alpha: the alpha becomes the value of alpha (0.5 gives 128).
  • invert alpha: the alpha becomes 255 - alpha.
  • invert colors: red, green and blue become 255 - value; the alpha is kept.
  • premultiply: red, green and blue are multiplied by the alpha.
  • unpremultiply: red, green and blue are divided by the alpha (black where it is 0). It undoes premultiply, closely where the alpha is high, and gives straight colors from the output of Luma Key.
  • flatten: the video laid by its alpha on the opaque color: the result is opaque.

alpha

Alpha given by set alpha, from 0 (transparent) to 1 (opaque) (default 1).

color

Color that flatten lays the video on (default black); its own alpha is ignored.

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