Class: AWSCDK::MediaConnect::CfnFlow::EncodingConfigProperty

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(encoding_profile: nil, video_max_bitrate: nil) ⇒ EncodingConfigProperty

Returns a new instance of EncodingConfigProperty.

Parameters:

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

    The encoding profile to use when transcoding the NDI source to a Transport Stream.

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

    The maximum video bitrate to use when transcoding the NDI source to a Transport Stream.



795
796
797
798
799
800
# File 'media_connect/cfn_flow.rb', line 795

def initialize(encoding_profile: nil, video_max_bitrate: nil)
  @encoding_profile = encoding_profile
  Jsii::Type.check_type(@encoding_profile, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "encodingProfile") unless @encoding_profile.nil?
  @video_max_bitrate = video_max_bitrate
  Jsii::Type.check_type(@video_max_bitrate, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "videoMaxBitrate") unless @video_max_bitrate.nil?
end

Instance Attribute Details

#encoding_profileString? (readonly)

The encoding profile to use when transcoding the NDI source to a Transport Stream.

You can change this value while a flow is running.



808
809
810
# File 'media_connect/cfn_flow.rb', line 808

def encoding_profile
  @encoding_profile
end

#video_max_bitrateNumeric? (readonly)

The maximum video bitrate to use when transcoding the NDI source to a Transport Stream.

This parameter enables you to override the default video bitrate within the encoding profile's supported range. The supported range is 10,000,000 - 50,000,000 bits per second (bps). If you do not specify a value, MediaConnect uses the default value of 20,000,000 bps.



815
816
817
# File 'media_connect/cfn_flow.rb', line 815

def video_max_bitrate
  @video_max_bitrate
end

Class Method Details

.jsii_propertiesObject



817
818
819
820
821
822
# File 'media_connect/cfn_flow.rb', line 817

def self.jsii_properties
  {
    :encoding_profile => "encodingProfile",
    :video_max_bitrate => "videoMaxBitrate",
  }
end

Instance Method Details

#to_jsiiObject



824
825
826
827
828
829
830
831
# File 'media_connect/cfn_flow.rb', line 824

def to_jsii
  result = {}
  result.merge!({
    "encodingProfile" => @encoding_profile,
    "videoMaxBitrate" => @video_max_bitrate,
  })
  result.compact
end