Class: Google::Cloud::Video::Transcoder::V1beta1::AudioStream

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

Overview

Audio stream resource.

Defined Under Namespace

Classes: AudioAtom

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.



839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
# File 'proto_docs/google/cloud/video/transcoder/v1beta1/resources.rb', line 839

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] key
  #   @return [::String]
  #     Required. The `EditAtom.key` that references the atom with audio inputs in the
  #     `Job.edit_list`.
  # @!attribute [rw] channels
  #   @return [::Array<::Google::Cloud::Video::Transcoder::V1beta1::AudioStream::AudioAtom::AudioChannel>]
  #     List of `Channel`s for this audio stream.
  #     for in-depth explanation.
  class AudioAtom
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The audio channel.
    # @!attribute [rw] inputs
    #   @return [::Array<::Google::Cloud::Video::Transcoder::V1beta1::AudioStream::AudioAtom::AudioChannel::AudioChannelInput>]
    #     List of `Job.inputs` for this audio channel.
    class AudioChannel
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods

      # Identifies which input file, track, and channel should be used.
      # @!attribute [rw] key
      #   @return [::String]
      #     Required. The `Input.key` that identifies the input file.
      # @!attribute [rw] track
      #   @return [::Integer]
      #     Required. The zero-based index of the track in the input file.
      # @!attribute [rw] channel
      #   @return [::Integer]
      #     Required. The zero-based index of the channel in the input file.
      # @!attribute [rw] gain_db
      #   @return [::Float]
      #     Audio volume control in dB. Negative values decrease volume,
      #     positive values increase. The default is 0.
      class AudioChannelInput
        include ::Google::Protobuf::MessageExts
        extend ::Google::Protobuf::MessageExts::ClassMethods
      end
    end
  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.



839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
# File 'proto_docs/google/cloud/video/transcoder/v1beta1/resources.rb', line 839

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] key
  #   @return [::String]
  #     Required. The `EditAtom.key` that references the atom with audio inputs in the
  #     `Job.edit_list`.
  # @!attribute [rw] channels
  #   @return [::Array<::Google::Cloud::Video::Transcoder::V1beta1::AudioStream::AudioAtom::AudioChannel>]
  #     List of `Channel`s for this audio stream.
  #     for in-depth explanation.
  class AudioAtom
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The audio channel.
    # @!attribute [rw] inputs
    #   @return [::Array<::Google::Cloud::Video::Transcoder::V1beta1::AudioStream::AudioAtom::AudioChannel::AudioChannelInput>]
    #     List of `Job.inputs` for this audio channel.
    class AudioChannel
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods

      # Identifies which input file, track, and channel should be used.
      # @!attribute [rw] key
      #   @return [::String]
      #     Required. The `Input.key` that identifies the input file.
      # @!attribute [rw] track
      #   @return [::Integer]
      #     Required. The zero-based index of the track in the input file.
      # @!attribute [rw] channel
      #   @return [::Integer]
      #     Required. The zero-based index of the channel in the input file.
      # @!attribute [rw] gain_db
      #   @return [::Float]
      #     Audio volume control in dB. Negative values decrease volume,
      #     positive values increase. The default is 0.
      class AudioChannelInput
        include ::Google::Protobuf::MessageExts
        extend ::Google::Protobuf::MessageExts::ClassMethods
      end
    end
  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


839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
# File 'proto_docs/google/cloud/video/transcoder/v1beta1/resources.rb', line 839

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] key
  #   @return [::String]
  #     Required. The `EditAtom.key` that references the atom with audio inputs in the
  #     `Job.edit_list`.
  # @!attribute [rw] channels
  #   @return [::Array<::Google::Cloud::Video::Transcoder::V1beta1::AudioStream::AudioAtom::AudioChannel>]
  #     List of `Channel`s for this audio stream.
  #     for in-depth explanation.
  class AudioAtom
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The audio channel.
    # @!attribute [rw] inputs
    #   @return [::Array<::Google::Cloud::Video::Transcoder::V1beta1::AudioStream::AudioAtom::AudioChannel::AudioChannelInput>]
    #     List of `Job.inputs` for this audio channel.
    class AudioChannel
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods

      # Identifies which input file, track, and channel should be used.
      # @!attribute [rw] key
      #   @return [::String]
      #     Required. The `Input.key` that identifies the input file.
      # @!attribute [rw] track
      #   @return [::Integer]
      #     Required. The zero-based index of the track in the input file.
      # @!attribute [rw] channel
      #   @return [::Integer]
      #     Required. The zero-based index of the channel in the input file.
      # @!attribute [rw] gain_db
      #   @return [::Float]
      #     Audio volume control in dB. Negative values decrease volume,
      #     positive values increase. The default is 0.
      class AudioChannelInput
        include ::Google::Protobuf::MessageExts
        extend ::Google::Protobuf::MessageExts::ClassMethods
      end
    end
  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'


