Skip to content

BurnInDestinationSettings

Source code in docs_src/capo_medialive/types/burn_in_destination_settings.py
class BurnInDestinationSettings(TypedDict, closed=True):
    alignment: NotRequired["capo_medialive.types.burn_in_alignment.BurnInAlignment"]
    """If no explicit xPosition or yPosition is provided, setting alignment to centered will place the captions at the bottom center of the output. Similarly, setting a left alignment will align captions to the bottom left of the output. If x and y positions are given in conjunction with the alignment parameter, the font will be justified (either left or centered) relative to those coordinates. Selecting "smart" justification will left-justify live subtitles and center-justify pre-recorded subtitles. All burn-in and DVB-Sub font settings must match."""
    background_color: NotRequired[
        "capo_medialive.types.burn_in_background_color.BurnInBackgroundColor"
    ]
    """Specifies the color of the rectangle behind the captions. All burn-in and DVB-Sub font settings must match."""
    background_opacity: NotRequired[
        "capo_medialive.types.__integer_min0_max255.__integerMin0Max255"
    ]
    """Specifies the opacity of the background rectangle. 255 is opaque; 0 is transparent. Leaving this parameter out is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match."""
    font: NotRequired["capo_medialive.types.input_location.InputLocation"]
    """External font file used for caption burn-in. File extension must be 'ttf' or 'tte'. Although the user can select output fonts for many different types of input captions, embedded, STL and teletext sources use a strict grid system. Using external fonts with these caption sources could cause unexpected display of proportional fonts. All burn-in and DVB-Sub font settings must match."""
    font_color: NotRequired["capo_medialive.types.burn_in_font_color.BurnInFontColor"]
    """Specifies the color of the burned-in captions. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match."""
    font_opacity: NotRequired[
        "capo_medialive.types.__integer_min0_max255.__integerMin0Max255"
    ]
    """Specifies the opacity of the burned-in captions. 255 is opaque; 0 is transparent. All burn-in and DVB-Sub font settings must match."""
    font_resolution: NotRequired[
        "capo_medialive.types.__integer_min96_max600.__integerMin96Max600"
    ]
    """Font resolution in DPI (dots per inch); default is 96 dpi. All burn-in and DVB-Sub font settings must match."""
    font_size: NotRequired["capo_medialive.types.__string.__string"]
    """When set to 'auto' fontSize will scale depending on the size of the output. Giving a positive integer will specify the exact font size in points. All burn-in and DVB-Sub font settings must match."""
    outline_color: NotRequired[
        "capo_medialive.types.burn_in_outline_color.BurnInOutlineColor"
    ]
    """Specifies font outline color. This option is not valid for source captions that are either 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match."""
    outline_size: NotRequired[
        "capo_medialive.types.__integer_min0_max10.__integerMin0Max10"
    ]
    """Specifies font outline size in pixels. This option is not valid for source captions that are either 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match."""
    shadow_color: NotRequired[
        "capo_medialive.types.burn_in_shadow_color.BurnInShadowColor"
    ]
    """Specifies the color of the shadow cast by the captions. All burn-in and DVB-Sub font settings must match."""
    shadow_opacity: NotRequired[
        "capo_medialive.types.__integer_min0_max255.__integerMin0Max255"
    ]
    """Specifies the opacity of the shadow. 255 is opaque; 0 is transparent. Leaving this parameter out is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match."""
    shadow_x_offset: NotRequired["capo_medialive.types.__integer.__integer"]
    """Specifies the horizontal offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels to the left. All burn-in and DVB-Sub font settings must match."""
    shadow_y_offset: NotRequired["capo_medialive.types.__integer.__integer"]
    """Specifies the vertical offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels above the text. All burn-in and DVB-Sub font settings must match."""
    teletext_grid_control: NotRequired[
        "capo_medialive.types.burn_in_teletext_grid_control.BurnInTeletextGridControl"
    ]
    """Controls whether a fixed grid size will be used to generate the output subtitles bitmap. Only applicable for Teletext inputs and DVB-Sub/Burn-in outputs."""
    x_position: NotRequired["capo_medialive.types.__integer_min0.__integerMin0"]
    """Specifies the horizontal position of the caption relative to the left side of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the left of the output. If no explicit xPosition is provided, the horizontal caption position will be determined by the alignment parameter. All burn-in and DVB-Sub font settings must match."""
    y_position: NotRequired["capo_medialive.types.__integer_min0.__integerMin0"]
    """Specifies the vertical position of the caption relative to the top of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the top of the output. If no explicit yPosition is provided, the caption will be positioned towards the bottom of the output. All burn-in and DVB-Sub font settings must match."""
    subtitle_rows: NotRequired[
        "capo_medialive.types.burn_in_destination_subtitle_rows.BurnInDestinationSubtitleRows"
    ]
    """Applies only when the input captions are Teletext and the output captions are DVB-Sub or Burn-In. Choose the number of lines for the captions bitmap. The captions bitmap is 700 wide × 576 high and will be laid over the video. For example, a value of 16 divides the bitmap into 16 lines, with each line 36 pixels high (16 × 36 = 576). The default is 24 (24 pixels high). Enter the same number in every encode in every output that converts the same Teletext source to DVB-Sub or Burn-in."""

