public sealed class VideoStream.Types.H265CodecSettings : IMessage<VideoStream.Types.H265CodecSettings>, IEquatable<VideoStream.Types.H265CodecSettings>, IDeepCloneable<VideoStream.Types.H265CodecSettings>, IBufferMessage, IMessage
Reference documentation and code samples for the Live Stream v1 API class VideoStream.Types.H265CodecSettings.
H265 codec settings.
Implements
IMessageVideoStreamTypesH265CodecSettings, IEquatableVideoStreamTypesH265CodecSettings, IDeepCloneableVideoStreamTypesH265CodecSettings, IBufferMessage, IMessageNamespace
Google.Cloud.Video.LiveStream.V1Assembly
Google.Cloud.Video.LiveStream.V1.dll
Constructors
H265CodecSettings()
public H265CodecSettings()
H265CodecSettings(H265CodecSettings)
public H265CodecSettings(VideoStream.Types.H265CodecSettings other)
Parameter | |
---|---|
Name | Description |
other |
VideoStreamTypesH265CodecSettings |
Properties
AqStrength
public double AqStrength { get; set; }
Optional. 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.
Property Value | |
---|---|
Type | Description |
double |
BFrameCount
public int BFrameCount { get; set; }
Optional. The number of consecutive B-frames. Must be greater than or equal to zero. Must be less than [gop_frame_count][google.cloud.video.livestream.v1.VideoStream.H265CodecSettings.gop_frame_count] if set. The default is 0.
Property Value | |
---|---|
Type | Description |
int |
BPyramid
public bool BPyramid { get; set; }
Optional. Allow B-pyramid for reference frame selection. This may not be
supported on all decoders. The default is false
.
Property Value | |
---|---|
Type | Description |
bool |
BitrateBps
public int BitrateBps { get; set; }
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).
- For UHD resolution (<= 2160p), must be <= 25,000,000 (25 Mbps).
Property Value | |
---|---|
Type | Description |
int |
FrameRate
public double FrameRate { get; set; }
Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120. 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.
Property Value | |
---|---|
Type | Description |
double |
GopDuration
public Duration GopDuration { get; set; }
Optional. 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][google.cloud.video.livestream.v1.SegmentSettings.segment_duration],
and
[segment_duration][google.cloud.video.livestream.v1.SegmentSettings.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.
Property Value | |
---|---|
Type | Description |
Duration |
GopFrameCount
public int GopFrameCount { get; set; }
Optional. 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].
Property Value | |
---|---|
Type | Description |
int |
GopModeCase
public VideoStream.Types.H265CodecSettings.GopModeOneofCase GopModeCase { get; }
Property Value | |
---|---|
Type | Description |
VideoStreamTypesH265CodecSettingsGopModeOneofCase |
HasGopFrameCount
public bool HasGopFrameCount { get; }
Gets whether the "gop_frame_count" field is set
Property Value | |
---|---|
Type | Description |
bool |
HeightPixels
public int HeightPixels { get; set; }
Optional. The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used. Valid range is [180, 2160].
Property Value | |
---|---|
Type | Description |
int |
VbvFullnessBits
public int VbvFullnessBits { get; set; }
Optional. 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][google.cloud.video.livestream.v1.VideoStream.H265CodecSettings.vbv_size_bits].
Property Value | |
---|---|
Type | Description |
int |
VbvSizeBits
public int VbvSizeBits { get; set; }
Optional. Size of the Video Buffering Verifier (VBV) buffer in bits. Must be greater than zero. The default is equal to [bitrate_bps][google.cloud.video.livestream.v1.VideoStream.H265CodecSettings.bitrate_bps].
Property Value | |
---|---|
Type | Description |
int |
WidthPixels
public int WidthPixels { get; set; }
Optional. The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used. Valid range is [320, 4096].
Property Value | |
---|---|
Type | Description |
int |