Class: AWSCDK::MediaConnect::CfnFlowOutput::EncodingParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_connect/cfn_flow_output.rb

Overview

A collection of parameters that determine how MediaConnect will convert the content.

These fields only apply to outputs on flows that have a CDI source.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(compression_factor:, encoder_profile: nil) ⇒ EncodingParametersProperty

Returns a new instance of EncodingParametersProperty.

Parameters:

  • compression_factor (Numeric)

    A value that is used to calculate compression for an output.

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

    A setting on the encoder that drives compression settings.



842
843
844
845
846
847
# File 'media_connect/cfn_flow_output.rb', line 842

def initialize(compression_factor:, encoder_profile: nil)
  @compression_factor = compression_factor
  Jsii::Type.check_type(@compression_factor, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "compressionFactor")
  @encoder_profile = encoder_profile
  Jsii::Type.check_type(@encoder_profile, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "encoderProfile") unless @encoder_profile.nil?
end

Instance Attribute Details

#compression_factorNumeric (readonly)

A value that is used to calculate compression for an output.

The bitrate of the output is calculated as follows: Output bitrate = (1 / compressionFactor) * (source bitrate) This property only applies to outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol. Valid values are floating point numbers in the range of 3.0 to 10.0, inclusive.



855
856
857
# File 'media_connect/cfn_flow_output.rb', line 855

def compression_factor
  @compression_factor
end

#encoder_profileString? (readonly)

A setting on the encoder that drives compression settings.

This property only applies to video media streams associated with outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol.



862
863
864
# File 'media_connect/cfn_flow_output.rb', line 862

def encoder_profile
  @encoder_profile
end

Class Method Details

.jsii_propertiesObject



864
865
866
867
868
869
# File 'media_connect/cfn_flow_output.rb', line 864

def self.jsii_properties
  {
    :compression_factor => "compressionFactor",
    :encoder_profile => "encoderProfile",
  }
end

Instance Method Details

#to_jsiiObject



871
872
873
874
875
876
877
878
# File 'media_connect/cfn_flow_output.rb', line 871

def to_jsii
  result = {}
  result.merge!({
    "compressionFactor" => @compression_factor,
    "encoderProfile" => @encoder_profile,
  })
  result.compact
end