You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::MediaConvert::Types::AudioSelector

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/types.rb

Overview

Note:

When making an API call, you may pass AudioSelector data as a hash:

{
  default_selection: "DEFAULT", # accepts DEFAULT, NOT_DEFAULT
  external_audio_file_input: "__string",
  language_code: "ENG", # accepts ENG, SPA, FRA, DEU, GER, ZHO, ARA, HIN, JPN, RUS, POR, ITA, URD, VIE, KOR, PAN, ABK, AAR, AFR, AKA, SQI, AMH, ARG, HYE, ASM, AVA, AVE, AYM, AZE, BAM, BAK, EUS, BEL, BEN, BIH, BIS, BOS, BRE, BUL, MYA, CAT, KHM, CHA, CHE, NYA, CHU, CHV, COR, COS, CRE, HRV, CES, DAN, DIV, NLD, DZO, ENM, EPO, EST, EWE, FAO, FIJ, FIN, FRM, FUL, GLA, GLG, LUG, KAT, ELL, GRN, GUJ, HAT, HAU, HEB, HER, HMO, HUN, ISL, IDO, IBO, IND, INA, ILE, IKU, IPK, GLE, JAV, KAL, KAN, KAU, KAS, KAZ, KIK, KIN, KIR, KOM, KON, KUA, KUR, LAO, LAT, LAV, LIM, LIN, LIT, LUB, LTZ, MKD, MLG, MSA, MAL, MLT, GLV, MRI, MAR, MAH, MON, NAU, NAV, NDE, NBL, NDO, NEP, SME, NOR, NOB, NNO, OCI, OJI, ORI, ORM, OSS, PLI, FAS, POL, PUS, QUE, QAA, RON, ROH, RUN, SMO, SAG, SAN, SRD, SRB, SNA, III, SND, SIN, SLK, SLV, SOM, SOT, SUN, SWA, SSW, SWE, TGL, TAH, TGK, TAM, TAT, TEL, THA, BOD, TIR, TON, TSO, TSN, TUR, TUK, TWI, UIG, UKR, UZB, VEN, VOL, WLN, CYM, FRY, WOL, XHO, YID, YOR, ZHA, ZUL, ORJ, QPC, TNG
  offset: 1,
  pids: [1],
  program_selection: 1,
  remix_settings: {
    channel_mapping: {
      output_channels: [
        {
          input_channels: [1],
        },
      ],
    },
    channels_in: 1,
    channels_out: 1,
  },
  selector_type: "PID", # accepts PID, TRACK, LANGUAGE_CODE
  tracks: [1],
}

Selector for Audio

Instance Attribute Summary collapse

Instance Attribute Details

#default_selectionString

When an "Audio Description":#audio_description specifies an AudioSelector or AudioSelectorGroup for which no matching source is found in the input, then the audio selector marked as DEFAULT will be used. If none are marked as default, silence will be inserted for the duration of the input.

Returns:

  • (String)


672
673
674
675
676
677
678
679
680
681
682
683
# File 'gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/types.rb', line 672

class AudioSelector < Struct.new(
  :default_selection,
  :external_audio_file_input,
  :language_code,
  :offset,
  :pids,
  :program_selection,
  :remix_settings,
  :selector_type,
  :tracks)
  include Aws::Structure
end

#external_audio_file_inputString

Specifies audio data from an external file source.

Returns:

  • (String)


672
673
674
675
676
677
678
679
680
681
682
683
# File 'gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/types.rb', line 672

class AudioSelector < Struct.new(
  :default_selection,
  :external_audio_file_input,
  :language_code,
  :offset,
  :pids,
  :program_selection,
  :remix_settings,
  :selector_type,
  :tracks)
  include Aws::Structure
end

#language_codeString

Selects a specific language code from within an audio source.

Returns:

  • (String)


672
673
674
675
676
677
678
679
680
681
682
683
# File 'gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/types.rb', line 672

class AudioSelector < Struct.new(
  :default_selection,
  :external_audio_file_input,
  :language_code,
  :offset,
  :pids,
  :program_selection,
  :remix_settings,
  :selector_type,
  :tracks)
  include Aws::Structure
end

#offsetInteger

Specifies a time delta in milliseconds to offset the audio from the input video.

Returns:

  • (Integer)


672
673
674
675
676
677
678
679
680
681
682
683
# File 'gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/types.rb', line 672

class AudioSelector < Struct.new(
  :default_selection,
  :external_audio_file_input,
  :language_code,
  :offset,
  :pids,
  :program_selection,
  :remix_settings,
  :selector_type,
  :tracks)
  include Aws::Structure
end

#pidsArray<Integer>

Selects a specific PID from within an audio source (e.g. 257 selects PID 0x101).

Returns:

  • (Array<Integer>)


672
673
674
675
676
677
678
679
680
681
682
683
# File 'gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/types.rb', line 672

class AudioSelector < Struct.new(
  :default_selection,
  :external_audio_file_input,
  :language_code,
  :offset,
  :pids,
  :program_selection,
  :remix_settings,
  :selector_type,
  :tracks)
  include Aws::Structure
end

#program_selectionInteger

Applies only when input streams contain Dolby E. Enter the program ID (according to the metadata in the audio) of the Dolby E program to extract from the specified track. One program extracted per audio selector. To select multiple programs, create multiple selectors with the same Track and different Program numbers. "All channels" means to ignore the program IDs and include all the channels in this selector; useful if metadata is known to be incorrect.

Returns:

  • (Integer)


672
673
674
675
676
677
678
679
680
681
682
683
# File 'gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/types.rb', line 672

class AudioSelector < Struct.new(
  :default_selection,
  :external_audio_file_input,
  :language_code,
  :offset,
  :pids,
  :program_selection,
  :remix_settings,
  :selector_type,
  :tracks)
  include Aws::Structure
end

#remix_settingsTypes::RemixSettings

Advanced audio remixing settings.



672
673
674
675
676
677
678
679
680
681
682
683
# File 'gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/types.rb', line 672

class AudioSelector < Struct.new(
  :default_selection,
  :external_audio_file_input,
  :language_code,
  :offset,
  :pids,
  :program_selection,
  :remix_settings,
  :selector_type,
  :tracks)
  include Aws::Structure
end

#selector_typeString

Specifies the type of the audio selector.

Returns:

  • (String)


672
673
674
675
676
677
678
679
680
681
682
683
# File 'gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/types.rb', line 672

class AudioSelector < Struct.new(
  :default_selection,
  :external_audio_file_input,
  :language_code,
  :offset,
  :pids,
  :program_selection,
  :remix_settings,
  :selector_type,
  :tracks)
  include Aws::Structure
end

#tracksArray<Integer>

Identify the channel to include in this selector by entering the 1-based track index. To combine several tracks, enter a comma-separated list, e.g. "1,2,3" for tracks 1-3.

Returns:

  • (Array<Integer>)


672
673
674
675
676
677
678
679
680
681
682
683
# File 'gems/aws-sdk-mediaconvert/lib/aws-sdk-mediaconvert/types.rb', line 672

class AudioSelector < Struct.new(
  :default_selection,
  :external_audio_file_input,
  :language_code,
  :offset,
  :pids,
  :program_selection,
  :remix_settings,
  :selector_type,
  :tracks)
  include Aws::Structure
end