alignment instance-attribute

alignment: NotRequired[BurnInAlignment]

If no explicit xPosition or yPosition is provided, setting alignment to centered will place the captions at the bottom center of the output. Similarly, setting a left alignment will align captions to the bottom left of the output. If x and y positions are given in conjunction with the alignment parameter, the font will be justified (either left or centered) relative to those coordinates. Selecting "smart" justification will left-justify live subtitles and center-justify pre-recorded subtitles. All burn-in and DVB-Sub font settings must match.

background_color instance-attribute

background_color: NotRequired[BurnInBackgroundColor]

Specifies the color of the rectangle behind the captions. All burn-in and DVB-Sub font settings must match.

background_opacity instance-attribute

background_opacity: NotRequired[__integerMin0Max255]

Specifies the opacity of the background rectangle. 255 is opaque; 0 is transparent. Leaving this parameter out is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match.

font instance-attribute

font: NotRequired[InputLocation]

External font file used for caption burn-in. File extension must be 'ttf' or 'tte'. Although the user can select output fonts for many different types of input captions, embedded, STL and teletext sources use a strict grid system. Using external fonts with these caption sources could cause unexpected display of proportional fonts. All burn-in and DVB-Sub font settings must match.

font_color instance-attribute

font_color: NotRequired[BurnInFontColor]

Specifies the color of the burned-in captions. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match.

font_opacity instance-attribute

font_opacity: NotRequired[__integerMin0Max255]

Specifies the opacity of the burned-in captions. 255 is opaque; 0 is transparent. All burn-in and DVB-Sub font settings must match.

font_resolution instance-attribute

font_resolution: NotRequired[__integerMin96Max600]

Font resolution in DPI (dots per inch); default is 96 dpi. All burn-in and DVB-Sub font settings must match.

font_size instance-attribute

font_size: NotRequired[__string]

When set to 'auto' fontSize will scale depending on the size of the output. Giving a positive integer will specify the exact font size in points. All burn-in and DVB-Sub font settings must match.

outline_color instance-attribute

outline_color: NotRequired[BurnInOutlineColor]

Specifies font outline color. This option is not valid for source captions that are either 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match.

outline_size instance-attribute

outline_size: NotRequired[__integerMin0Max10]

Specifies font outline size in pixels. This option is not valid for source captions that are either 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match.

shadow_color instance-attribute

shadow_color: NotRequired[BurnInShadowColor]

Specifies the color of the shadow cast by the captions. All burn-in and DVB-Sub font settings must match.

shadow_opacity instance-attribute

shadow_opacity: NotRequired[__integerMin0Max255]

Specifies the opacity of the shadow. 255 is opaque; 0 is transparent. Leaving this parameter out is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match.

shadow_x_offset instance-attribute

shadow_x_offset: NotRequired[__integer]

Specifies the horizontal offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels to the left. All burn-in and DVB-Sub font settings must match.

shadow_y_offset instance-attribute

shadow_y_offset: NotRequired[__integer]

Specifies the vertical offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels above the text. All burn-in and DVB-Sub font settings must match.

subtitle_rows instance-attribute

subtitle_rows: NotRequired[BurnInDestinationSubtitleRows]

Applies only when the input captions are Teletext and the output captions are DVB-Sub or Burn-In. Choose the number of lines for the captions bitmap. The captions bitmap is 700 wide × 576 high and will be laid over the video. For example, a value of 16 divides the bitmap into 16 lines, with each line 36 pixels high (16 × 36 = 576). The default is 24 (24 pixels high). Enter the same number in every encode in every output that converts the same Teletext source to DVB-Sub or Burn-in.

teletext_grid_control instance-attribute

teletext_grid_control: NotRequired[BurnInTeletextGridControl]

Controls whether a fixed grid size will be used to generate the output subtitles bitmap. Only applicable for Teletext inputs and DVB-Sub/Burn-in outputs.

x_position instance-attribute

x_position: NotRequired[__integerMin0]

Specifies the horizontal position of the caption relative to the left side of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the left of the output. If no explicit xPosition is provided, the horizontal caption position will be determined by the alignment parameter. All burn-in and DVB-Sub font settings must match.

y_position instance-attribute

y_position: NotRequired[__integerMin0]

Specifies the vertical position of the caption relative to the top of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the top of the output. If no explicit yPosition is provided, the caption will be positioned towards the bottom of the output. All burn-in and DVB-Sub font settings must match.