Bounding Boxes - reboot/obs-studio GitHub Wiki

Bounding Box Types

  • Maximum size only

    The source is scaled down when it larger than the bounding box keeping the aspect ratio, but it not scaled up when it is smaller.

  • Scale to inner bounds

    The source is scaled to either the full width or the full height of the bounding box. The source will not extend outside of the bounding box. If the source aspect ratio is wider than the bounding box aspect ratio it will be scaled to the width of the bounding box and vertical space will be left empty. If the source aspect ratio is higher than the bounding box aspect ratio it will be scaled to the height of the bounding box and horizontal space will be left empty.

  • Scale to outer bounds

    The source is scaled to either the full width or the full height of the bounding box. The source will extend outside of the bounding box to cover the whole bounding box area. If the source aspect ratio is wider than the bounding box aspect ratio it will be scaled to the height of the bounding box and will extend outside the bounding box horizontally. If the source aspect ratio is higher than the bounding box aspect ratio it will be scaled to the width of the bounding box and will extend outside of the bounding box vertically.

  • Scale to width of bounds

    The source is scaled to the width of the bounding box. If the source aspect ratio is higher than the bounding box aspect ratio than the source will extend outside of the bounding box.

  • Scale to height of bounds

    The source is scaled to the height of the bounding box. If the source aspect ratio is wider than the bounding box aspect ratio than the source will extend outside of the bounding box.

  • Stretch to bounds

    The source is scaled to the size of the bounding box. The aspect ratio of the source is ignored.

Examples

Horizontal Source is a source that is wider than it is high and smaller than the bounding box. Vertical Source is a source that is higher than it is wide and smaller than the bounding box.

Bounding Box Type Horizontal Source Vertical Source
Maximum size only
Scale to inner bounds
Scale to outer bounds
Scale to width of bounds
Scale to height of bounds
Stretch to bounds