839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
# File 'proto_docs/google/cloud/video/transcoder/v1beta1/resources.rb', line 839

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] key
  #   @return [::String]
  #     Required. The `EditAtom.key` that references the atom with audio inputs in the
  #     `Job.edit_list`.
  # @!attribute [rw] channels
  #   @return [::Array<::Google::Cloud::Video::Transcoder::V1beta1::AudioStream::AudioAtom::AudioChannel>]
  #     List of `Channel`s for this audio stream.
  #     for in-depth explanation.
  class AudioAtom
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The audio channel.
    # @!attribute [rw] inputs
    #   @return [::Array<::Google::Cloud::Video::Transcoder::V1beta1::AudioStream::AudioAtom::AudioChannel::AudioChannelInput>]
    #     List of `Job.inputs` for this audio channel.
    class AudioChannel
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods

      # Identifies which input file, track, and channel should be used.
      # @!attribute [rw] key
      #   @return [::String]
      #     Required. The `Input.key` that identifies the input file.
      # @!attribute [rw] track
      #   @return [::Integer]
      #     Required. The zero-based index of the track in the input file.
      # @!attribute [rw] channel
      #   @return [::Integer]
      #     Required. The zero-based index of the channel in the input file.
      # @!attribute [rw] gain_db
      #   @return [::Float]
      #     Audio volume control in dB. Negative values decrease volume,
      #     positive values increase. The default is 0.
      class AudioChannelInput
        include ::Google::Protobuf::MessageExts
        extend ::Google::Protobuf::MessageExts::ClassMethods
      end
    end
  end
end

#mapping::Array<::Google::Cloud::Video::Transcoder::V1beta1::AudioStream::AudioAtom>

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

Returns:



839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
# File 'proto_docs/google/cloud/video/transcoder/v1beta1/resources.rb', line 839

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] key
  #   @return [::String]
  #     Required. The `EditAtom.key` that references the atom with audio inputs in the
  #     `Job.edit_list`.
  # @!attribute [rw] channels
  #   @return [::Array<::Google::Cloud::Video::Transcoder::V1beta1::AudioStream::AudioAtom::AudioChannel>]
  #     List of `Channel`s for this audio stream.
  #     for in-depth explanation.
  class AudioAtom
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The audio channel.
    # @!attribute [rw] inputs
    #   @return [::Array<::Google::Cloud::Video::Transcoder::V1beta1::AudioStream::AudioAtom::AudioChannel::AudioChannelInput>]
    #     List of `Job.inputs` for this audio channel.
    class AudioChannel
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods

      # Identifies which input file, track, and channel should be used.
      # @!attribute [rw] key
      #   @return [::String]
      #     Required. The `Input.key` that identifies the input file.
      # @!attribute [rw] track
      #   @return [::Integer]
      #     Required. The zero-based index of the track in the input file.
      # @!attribute [rw] channel
      #   @return [::Integer]
      #     Required. The zero-based index of the channel in the input file.
      # @!attribute [rw] gain_db
      #   @return [::Float]
      #     Audio volume control in dB. Negative values decrease volume,
      #     positive values increase. The default is 0.
      class AudioChannelInput
        include ::Google::Protobuf::MessageExts
        extend ::Google::Protobuf::MessageExts::ClassMethods
      end
    end
  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.



839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
# File 'proto_docs/google/cloud/video/transcoder/v1beta1/resources.rb', line 839

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] key
  #   @return [::String]
  #     Required. The `EditAtom.key` that references the atom with audio inputs in the
  #     `Job.edit_list`.
  # @!attribute [rw] channels
  #   @return [::Array<::Google::Cloud::Video::Transcoder::V1beta1::AudioStream::AudioAtom::AudioChannel>]
  #     List of `Channel`s for this audio stream.
  #     for in-depth explanation.
  class AudioAtom
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The audio channel.
    # @!attribute [rw] inputs
    #   @return [::Array<::Google::Cloud::Video::Transcoder::V1beta1::AudioStream::AudioAtom::AudioChannel::AudioChannelInput>]
    #     List of `Job.inputs` for this audio channel.
    class AudioChannel
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods

      # Identifies which input file, track, and channel should be used.
      # @!attribute [rw] key
      #   @return [::String]
      #     Required. The `Input.key` that identifies the input file.
      # @!attribute [rw] track
      #   @return [::Integer]
      #     Required. The zero-based index of the track in the input file.
      # @!attribute [rw] channel
      #   @return [::Integer]
      #     Required. The zero-based index of the channel in the input file.
      # @!attribute [rw] gain_db
      #   @return [::Float]
      #     Audio volume control in dB. Negative values decrease volume,
      #     positive values increase. The default is 0.
      class AudioChannelInput
        include ::Google::Protobuf::MessageExts
        extend ::Google::Protobuf::MessageExts::ClassMethods
      end
    end
  end
end