Class: AWSCDK::MediaLive::CfnChannel::InputSettingsProperty

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

Overview

Information about extracting content from the input and about handling the content.

The parent of this entity is InputAttachment.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(audio_selectors: nil, caption_selectors: nil, deblock_filter: nil, denoise_filter: nil, filter_strength: nil, input_filter: nil, network_input_settings: nil, scte35_pid: nil, smpte2038_data_preference: nil, source_end_behavior: nil, video_selector: nil) ⇒ InputSettingsProperty

Returns a new instance of InputSettingsProperty.

Parameters:



8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
# File 'media_live/cfn_channel.rb', line 8867

def initialize(audio_selectors: nil, caption_selectors: nil, deblock_filter: nil, denoise_filter: nil, filter_strength: nil, input_filter: nil, network_input_settings: nil, scte35_pid: nil, smpte2038_data_preference: nil, source_end_behavior: nil, video_selector: nil)
  @audio_selectors = audio_selectors
  Jsii::Type.check_type(@audio_selectors, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbWVkaWFsaXZlLkNmbkNoYW5uZWwuQXVkaW9TZWxlY3RvclByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "audioSelectors") unless @audio_selectors.nil?
  @caption_selectors = caption_selectors
  Jsii::Type.check_type(@caption_selectors, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbWVkaWFsaXZlLkNmbkNoYW5uZWwuQ2FwdGlvblNlbGVjdG9yUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "captionSelectors") unless @caption_selectors.nil?
  @deblock_filter = deblock_filter
  Jsii::Type.check_type(@deblock_filter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deblockFilter") unless @deblock_filter.nil?
  @denoise_filter = denoise_filter
  Jsii::Type.check_type(@denoise_filter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "denoiseFilter") unless @denoise_filter.nil?
  @filter_strength = filter_strength
  Jsii::Type.check_type(@filter_strength, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "filterStrength") unless @filter_strength.nil?
  @input_filter = input_filter
  Jsii::Type.check_type(@input_filter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inputFilter") unless @input_filter.nil?
  @network_input_settings = network_input_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::NetworkInputSettingsProperty.new(**network_input_settings.transform_keys(&:to_sym)) : network_input_settings
  Jsii::Type.check_type(@network_input_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5OZXR3b3JrSW5wdXRTZXR0aW5nc1Byb3BlcnR5In1dfX0=")), "networkInputSettings") unless @network_input_settings.nil?
  @scte35_pid = scte35_pid
  Jsii::Type.check_type(@scte35_pid, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "scte35Pid") unless @scte35_pid.nil?
  @smpte2038_data_preference = smpte2038_data_preference
  Jsii::Type.check_type(@smpte2038_data_preference, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "smpte2038DataPreference") unless @smpte2038_data_preference.nil?
  @source_end_behavior = source_end_behavior
  Jsii::Type.check_type(@source_end_behavior, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceEndBehavior") unless @source_end_behavior.nil?
  @video_selector = video_selector.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::VideoSelectorProperty.new(**video_selector.transform_keys(&:to_sym)) : video_selector
  Jsii::Type.check_type(@video_selector, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5WaWRlb1NlbGVjdG9yUHJvcGVydHkifV19fQ==")), "videoSelector") unless @video_selector.nil?
end

Instance Attribute Details

#audio_selectorsAWSCDK::IResolvable, ... (readonly)

Information about the specific audio to extract from the input.

The parent of this entity is InputSettings.



8898
8899
8900
# File 'media_live/cfn_channel.rb', line 8898

def audio_selectors
  @audio_selectors
end

#caption_selectorsAWSCDK::IResolvable, ... (readonly)

Information about the specific captions to extract from the input.



8903
8904
8905
# File 'media_live/cfn_channel.rb', line 8903

def caption_selectors
  @caption_selectors
end

#deblock_filterString? (readonly)

Enables or disables the deblock filter when filtering.



8908
8909
8910
# File 'media_live/cfn_channel.rb', line 8908

def deblock_filter
  @deblock_filter
end

#denoise_filterString? (readonly)

Enables or disables the denoise filter when filtering.



8913
8914
8915
# File 'media_live/cfn_channel.rb', line 8913

def denoise_filter
  @denoise_filter
end

#filter_strengthNumeric? (readonly)

Adjusts the magnitude of filtering from 1 (minimal) to 5 (strongest).



8918
8919
8920
# File 'media_live/cfn_channel.rb', line 8918

def filter_strength
  @filter_strength
end

#input_filterString? (readonly)

Turns on the filter for this input.

MPEG-2 inputs have the deblocking filter enabled by default. 1) auto - filtering is applied depending on input type/quality 2) disabled - no filtering is applied to the input 3) forced - filtering is applied regardless of the input type.



8925
8926
8927
# File 'media_live/cfn_channel.rb', line 8925

def input_filter
  @input_filter
end

#network_input_settingsAWSCDK::IResolvable, ... (readonly)

Information about how to connect to the upstream system.



8930
8931
8932
# File 'media_live/cfn_channel.rb', line 8930

def network_input_settings
  @network_input_settings
end

#scte35_pidNumeric? (readonly)



8933
8934
8935
# File 'media_live/cfn_channel.rb', line 8933

def scte35_pid
  @scte35_pid
end

#smpte2038_data_preferenceString? (readonly)

Specifies whether to extract applicable ancillary data from a SMPTE-2038 source in this input.

Applicable data types are captions, timecode, AFD, and SCTE-104 messages.

  • PREFER: Extract from SMPTE-2038 if present in this input, otherwise extract from another source (if any).
  • IGNORE: Never extract any ancillary data from SMPTE-2038.


8943
8944
8945
# File 'media_live/cfn_channel.rb', line 8943

def smpte2038_data_preference
  @smpte2038_data_preference
end

#source_end_behaviorString? (readonly)

The loop input if it is a file.



8948
8949
8950
# File 'media_live/cfn_channel.rb', line 8948

def source_end_behavior
  @source_end_behavior
end

#video_selectorAWSCDK::IResolvable, ... (readonly)

Information about one video to extract from the input.



8953
8954
8955
# File 'media_live/cfn_channel.rb', line 8953

def video_selector
  @video_selector
end

Class Method Details

.jsii_propertiesObject



8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
# File 'media_live/cfn_channel.rb', line 8955

def self.jsii_properties
  {
    :audio_selectors => "audioSelectors",
    :caption_selectors => "captionSelectors",
    :deblock_filter => "deblockFilter",
    :denoise_filter => "denoiseFilter",
    :filter_strength => "filterStrength",
    :input_filter => "inputFilter",
    :network_input_settings => "networkInputSettings",
    :scte35_pid => "scte35Pid",
    :smpte2038_data_preference => "smpte2038DataPreference",
    :source_end_behavior => "sourceEndBehavior",
    :video_selector => "videoSelector",
  }
end

Instance Method Details

#to_jsiiObject



8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
# File 'media_live/cfn_channel.rb', line 8971

def to_jsii
  result = {}
  result.merge!({
    "audioSelectors" => @audio_selectors,
    "captionSelectors" => @caption_selectors,
    "deblockFilter" => @deblock_filter,
    "denoiseFilter" => @denoise_filter,
    "filterStrength" => @filter_strength,
    "inputFilter" => @input_filter,
    "networkInputSettings" => @network_input_settings,
    "scte35Pid" => @scte35_pid,
    "smpte2038DataPreference" => @smpte2038_data_preference,
    "sourceEndBehavior" => @source_end_behavior,
    "videoSelector" => @video_selector,
  })
  result.compact
end