Skip to content
v2.278.0

AudioTrackSelectionProperty ​

Struct External

Information about the audio track to extract.

The parent of this entity is AudioSelectorSettings.

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 audioTrackSelectionProperty: medialive.CfnChannel.AudioTrackSelectionProperty = {
  dolbyEDecode: {
    programSelection: 'programSelection',
  },
  tracks: [{
    premixSettings: {
      audioNormalizationSettings: {
        algorithm: 'algorithm',
        algorithmControl: 'algorithmControl',
        peakCalculation: 'peakCalculation',
        peakLimiterThreshold: 123,
        targetLkfs: 123,
      },
      channels: 123,
      gainDb: 123,
      remixSettings: {
        channelMappings: [{
          inputChannelLevels: [{
            gain: 123,
            inputChannel: 123,
          }],
          outputChannel: 123,
        }],
        channelsIn: 123,
        channelsOut: 123,
      },
    },
    track: 123,
  }],
};
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

audio_track_selection_property = medialive.CfnChannel.AudioTrackSelectionProperty(
    dolby_e_decode=medialive.CfnChannel.AudioDolbyEDecodeProperty(
        program_selection="programSelection"
    ),
    tracks=[medialive.CfnChannel.AudioTrackProperty(
        premix_settings=medialive.CfnChannel.AudioPreMixerSettingsProperty(
            audio_normalization_settings=medialive.CfnChannel.AudioNormalizationSettingsProperty(
                algorithm="algorithm",
                algorithm_control="algorithmControl",
                peak_calculation="peakCalculation",
                peak_limiter_threshold=123,
                target_lkfs=123
            ),
            channels=123,
            gain_db=123,
            remix_settings=medialive.CfnChannel.RemixSettingsProperty(
                channel_mappings=[medialive.CfnChannel.AudioChannelMappingProperty(
                    input_channel_levels=[medialive.CfnChannel.InputChannelLevelProperty(
                        gain=123,
                        input_channel=123
                    )],
                    output_channel=123
                )],
                channels_in=123,
                channels_out=123
            )
        ),
        track=123
    )]
)
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.*;

AudioTrackSelectionProperty audioTrackSelectionProperty = AudioTrackSelectionProperty.builder()
        .dolbyEDecode(AudioDolbyEDecodeProperty.builder()
                .programSelection("programSelection")
                .build())
        .tracks(List.of(AudioTrackProperty.builder()
                .premixSettings(AudioPreMixerSettingsProperty.builder()
                        .audioNormalizationSettings(AudioNormalizationSettingsProperty.builder()
                                .algorithm("algorithm")
                                .algorithmControl("algorithmControl")
                                .peakCalculation("peakCalculation")
                                .peakLimiterThreshold(123)
                                .targetLkfs(123)
                                .build())
                        .channels(123)
                        .gainDb(123)
                        .remixSettings(RemixSettingsProperty.builder()
                                .channelMappings(List.of(AudioChannelMappingProperty.builder()
                                        .inputChannelLevels(List.of(InputChannelLevelProperty.builder()
                                                .gain(123)
                                                .inputChannel(123)
                                                .build()))
                                        .outputChannel(123)
                                        .build()))
                                .channelsIn(123)
                                .channelsOut(123)
                                .build())
                        .build())
                .track(123)
                .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 audioTrackSelectionProperty = new AudioTrackSelectionProperty {
    DolbyEDecode = new AudioDolbyEDecodeProperty {
        ProgramSelection = "programSelection"
    },
    Tracks = new [] { new AudioTrackProperty {
        PremixSettings = new AudioPreMixerSettingsProperty {
            AudioNormalizationSettings = new AudioNormalizationSettingsProperty {
                Algorithm = "algorithm",
                AlgorithmControl = "algorithmControl",
                PeakCalculation = "peakCalculation",
                PeakLimiterThreshold = 123,
                TargetLkfs = 123
            },
            Channels = 123,
            GainDb = 123,
            RemixSettings = new RemixSettingsProperty {
                ChannelMappings = new [] { new AudioChannelMappingProperty {
                    InputChannelLevels = new [] { new InputChannelLevelProperty {
                        Gain = 123,
                        InputChannel = 123
                    } },
                    OutputChannel = 123
                } },
                ChannelsIn = 123,
                ChannelsOut = 123
            }
        },
        Track = 123
    } }
};
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"

audioTrackSelectionProperty := &AudioTrackSelectionProperty{
	DolbyEDecode: &AudioDolbyEDecodeProperty{
		ProgramSelection: jsii.String("programSelection"),
	},
	Tracks: []interface{}{
		&AudioTrackProperty{
			PremixSettings: &AudioPreMixerSettingsProperty{
				AudioNormalizationSettings: &AudioNormalizationSettingsProperty{
					Algorithm: jsii.String("algorithm"),
					AlgorithmControl: jsii.String("algorithmControl"),
					PeakCalculation: jsii.String("peakCalculation"),
					PeakLimiterThreshold: jsii.Number(123),
					TargetLkfs: jsii.Number(123),
				},
				Channels: jsii.Number(123),
				GainDb: jsii.Number(123),
				RemixSettings: &RemixSettingsProperty{
					ChannelMappings: []interface{}{
						&AudioChannelMappingProperty{
							InputChannelLevels: []interface{}{
								&InputChannelLevelProperty{
									Gain: jsii.Number(123),
									InputChannel: jsii.Number(123),
								},
							},
							OutputChannel: jsii.Number(123),
						},
					},
					ChannelsIn: jsii.Number(123),
					ChannelsOut: jsii.Number(123),
				},
			},
			Track: jsii.Number(123),
		},
	},
}

Properties ​

dolbyEDecodeoptionalIResolvable | CfnChannel.AudioDolbyEDecodePropertydolby_e_decodeoptionaltyping.Union[IResolvable, AudioDolbyEDecodeProperty]dolbyEDecodeoptionalIResolvableDolbyEDecodeoptionalIResolvableDolbyEDecodeoptionalinterface{} #
tracksoptionalIResolvable | IResolvable | CfnChannel.AudioTrackProperty[]tracksoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AudioTrackProperty]]]tracksoptionalIResolvableTracksoptionalIResolvableTracksoptionalinterface{} #
Selects one or more unique audio tracks from within a source.