Class: Google::Cloud::Video::LiveStream::V1::VideoStream

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

Overview

Video stream resource.

Defined Under Namespace

Classes: H264CodecSettings

Instance Attribute Summary collapse

Instance Attribute Details

#h264::Google::Cloud::Video::LiveStream::V1::VideoStream::H264CodecSettings

Returns H264 codec settings.



271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
# File 'proto_docs/google/cloud/video/livestream/v1/outputs.rb', line 271

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

  # H264 codec settings.
  # @!attribute [rw] width_pixels
  #   @return [::Integer]
  #     Required. The width of the video in pixels. Must be an even integer.
  #     Valid range is [320, 1920].
  # @!attribute [rw] height_pixels
  #   @return [::Integer]
  #     Required. The height of the video in pixels. Must be an even integer.
  #     Valid range is [180, 1080].
  # @!attribute [rw] frame_rate
  #   @return [::Float]
  #     Required. The target video frame rate in frames per second (FPS). Must be
  #     less than or equal to 60. Will default to the input frame rate if larger
  #     than the input frame rate. The API will generate an output FPS that is
  #     divisible by the input FPS, and smaller or equal to the target FPS. See
  #     [Calculating frame
  #     rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for
  #     more information.
  # @!attribute [rw] bitrate_bps
  #   @return [::Integer]
  #     Required. The video bitrate in bits per second. Minimum value is 10,000.
  #
  #     - For SD resolution (< 720p), must be <= 3,000,000 (3 Mbps).
  #     - For HD resolution (<= 1080p), must be <= 15,000,000 (15 Mbps).
  # @!attribute [rw] allow_open_gop
  #   @return [::Boolean]
  #     Specifies whether an open Group of Pictures (GOP) structure should be
  #     allowed or not. The default is `false`.
  # @!attribute [rw] gop_frame_count
  #   @return [::Integer]
  #     Select the GOP size based on the specified frame count.
  #     If GOP frame count is set instead of GOP duration, GOP duration will be
  #     calculated by `gopFrameCount`/`frameRate`. The calculated GOP duration
  #     must satisfy the limitations on `gopDuration` as well.
  #     Valid range is [60, 600].
  # @!attribute [rw] gop_duration
  #   @return [::Google::Protobuf::Duration]
  #     Select the GOP size based on the specified duration. The default is
  #     `2s`. Note that `gopDuration` must be less than or equal to
  #     {::Google::Cloud::Video::LiveStream::V1::SegmentSettings#segment_duration segment_duration},
  #     and
  #     {::Google::Cloud::Video::LiveStream::V1::SegmentSettings#segment_duration segment_duration}
  #     must be divisible by `gopDuration`. Valid range is [2s, 20s].
  #
  #     All video streams in the same channel must have the same GOP size.
  # @!attribute [rw] vbv_size_bits
  #   @return [::Integer]
  #     Size of the Video Buffering Verifier (VBV) buffer in bits. Must be
  #     greater than zero. The default is equal to
  #     {::Google::Cloud::Video::LiveStream::V1::VideoStream::H264CodecSettings#bitrate_bps bitrate_bps}.
  # @!attribute [rw] vbv_fullness_bits
  #   @return [::Integer]
  #     Initial fullness of the Video Buffering Verifier (VBV) buffer in bits.
  #     Must be greater than zero. The default is equal to 90% of
  #     {::Google::Cloud::Video::LiveStream::V1::VideoStream::H264CodecSettings#vbv_size_bits vbv_size_bits}.
  # @!attribute [rw] entropy_coder
  #   @return [::String]
  #     The entropy coder to use. The default is `cabac`.
  #
  #     Supported entropy coders:
  #
  #     - `cavlc`
  #     - `cabac`
  # @!attribute [rw] b_pyramid
  #   @return [::Boolean]
  #     Allow B-pyramid for reference frame selection. This may not be supported
  #     on all decoders. The default is `false`.
  # @!attribute [rw] b_frame_count
  #   @return [::Integer]
  #     The number of consecutive B-frames. Must be greater than or equal to
  #     zero. Must be less than
  #     {::Google::Cloud::Video::LiveStream::V1::VideoStream::H264CodecSettings#gop_frame_count gop_frame_count}
  #     if set. The default is 0.
  # @!attribute [rw] aq_strength
  #   @return [::Float]
  #     Specify the intensity of the adaptive quantizer (AQ). Must be between 0
  #     and 1, where 0 disables the quantizer and 1 maximizes the quantizer. A
  #     higher value equals a lower bitrate but smoother image. The default is 0.
  # @!attribute [rw] profile
  #   @return [::String]
  #     Enforces the specified codec profile. The following profiles are
  #     supported:
  #
  #     *   `baseline`
  #     *   `main` (default)
  #     *   `high`
  #
  #     The available options are [FFmpeg-compatible Profile
  #     Options](https://trac.ffmpeg.org/wiki/Encode/H.264#Profile).
  #     Note that certain values for this field may cause the
  #     transcoder to override other fields you set in the
  #     {::Google::Cloud::Video::LiveStream::V1::VideoStream::H264CodecSettings H264CodecSettings}
  #     message.
  # @!attribute [rw] tune
  #   @return [::String]
  #     Enforces the specified codec tune. The available options are
  #     [FFmpeg-compatible Encode
  #     Options](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune)
  #     Note that certain values for this field may cause the transcoder to
  #     override other fields you set in the
  #     {::Google::Cloud::Video::LiveStream::V1::VideoStream::H264CodecSettings H264CodecSettings}
  #     message.
  class H264CodecSettings
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end