Video Geometric Fit

Fits the picture into a target size: whole with bands around it, cropped to fill, stretched, or placed without scaling. Brings sources of different formats to one size before a mix or an output.

Example: a 16:9 clip in 1080 x 1920 with contain and a dark blue background (left), and in an 800 x 800 reference with cover (right).

The target size comes from two faders, an aspect ratio, the video aspect ratio of the Setup or the size of a second video. The scaling uses the video resampling quality of the Setup, like Video Geometric Resize. When the target equals the size of the input, the input passes as it is, at no cost.

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

reference

Second video input: only its size is read, as the target size when target is reference size. It gives no output without a picture on video in.

video out

Video output flow(s).

process time

Total time used for the calculation of the module.

target

Where the size of the output comes from (default width and height). Each side is at most 8192 pixels.

  • width and height: the width and height faders.
  • aspect ratio: the ratio chosen in the list, at the height of the input: a 1920 x 1080 input at 4:3 gives 1440 x 1080. When the width would pass 8192 pixels, both sides are reduced and the ratio is kept: an 8K input at 2.55:1 gives 8192 x 3213.
  • setup aspect ratio: the same with the video aspect ratio of the Setup; when it is not defined, the ratio of the input.
  • reference size: the size of the reference input, or the size of the input when no reference is connected.

width

Target width with width and height, from 1 to 8192 pixels (default 1920). Very large targets cost memory and time: an 8192 x 8192 frame takes about 270 MB, and fitting a picture into it with contain took about 60 ms per frame.

height

Target height with width and height, from 1 to 8192 pixels (default 1080).

ratio

Target aspect ratio with aspect ratio (default 16:9), from the list 16:9, 4:3, 3:2, 21:9, 2:1, 5:4, 16:10, 1:1, 25:16, 19:10, 5:3, 1.85:1, 2.35:1, 2.39:1 and 2.55:1.

mode

How the picture fills the target (default contain).

  • contain: the whole picture, scaled to fit inside the target, with bands of the background colour around it (letterbox or pillarbox).
  • cover: scaled to fill the whole target, the part that overflows cropped.
  • stretch: scaled to the exact target size, the proportions not kept.
  • center: not scaled: placed pixel for pixel, cropped where it is larger than the target, with bands where it is smaller.

align x

Horizontal placement, from 0 (left) to 1 (right) (default 0.5, centred). With cover it chooses the part of the picture kept: 0 keeps the left part, 1 the right part; animate it to pan across the picture.

align y

Vertical placement, from 0 (top) to 1 (bottom) (default 0.5, centred). With cover it chooses the part of the picture kept, from the top to the bottom.

background

Colour of the bands with contain and center (default opaque black, $FF000000). A transparent colour gives transparent bands, through which a mix shows the picture below.

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