DvbSubDestinationSettingsProperty Struct
The settings for DVB Sub captions in the output.
The parent of this entity is CaptionDestinationSettings.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_medialive as medialive } from 'aws-cdk-lib';
const dvbSubDestinationSettingsProperty: medialive.CfnChannel.DvbSubDestinationSettingsProperty = {
alignment: 'alignment',
backgroundColor: 'backgroundColor',
backgroundOpacity: 123,
font: {
passwordParam: 'passwordParam',
uri: 'uri',
username: 'username',
},
fontColor: 'fontColor',
fontOpacity: 123,
fontResolution: 123,
fontSize: 'fontSize',
outlineColor: 'outlineColor',
outlineSize: 123,
shadowColor: 'shadowColor',
shadowOpacity: 123,
shadowXOffset: 123,
shadowYOffset: 123,
subtitleRows: 'subtitleRows',
teletextGridControl: 'teletextGridControl',
xPosition: 123,
yPosition: 123,
};
Properties
alignmentoptionalstringalignmentoptionalstralignmentoptionalStringAlignmentoptionalstringAlignmentoptional*string#notes
Similarly, setting a left alignment aligns captions to the bottom left of the output. If x and y positions are specified in conjunction with the alignment parameter, the font is justified (either left or centered) relative to those coordinates. Selecting "smart" justification left-justifies live subtitles and center-justifies pre-recorded subtitles. This option is not valid for source captions that are STL or 608/embedded. These source settings are already pre-defined by the captions stream. All burn-in and DVB-Sub font settings must match.
backgroundColoroptionalstringbackground_coloroptionalstrbackgroundColoroptionalStringBackgroundColoroptionalstringBackgroundColoroptional*string#All burn-in and DVB-Sub font settings must match.
backgroundOpacityoptionalnumberbackground_opacityoptionalint | floatbackgroundOpacityoptionalNumberBackgroundOpacityoptionaldoubleBackgroundOpacityoptional*float64#255 is opaque; 0 is transparent. Keeping this parameter blank is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match.
fontoptionalIResolvable | CfnChannel.InputLocationPropertyfontoptionaltyping.Union[IResolvable, InputLocationProperty]fontoptionalIResolvableFontoptionalIResolvableFontoptionalinterface{}#notes
The file extension must be .ttf or .tte. Although you 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 captions sources could cause an unexpected display of proportional fonts. All burn-in and DVB-Sub font settings must match.
fontColoroptionalstringfont_coloroptionalstrfontColoroptionalStringFontColoroptionalstringFontColoroptional*string#This option is not valid for source captions that are STL, 608/embedded, or Teletext. These source settings are already pre-defined by the captions stream. All burn-in and DVB-Sub font settings must match.
fontOpacityoptionalnumberfont_opacityoptionalint | floatfontOpacityoptionalNumberFontOpacityoptionaldoubleFontOpacityoptional*float64#255 is opaque; 0 is transparent. All burn-in and DVB-Sub font settings must match.
fontResolutionoptionalnumberfont_resolutionoptionalint | floatfontResolutionoptionalNumberFontResolutionoptionaldoubleFontResolutionoptional*float64#The default is 96 dpi. All burn-in and DVB-Sub font settings must match.
fontSizeoptionalstringfont_sizeoptionalstrfontSizeoptionalStringFontSizeoptionalstringFontSizeoptional*string#Providing a positive integer specifies the exact font size in points. All burn-in and DVB-Sub font settings must match.
outlineColoroptionalstringoutline_coloroptionalstroutlineColoroptionalStringOutlineColoroptionalstringOutlineColoroptional*string#This option is not valid for source captions that are either 608/embedded or Teletext. These source settings are already pre-defined by the captions stream. All burn-in and DVB-Sub font settings must match.
outlineSizeoptionalnumberoutline_sizeoptionalint | floatoutlineSizeoptionalNumberOutlineSizeoptionaldoubleOutlineSizeoptional*float64#This option is not valid for source captions that are either 608/embedded or Teletext. These source settings are already pre-defined by the captions stream. All burn-in and DVB-Sub font settings must match.
shadowColoroptionalstringshadow_coloroptionalstrshadowColoroptionalStringShadowColoroptionalstringShadowColoroptional*string#All burn-in and DVB-Sub font settings must match.
shadowOpacityoptionalnumbershadow_opacityoptionalint | floatshadowOpacityoptionalNumberShadowOpacityoptionaldoubleShadowOpacityoptional*float64#255 is opaque; 0 is transparent. Keeping this parameter blank is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match.
shadowXOffsetoptionalnumbershadow_x_offsetoptionalint | floatshadowXOffsetoptionalNumberShadowXOffsetoptionaldoubleShadowXOffsetoptional*float64#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.
shadowYOffsetoptionalnumbershadow_y_offsetoptionalint | floatshadowYOffsetoptionalNumberShadowYOffsetoptionaldoubleShadowYOffsetoptional*float64#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.
subtitleRowsoptionalstringsubtitle_rowsoptionalstrsubtitleRowsoptionalStringSubtitleRowsoptionalstringSubtitleRowsoptional*string#teletextGridControloptionalstringteletext_grid_controloptionalstrteletextGridControloptionalStringTeletextGridControloptionalstringTeletextGridControloptional*string#This applies to only Teletext inputs and DVB-Sub/Burn-in outputs.
xPositionoptionalnumberx_positionoptionalint | floatxPositionoptionalNumberXPositionoptionaldoubleXPositionoptional*float64#notes
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 captions position is determined by the alignment parameter. This option is not valid for source captions that are STL, 608/embedded, or Teletext. These source settings are already pre-defined by the captions stream. All burn-in and DVB-Sub font settings must match.
yPositionoptionalnumbery_positionoptionalint | floatyPositionoptionalNumberYPositionoptionaldoubleYPositionoptional*float64#notes
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 captions are positioned towards the bottom of the output. This option is not valid for source captions that are STL, 608/embedded, or Teletext. These source settings are already pre-defined by the captions stream. All burn-in and DVB-Sub font settings must match.