Class: Google::Cloud::Video::LiveStream::V1::VideoStream::H264CodecSettings
- Inherits:
-
Object
- Object
- Google::Cloud::Video::LiveStream::V1::VideoStream::H264CodecSettings
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/video/livestream/v1/outputs.rb
Overview
H264 codec settings.
Instance Attribute Summary collapse
-
#allow_open_gop ⇒ ::Boolean
Specifies whether an open Group of Pictures (GOP) structure should be allowed or not.
-
#aq_strength ⇒ ::Float
Specify the intensity of the adaptive quantizer (AQ).
-
#b_frame_count ⇒ ::Integer
The number of consecutive B-frames.
-
#b_pyramid ⇒ ::Boolean
Allow B-pyramid for reference frame selection.
-
#bitrate_bps ⇒ ::Integer
Required.
-
#entropy_coder ⇒ ::String
The entropy coder to use.
-
#frame_rate ⇒ ::Float
Required.
-
#gop_duration ⇒ ::Google::Protobuf::Duration
Select the GOP size based on the specified duration.
-
#gop_frame_count ⇒ ::Integer
Select the GOP size based on the specified frame count.
-
#height_pixels ⇒ ::Integer
Required.
-
#profile ⇒ ::String
Enforces the specified codec profile.
-
#tune ⇒ ::String
Enforces the specified codec tune.
-
#vbv_fullness_bits ⇒ ::Integer
Initial fullness of the Video Buffering Verifier (VBV) buffer in bits.
-
#vbv_size_bits ⇒ ::Integer
Size of the Video Buffering Verifier (VBV) buffer in bits.
-
#width_pixels ⇒ ::Integer
Required.
Instance Attribute Details
#allow_open_gop ⇒ ::Boolean
Returns Specifies whether an open Group of Pictures (GOP) structure should be
allowed or not. The default is false
.
377 378 379 380 |
# File 'proto_docs/google/cloud/video/livestream/v1/outputs.rb', line 377 class H264CodecSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#aq_strength ⇒ ::Float
Returns 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.
377 378 379 380 |
# File 'proto_docs/google/cloud/video/livestream/v1/outputs.rb', line 377 class H264CodecSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#b_frame_count ⇒ ::Integer
Returns The number of consecutive B-frames. Must be greater than or equal to zero. Must be less than gop_frame_count if set. The default is 0.
377 378 379 380 |
# File 'proto_docs/google/cloud/video/livestream/v1/outputs.rb', line 377 class H264CodecSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#b_pyramid ⇒ ::Boolean
Returns Allow B-pyramid for reference frame selection. This may not be supported
on all decoders. The default is false
.
377 378 379 380 |
# File 'proto_docs/google/cloud/video/livestream/v1/outputs.rb', line 377 class H264CodecSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#bitrate_bps ⇒ ::Integer
Returns 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).
377 378 379 380 |
# File 'proto_docs/google/cloud/video/livestream/v1/outputs.rb', line 377 class H264CodecSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#entropy_coder ⇒ ::String
Returns The entropy coder to use. The default is cabac
.
Supported entropy coders:
cavlc
cabac
.
377 378 379 380 |
# File 'proto_docs/google/cloud/video/livestream/v1/outputs.rb', line 377 class H264CodecSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#frame_rate ⇒ ::Float
Returns 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 for more information.
377 378 379 380 |
# File 'proto_docs/google/cloud/video/livestream/v1/outputs.rb', line 377 class H264CodecSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#gop_duration ⇒ ::Google::Protobuf::Duration
Returns Select the GOP size based on the specified duration. The default is
2s
. Note that gopDuration
must be less than or equal to
segment_duration,
and
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.
377 378 379 380 |
# File 'proto_docs/google/cloud/video/livestream/v1/outputs.rb', line 377 class H264CodecSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#gop_frame_count ⇒ ::Integer
Returns 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].
377 378 379 380 |
# File 'proto_docs/google/cloud/video/livestream/v1/outputs.rb', line 377 class H264CodecSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#height_pixels ⇒ ::Integer
Returns Required. The height of the video in pixels. Must be an even integer. Valid range is [180, 1080].
377 378 379 380 |
# File 'proto_docs/google/cloud/video/livestream/v1/outputs.rb', line 377 class H264CodecSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#profile ⇒ ::String
Returns Enforces the specified codec profile. The following profiles are supported:
-
baseline
-
main
(default) -
high
The available options are FFmpeg-compatible Profile Options. Note that certain values for this field may cause the transcoder to override other fields you set in the H264CodecSettings message.
377 378 379 380 |
# File 'proto_docs/google/cloud/video/livestream/v1/outputs.rb', line 377 class H264CodecSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#tune ⇒ ::String
Returns Enforces the specified codec tune. The available options are FFmpeg-compatible Encode Options Note that certain values for this field may cause the transcoder to override other fields you set in the H264CodecSettings message.
377 378 379 380 |
# File 'proto_docs/google/cloud/video/livestream/v1/outputs.rb', line 377 class H264CodecSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#vbv_fullness_bits ⇒ ::Integer
Returns Initial fullness of the Video Buffering Verifier (VBV) buffer in bits. Must be greater than zero. The default is equal to 90% of vbv_size_bits.
377 378 379 380 |
# File 'proto_docs/google/cloud/video/livestream/v1/outputs.rb', line 377 class H264CodecSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#vbv_size_bits ⇒ ::Integer
Returns Size of the Video Buffering Verifier (VBV) buffer in bits. Must be greater than zero. The default is equal to bitrate_bps.
377 378 379 380 |
# File 'proto_docs/google/cloud/video/livestream/v1/outputs.rb', line 377 class H264CodecSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#width_pixels ⇒ ::Integer
Returns Required. The width of the video in pixels. Must be an even integer. Valid range is [320, 1920].
377 378 379 380 |
# File 'proto_docs/google/cloud/video/livestream/v1/outputs.rb', line 377 class H264CodecSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |