Class: AWSCDK::MediaConnect::CfnFlowOutput::EncodingParametersProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaConnect::CfnFlowOutput::EncodingParametersProperty
- 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
-
#compression_factor ⇒ Numeric
readonly
A value that is used to calculate compression for an output.
-
#encoder_profile ⇒ String?
readonly
A setting on the encoder that drives compression settings.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(compression_factor:, encoder_profile: nil) ⇒ EncodingParametersProperty
constructor
A new instance of EncodingParametersProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(compression_factor:, encoder_profile: nil) ⇒ EncodingParametersProperty
Returns a new instance of EncodingParametersProperty.
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_factor ⇒ Numeric (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_profile ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |