CaptionSelectorProperty Struct
Information about one caption to extract from the input.
The parent of this entity is InputSettings.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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 captionSelectorProperty: medialive.CfnChannel.CaptionSelectorProperty = {
languageCode: 'languageCode',
name: 'name',
selectorSettings: {
ancillarySourceSettings: {
sourceAncillaryChannelNumber: 123,
},
aribSourceSettings: { },
dvbSubSourceSettings: {
ocrLanguage: 'ocrLanguage',
pid: 123,
},
embeddedSourceSettings: {
convert608To708: 'convert608To708',
scte20Detection: 'scte20Detection',
source608ChannelNumber: 123,
source608TrackNumber: 123,
},
scte20SourceSettings: {
convert608To708: 'convert608To708',
source608ChannelNumber: 123,
},
scte27SourceSettings: {
ocrLanguage: 'ocrLanguage',
pid: 123,
},
smartSubtitleSourceSettings: {
captionSynchronizationMode: 'captionSynchronizationMode',
inferenceFeedOutput: 'inferenceFeedOutput',
},
teletextSourceSettings: {
outputRectangle: {
height: 123,
leftOffset: 123,
topOffset: 123,
width: 123,
},
pageNumber: 'pageNumber',
},
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_medialive as medialive
caption_selector_property = medialive.CfnChannel.CaptionSelectorProperty(
language_code="languageCode",
name="name",
selector_settings=medialive.CfnChannel.CaptionSelectorSettingsProperty(
ancillary_source_settings=medialive.CfnChannel.AncillarySourceSettingsProperty(
source_ancillary_channel_number=123
),
arib_source_settings=medialive.CfnChannel.AribSourceSettingsProperty(),
dvb_sub_source_settings=medialive.CfnChannel.DvbSubSourceSettingsProperty(
ocr_language="ocrLanguage",
pid=123
),
embedded_source_settings=medialive.CfnChannel.EmbeddedSourceSettingsProperty(
convert608_to708="convert608To708",
scte20_detection="scte20Detection",
source608_channel_number=123,
source608_track_number=123
),
scte20_source_settings=medialive.CfnChannel.Scte20SourceSettingsProperty(
convert608_to708="convert608To708",
source608_channel_number=123
),
scte27_source_settings=medialive.CfnChannel.Scte27SourceSettingsProperty(
ocr_language="ocrLanguage",
pid=123
),
smart_subtitle_source_settings=medialive.CfnChannel.SmartSubtitleSourceSettingsProperty(
caption_synchronization_mode="captionSynchronizationMode",
inference_feed_output="inferenceFeedOutput"
),
teletext_source_settings=medialive.CfnChannel.TeletextSourceSettingsProperty(
output_rectangle=medialive.CfnChannel.CaptionRectangleProperty(
height=123,
left_offset=123,
top_offset=123,
width=123
),
page_number="pageNumber"
)
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.medialive.*;
CaptionSelectorProperty captionSelectorProperty = CaptionSelectorProperty.builder()
.languageCode("languageCode")
.name("name")
.selectorSettings(CaptionSelectorSettingsProperty.builder()
.ancillarySourceSettings(AncillarySourceSettingsProperty.builder()
.sourceAncillaryChannelNumber(123)
.build())
.aribSourceSettings(AribSourceSettingsProperty.builder().build())
.dvbSubSourceSettings(DvbSubSourceSettingsProperty.builder()
.ocrLanguage("ocrLanguage")
.pid(123)
.build())
.embeddedSourceSettings(EmbeddedSourceSettingsProperty.builder()
.convert608To708("convert608To708")
.scte20Detection("scte20Detection")
.source608ChannelNumber(123)
.source608TrackNumber(123)
.build())
.scte20SourceSettings(Scte20SourceSettingsProperty.builder()
.convert608To708("convert608To708")
.source608ChannelNumber(123)
.build())
.scte27SourceSettings(Scte27SourceSettingsProperty.builder()
.ocrLanguage("ocrLanguage")
.pid(123)
.build())
.smartSubtitleSourceSettings(SmartSubtitleSourceSettingsProperty.builder()
.captionSynchronizationMode("captionSynchronizationMode")
.inferenceFeedOutput("inferenceFeedOutput")
.build())
.teletextSourceSettings(TeletextSourceSettingsProperty.builder()
.outputRectangle(CaptionRectangleProperty.builder()
.height(123)
.leftOffset(123)
.topOffset(123)
.width(123)
.build())
.pageNumber("pageNumber")
.build())
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaLive;
var captionSelectorProperty = new CaptionSelectorProperty {
LanguageCode = "languageCode",
Name = "name",
SelectorSettings = new CaptionSelectorSettingsProperty {
AncillarySourceSettings = new AncillarySourceSettingsProperty {
SourceAncillaryChannelNumber = 123
},
AribSourceSettings = new AribSourceSettingsProperty { },
DvbSubSourceSettings = new DvbSubSourceSettingsProperty {
OcrLanguage = "ocrLanguage",
Pid = 123
},
EmbeddedSourceSettings = new EmbeddedSourceSettingsProperty {
Convert608To708 = "convert608To708",
Scte20Detection = "scte20Detection",
Source608ChannelNumber = 123,
Source608TrackNumber = 123
},
Scte20SourceSettings = new Scte20SourceSettingsProperty {
Convert608To708 = "convert608To708",
Source608ChannelNumber = 123
},
Scte27SourceSettings = new Scte27SourceSettingsProperty {
OcrLanguage = "ocrLanguage",
Pid = 123
},
SmartSubtitleSourceSettings = new SmartSubtitleSourceSettingsProperty {
CaptionSynchronizationMode = "captionSynchronizationMode",
InferenceFeedOutput = "inferenceFeedOutput"
},
TeletextSourceSettings = new TeletextSourceSettingsProperty {
OutputRectangle = new CaptionRectangleProperty {
Height = 123,
LeftOffset = 123,
TopOffset = 123,
Width = 123
},
PageNumber = "pageNumber"
}
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
captionSelectorProperty := &CaptionSelectorProperty{
LanguageCode: jsii.String("languageCode"),
Name: jsii.String("name"),
SelectorSettings: &CaptionSelectorSettingsProperty{
AncillarySourceSettings: &AncillarySourceSettingsProperty{
SourceAncillaryChannelNumber: jsii.Number(123),
},
AribSourceSettings: &AribSourceSettingsProperty{
},
DvbSubSourceSettings: &DvbSubSourceSettingsProperty{
OcrLanguage: jsii.String("ocrLanguage"),
Pid: jsii.Number(123),
},
EmbeddedSourceSettings: &EmbeddedSourceSettingsProperty{
Convert608To708: jsii.String("convert608To708"),
Scte20Detection: jsii.String("scte20Detection"),
Source608ChannelNumber: jsii.Number(123),
Source608TrackNumber: jsii.Number(123),
},
Scte20SourceSettings: &Scte20SourceSettingsProperty{
Convert608To708: jsii.String("convert608To708"),
Source608ChannelNumber: jsii.Number(123),
},
Scte27SourceSettings: &Scte27SourceSettingsProperty{
OcrLanguage: jsii.String("ocrLanguage"),
Pid: jsii.Number(123),
},
SmartSubtitleSourceSettings: &SmartSubtitleSourceSettingsProperty{
CaptionSynchronizationMode: jsii.String("captionSynchronizationMode"),
InferenceFeedOutput: jsii.String("inferenceFeedOutput"),
},
TeletextSourceSettings: &TeletextSourceSettingsProperty{
OutputRectangle: &CaptionRectangleProperty{
Height: jsii.Number(123),
LeftOffset: jsii.Number(123),
TopOffset: jsii.Number(123),
Width: jsii.Number(123),
},
PageNumber: jsii.String("pageNumber"),
},
},
}
Properties
languageCodeoptionalstringlanguage_codeoptionalstrlanguageCodeoptionalStringLanguageCodeoptionalstringLanguageCodeoptional*string #When specified, this field indicates the three-letter language code of the captions track to extract from the source.
The name identifier for a captions selector.
This name is used to associate this captions selector with one or more captions descriptions. Names must be unique within a channel.
selectorSettingsoptionalIResolvable | CfnChannel.selector_settingsoptionaltyping.Union[IResolvable, CaptionSelectorSettingsProperty]selectorSettingsoptionalIResolvableSelectorSettingsoptionalIResolvableSelectorSettingsoptionalinterface{} #Information about the specific audio to extract from the input.