Class: Google::Cloud::Video::Transcoder::V1::AudioStream

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/video/transcoder/v1/resources.rb

Overview

Audio stream resource.

Defined Under Namespace

Classes: AudioMapping

Instance Attribute Summary collapse

Instance Attribute Details

#bitrate_bps::Integer

Returns Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.

Returns:

  • (::Integer)

    Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.



1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
# File 'proto_docs/google/cloud/video/transcoder/v1/resources.rb', line 1299

class AudioStream
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
  # @!attribute [rw] atom_key
  #   @return [::String]
  #     Required. The `EditAtom.key` that references the atom with audio inputs
  #     in the `Job.edit_list`.
  # @!attribute [rw] input_key
  #   @return [::String]
  #     Required. The `Input.key` that identifies the input file.
  # @!attribute [rw] input_track
  #   @return [::Integer]
  #     Required. The zero-based index of the track in the input file.
  # @!attribute [rw] input_channel
  #   @return [::Integer]
  #     Required. The zero-based index of the channel in the input audio stream.
  # @!attribute [rw] output_channel
  #   @return [::Integer]
  #     Required. The zero-based index of the channel in the output audio stream.
  # @!attribute [rw] gain_db
  #   @return [::Float]
  #     Audio volume control in dB. Negative values decrease volume,
  #     positive values increase. The default is 0.
  class AudioMapping
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#channel_count::Integer

Returns Number of audio channels. Must be between 1 and 6. The default is 2.

Returns:

  • (::Integer)

    Number of audio channels. Must be between 1 and 6. The default is 2.



1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
# File 'proto_docs/google/cloud/video/transcoder/v1/resources.rb', line 1299

class AudioStream
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
  # @!attribute [rw] atom_key
  #   @return [::String]
  #     Required. The `EditAtom.key` that references the atom with audio inputs
  #     in the `Job.edit_list`.
  # @!attribute [rw] input_key
  #   @return [::String]
  #     Required. The `Input.key` that identifies the input file.
  # @!attribute [rw] input_track
  #   @return [::Integer]
  #     Required. The zero-based index of the track in the input file.
  # @!attribute [rw] input_channel
  #   @return [::Integer]
  #     Required. The zero-based index of the channel in the input audio stream.
  # @!attribute [rw] output_channel
  #   @return [::Integer]
  #     Required. The zero-based index of the channel in the output audio stream.
  # @!attribute [rw] gain_db
  #   @return [::Float]
  #     Audio volume control in dB. Negative values decrease volume,
  #     positive values increase. The default is 0.
  class AudioMapping
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#channel_layout::Array<::String>

Returns A list of channel names specifying layout of the audio channels. This only affects the metadata embedded in the container headers, if supported by the specified format. The default is ["fl", "fr"].

Supported channel names:

  • fl - Front left channel
  • fr - Front right channel
  • sl - Side left channel
  • sr - Side right channel
  • fc - Front center channel
  • lfe - Low frequency.

Returns:

  • (::Array<::String>)

    A list of channel names specifying layout of the audio channels. This only affects the metadata embedded in the container headers, if supported by the specified format. The default is ["fl", "fr"].

    Supported channel names:

    • fl - Front left channel
    • fr - Front right channel
    • sl - Side left channel
    • sr - Side right channel
    • fc - Front center channel
    • lfe - Low frequency


1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
# File 'proto_docs/google/cloud/video/transcoder/v1/resources.rb', line 1299

class AudioStream
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
  # @!attribute [rw] atom_key
  #   @return [::String]
  #     Required. The `EditAtom.key` that references the atom with audio inputs
  #     in the `Job.edit_list`.
  # @!attribute [rw] input_key
  #   @return [::String]
  #     Required. The `Input.key` that identifies the input file.
  # @!attribute [rw] input_track
  #   @return [::Integer]
  #     Required. The zero-based index of the track in the input file.
  # @!attribute [rw] input_channel
  #   @return [::Integer]
  #     Required. The zero-based index of the channel in the input audio stream.
  # @!attribute [rw] output_channel
  #   @return [::Integer]
  #     Required. The zero-based index of the channel in the output audio stream.
  # @!attribute [rw] gain_db
  #   @return [::Float]
  #     Audio volume control in dB. Negative values decrease volume,
  #     positive values increase. The default is 0.
  class AudioMapping
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#codec::String

Returns The codec for this audio stream. The default is aac.

Supported audio codecs:

  • aac
  • aac-he
  • aac-he-v2
  • mp3
  • ac3
  • eac3.

Returns:

  • (::String)

    The codec for this audio stream. The default is aac.

    Supported audio codecs:

    • aac
    • aac-he
    • aac-he-v2
    • mp3
    • ac3
    • eac3


1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
# File 'proto_docs/google/cloud/video/transcoder/v1/resources.rb', line 1299

