Class: AWSCDK::MediaLive::CfnChannel::Ac3SettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_live/cfn_channel.rb

Overview

The settings for an AC3 audio encode in the output.

The parent of this entity is AudioCodecSettings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attenuation_control: nil, bitrate: nil, bitstream_mode: nil, coding_mode: nil, dialnorm: nil, drc_profile: nil, lfe_filter: nil, metadata_control: nil) ⇒ Ac3SettingsProperty

Returns a new instance of Ac3SettingsProperty.

Parameters:

  • attenuation_control (String, nil) (defaults to: nil)
  • bitrate (Numeric, nil) (defaults to: nil)

    The average bitrate in bits/second.

  • bitstream_mode (String, nil) (defaults to: nil)

    Specifies the bitstream mode (bsmod) for the emitted AC-3 stream.

  • coding_mode (String, nil) (defaults to: nil)

    The Dolby Digital coding mode.

  • dialnorm (Numeric, nil) (defaults to: nil)

    Sets the dialnorm for the output.

  • drc_profile (String, nil) (defaults to: nil)

    If set to filmStandard, adds dynamic range compression signaling to the output bitstream as defined in the Dolby Digital specification.

  • lfe_filter (String, nil) (defaults to: nil)

    When set to enabled, applies a 120Hz lowpass filter to the LFE channel prior to encoding.

  • metadata_control (String, nil) (defaults to: nil)

    When set to followInput, encoder metadata is sourced from the DD, DD+, or DolbyE decoder that supplies this audio data.



916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
# File 'media_live/cfn_channel.rb', line 916

def initialize(attenuation_control: nil, bitrate: nil, bitstream_mode: nil, coding_mode: nil, dialnorm: nil, drc_profile: nil, lfe_filter: nil, metadata_control: nil)
  @attenuation_control = attenuation_control
  Jsii::Type.check_type(@attenuation_control, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attenuationControl") unless @attenuation_control.nil?
  @bitrate = bitrate
  Jsii::Type.check_type(@bitrate, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "bitrate") unless @bitrate.nil?
  @bitstream_mode = bitstream_mode
  Jsii::Type.check_type(@bitstream_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bitstreamMode") unless @bitstream_mode.nil?
  @coding_mode = coding_mode
  Jsii::Type.check_type(@coding_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "codingMode") unless @coding_mode.nil?
  @dialnorm = dialnorm
  Jsii::Type.check_type(@dialnorm, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "dialnorm") unless @dialnorm.nil?
  @drc_profile = drc_profile
  Jsii::Type.check_type(@drc_profile, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "drcProfile") unless @drc_profile.nil?
  @lfe_filter = lfe_filter
  Jsii::Type.check_type(@lfe_filter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lfeFilter") unless @lfe_filter.nil?
  @metadata_control = 
  Jsii::Type.check_type(@metadata_control, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "metadataControl") unless @metadata_control.nil?
end

Instance Attribute Details

#attenuation_controlString? (readonly)



937
938
939
# File 'media_live/cfn_channel.rb', line 937

def attenuation_control
  @attenuation_control
end

#bitrateNumeric? (readonly)

The average bitrate in bits/second.

Valid bitrates depend on the coding mode.



944
945
946
# File 'media_live/cfn_channel.rb', line 944

def bitrate
  @bitrate
end

#bitstream_modeString? (readonly)

Specifies the bitstream mode (bsmod) for the emitted AC-3 stream.

For more information about these values, see ATSC A/52-2012.



951
952
953
# File 'media_live/cfn_channel.rb', line 951

def bitstream_mode
  @bitstream_mode
end

#coding_modeString? (readonly)

The Dolby Digital coding mode.

This determines the number of channels.



958
959
960
# File 'media_live/cfn_channel.rb', line 958

def coding_mode
  @coding_mode
end

#dialnormNumeric? (readonly)

Sets the dialnorm for the output.

If excluded and the input audio is Dolby Digital, dialnorm is passed through.



965
966
967
# File 'media_live/cfn_channel.rb', line 965

def dialnorm
  @dialnorm
end

#drc_profileString? (readonly)

If set to filmStandard, adds dynamic range compression signaling to the output bitstream as defined in the Dolby Digital specification.



970
971
972
# File 'media_live/cfn_channel.rb', line 970

def drc_profile
  @drc_profile
end

#lfe_filterString? (readonly)

When set to enabled, applies a 120Hz lowpass filter to the LFE channel prior to encoding.

This is valid only in codingMode32Lfe mode.



977
978
979
# File 'media_live/cfn_channel.rb', line 977

def lfe_filter
  @lfe_filter
end

#metadata_controlString? (readonly)

When set to followInput, encoder metadata is sourced from the DD, DD+, or DolbyE decoder that supplies this audio data.

If the audio is supplied from one of these streams, the static metadata settings are used.



984
985
986
# File 'media_live/cfn_channel.rb', line 984

def 
  @metadata_control
end

Class Method Details

.jsii_propertiesObject



986
987
988
989
990
991
992
993
994
995
996
997
# File 'media_live/cfn_channel.rb', line 986

def self.jsii_properties
  {
    :attenuation_control => "attenuationControl",
    :bitrate => "bitrate",
    :bitstream_mode => "bitstreamMode",
    :coding_mode => "codingMode",
    :dialnorm => "dialnorm",
    :drc_profile => "drcProfile",
    :lfe_filter => "lfeFilter",
    :metadata_control => "metadataControl",
  }
end

Instance Method Details

#to_jsiiObject



999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
# File 'media_live/cfn_channel.rb', line 999

def to_jsii
  result = {}
  result.merge!({
    "attenuationControl" => @attenuation_control,
    "bitrate" => @bitrate,
    "bitstreamMode" => @bitstream_mode,
    "codingMode" => @coding_mode,
    "dialnorm" => @dialnorm,
    "drcProfile" => @drc_profile,
    "lfeFilter" => @lfe_filter,
    "metadataControl" => @metadata_control,
  })
  result.compact
end