class AudioStream
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
  # @!attribute [rw] atom_key
  #   @return [::String]
  #     Required. The `EditAtom.key` that references the atom with audio inputs
  #     in the `Job.edit_list`.
  # @!attribute [rw] input_key
  #   @return [::String]
  #     Required. The `Input.key` that identifies the input file.
  # @!attribute [rw] input_track
  #   @return [::Integer]
  #     Required. The zero-based index of the track in the input file.
  # @!attribute [rw] input_channel
  #   @return [::Integer]
  #     Required. The zero-based index of the channel in the input audio stream.
  # @!attribute [rw] output_channel
  #   @return [::Integer]
  #     Required. The zero-based index of the channel in the output audio stream.
  # @!attribute [rw] gain_db
  #   @return [::Float]
  #     Audio volume control in dB. Negative values decrease volume,
  #     positive values increase. The default is 0.
  class AudioMapping
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#display_name::String

Returns The name for this particular audio stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.

Returns:

  • (::String)

    The name for this particular audio stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.



1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
# File 'proto_docs/google/cloud/video/transcoder/v1/resources.rb', line 1299

class AudioStream
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
  # @!attribute [rw] atom_key
  #   @return [::String]
  #     Required. The `EditAtom.key` that references the atom with audio inputs
  #     in the `Job.edit_list`.
  # @!attribute [rw] input_key
  #   @return [::String]
  #     Required. The `Input.key` that identifies the input file.
  # @!attribute [rw] input_track
  #   @return [::Integer]
  #     Required. The zero-based index of the track in the input file.
  # @!attribute [rw] input_channel
  #   @return [::Integer]
  #     Required. The zero-based index of the channel in the input audio stream.
  # @!attribute [rw] output_channel
  #   @return [::Integer]
  #     Required. The zero-based index of the channel in the output audio stream.
  # @!attribute [rw] gain_db
  #   @return [::Float]
  #     Audio volume control in dB. Negative values decrease volume,
  #     positive values increase. The default is 0.
  class AudioMapping
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#language_code::String

Returns The BCP-47 language code, such as en-US or sr-Latn. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not supported in MP4 files.

Returns:



1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
# File 'proto_docs/google/cloud/video/transcoder/v1/resources.rb', line 1299

class AudioStream
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
  # @!attribute [rw] atom_key
  #   @return [::String]
  #     Required. The `EditAtom.key` that references the atom with audio inputs
  #     in the `Job.edit_list`.
  # @!attribute [rw] input_key
  #   @return [::String]
  #     Required. The `Input.key` that identifies the input file.
  # @!attribute [rw] input_track
  #   @return [::Integer]
  #     Required. The zero-based index of the track in the input file.
  # @!attribute [rw] input_channel
  #   @return [::Integer]
  #     Required. The zero-based index of the channel in the input audio stream.
  # @!attribute [rw] output_channel
  #   @return [::Integer]
  #     Required. The zero-based index of the channel in the output audio stream.
  # @!attribute [rw] gain_db
  #   @return [::Float]
  #     Audio volume control in dB. Negative values decrease volume,
  #     positive values increase. The default is 0.
  class AudioMapping
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#mapping::Array<::Google::Cloud::Video::Transcoder::V1::AudioStream::AudioMapping>

Returns The mapping for the Job.edit_list atoms with audio EditAtom.inputs.

Returns:



1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
# File 'proto_docs/google/cloud/video/transcoder/v1/resources.rb', line 1299

class AudioStream
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
  # @!attribute [rw] atom_key
  #   @return [::String]
  #     Required. The `EditAtom.key` that references the atom with audio inputs
  #     in the `Job.edit_list`.
  # @!attribute [rw] input_key
  #   @return [::String]
  #     Required. The `Input.key` that identifies the input file.
  # @!attribute [rw] input_track
  #   @return [::Integer]
  #     Required. The zero-based index of the track in the input file.
  # @!attribute [rw] input_channel
  #   @return [::Integer]
  #     Required. The zero-based index of the channel in the input audio stream.
  # @!attribute [rw] output_channel
  #   @return [::Integer]
  #     Required. The zero-based index of the channel in the output audio stream.
  # @!attribute [rw] gain_db
  #   @return [::Float]
  #     Audio volume control in dB. Negative values decrease volume,
  #     positive values increase. The default is 0.
  class AudioMapping
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#sample_rate_hertz::Integer

Returns The audio sample rate in Hertz. The default is 48000 Hertz.

Returns:

  • (::Integer)

    The audio sample rate in Hertz. The default is 48000 Hertz.



1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
# File 'proto_docs/google/cloud/video/transcoder/v1/resources.rb', line 1299

class AudioStream
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
  # @!attribute [rw] atom_key
  #   @return [::String]
  #     Required. The `EditAtom.key` that references the atom with audio inputs
  #     in the `Job.edit_list`.
  # @!attribute [rw] input_key
  #   @return [::String]
  #     Required. The `Input.key` that identifies the input file.
  # @!attribute [rw] input_track
  #   @return [::Integer]
  #     Required. The zero-based index of the track in the input file.
  # @!attribute [rw] input_channel
  #   @return [::Integer]
  #     Required. The zero-based index of the channel in the input audio stream.
  # @!attribute [rw] output_channel
  #   @return [::Integer]
  #     Required. The zero-based index of the channel in the output audio stream.
  # @!attribute [rw] gain_db
  #   @return [::Float]
  #     Audio volume control in dB. Negative values decrease volume,
  #     positive values increase. The default is 0.
  class AudioMapping
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end