Class VideoStream.H265CodecSettings.Builder (1.5.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 1.79.0 (latest)
- 1.77.0
- 1.75.0
- 1.74.0
- 1.73.0
- 1.72.0
- 1.71.0
- 1.69.0
- 1.67.0
- 1.66.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.5
- 1.0.4
- 0.4.3
publicstaticfinalclass VideoStream.H265CodecSettings.BuilderextendsGeneratedMessageV3.Builder<VideoStream.H265CodecSettings.Builder>implementsVideoStream.H265CodecSettingsOrBuilderH265 codec settings.
Protobuf type google.cloud.video.transcoder.v1.VideoStream.H265CodecSettings
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > VideoStream.H265CodecSettings.BuilderImplements
VideoStream.H265CodecSettingsOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicVideoStream.H265CodecSettings.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)build()
publicVideoStream.H265CodecSettingsbuild()buildPartial()
publicVideoStream.H265CodecSettingsbuildPartial()clear()
publicVideoStream.H265CodecSettings.Builderclear()clearAllowOpenGop()
publicVideoStream.H265CodecSettings.BuilderclearAllowOpenGop() Specifies whether an open Group of Pictures (GOP) structure should be
allowed or not. The default is false.
bool allow_open_gop = 8;
This builder for chaining.
clearAqStrength()
publicVideoStream.H265CodecSettings.BuilderclearAqStrength()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.
double aq_strength = 16;
This builder for chaining.
clearBFrameCount()
publicVideoStream.H265CodecSettings.BuilderclearBFrameCount() The number of consecutive B-frames. Must be greater than or equal to
zero. Must be less than VideoStream.gop_frame_count if set. The default
is 0.
int32 b_frame_count = 15;
This builder for chaining.
clearBPyramid()
publicVideoStream.H265CodecSettings.BuilderclearBPyramid() Allow B-pyramid for reference frame selection. This may not be supported
on all decoders. The default is false.
bool b_pyramid = 14;
This builder for chaining.
clearBitrateBps()
publicVideoStream.H265CodecSettings.BuilderclearBitrateBps()Required. The video bitrate in bits per second. The minimum value is 1,000. The maximum value is 800,000,000.
int32 bitrate_bps = 4 [(.google.api.field_behavior) = REQUIRED];
This builder for chaining.
clearCrfLevel()
publicVideoStream.H265CodecSettings.BuilderclearCrfLevel()Target CRF level. Must be between 10 and 36, where 10 is the highest quality and 36 is the most efficient compression. The default is 21.
int32 crf_level = 7;
This builder for chaining.
clearEnableTwoPass()
publicVideoStream.H265CodecSettings.BuilderclearEnableTwoPass() Use two-pass encoding strategy to achieve better video quality.
VideoStream.rate_control_mode must be vbr. The default is false.
bool enable_two_pass = 11;
This builder for chaining.
clearField(Descriptors.FieldDescriptor field)
publicVideoStream.H265CodecSettings.BuilderclearField(Descriptors.FieldDescriptorfield)clearFrameRate()
publicVideoStream.H265CodecSettings.BuilderclearFrameRate()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.
double frame_rate = 3 [(.google.api.field_behavior) = REQUIRED];
This builder for chaining.
clearGopDuration()
publicVideoStream.H265CodecSettings.BuilderclearGopDuration() Select the GOP size based on the specified duration. The default is
3s. Note that gopDuration must be less than or equal to
segmentDuration, and
segmentDuration must be divisible by
gopDuration.
.google.protobuf.Duration gop_duration = 10;
clearGopFrameCount()
publicVideoStream.H265CodecSettings.BuilderclearGopFrameCount()Select the GOP size based on the specified frame count. Must be greater than zero.
int32 gop_frame_count = 9;
This builder for chaining.
clearGopMode()
publicVideoStream.H265CodecSettings.BuilderclearGopMode()clearHeightPixels()
publicVideoStream.H265CodecSettings.BuilderclearHeightPixels()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.
int32 height_pixels = 2;
This builder for chaining.
clearOneof(Descriptors.OneofDescriptor oneof)
publicVideoStream.H265CodecSettings.BuilderclearOneof(Descriptors.OneofDescriptoroneof)clearPixelFormat()
publicVideoStream.H265CodecSettings.BuilderclearPixelFormat() Pixel format to use. The default is yuv420p.
Supported pixel formats:
yuv420ppixel formatyuv422ppixel formatyuv444ppixel formatyuv420p1010-bit HDR pixel formatyuv422p1010-bit HDR pixel formatyuv444p1010-bit HDR pixel formatyuv420p1212-bit HDR pixel formatyuv422p1212-bit HDR pixel formatyuv444p1212-bit HDR pixel format
string pixel_format = 5;
This builder for chaining.
clearPreset()
publicVideoStream.H265CodecSettings.BuilderclearPreset() Enforces the specified codec preset. The default is veryfast. The
available options are
FFmpeg-compatible.
Note that certain values for this field may cause the
transcoder to override other fields you set in the H265CodecSettings
message.
string preset = 19;
This builder for chaining.
clearProfile()
publicVideoStream.H265CodecSettings.BuilderclearProfile()Enforces the specified codec profile. The following profiles are supported:
- 8-bit profiles
main(default)main-intramainstillpicture
- 10-bit profiles
main10(default)main10-intramain422-10main422-10-intramain444-10main444-10-intra
- 12-bit profiles
main12(default)main12-intramain422-12main422-12-intramain444-12main444-12-intraThe available options are FFmpeg-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in theH265CodecSettingsmessage.
string profile = 17;
This builder for chaining.
clearRateControlMode()
publicVideoStream.H265CodecSettings.BuilderclearRateControlMode() Specify the rate_control_mode. The default is vbr.
Supported rate control modes:
vbr- variable bitratecrf- constant rate factor
string rate_control_mode = 6;
This builder for chaining.
clearTune()
publicVideoStream.H265CodecSettings.BuilderclearTune() Enforces the specified codec tune. The available options are
FFmpeg-compatible.
Note that certain values for this field may cause the
transcoder to override other fields you set in the H265CodecSettings
message.
string tune = 18;
This builder for chaining.
clearVbvFullnessBits()
publicVideoStream.H265CodecSettings.BuilderclearVbvFullnessBits() Initial fullness of the Video Buffering Verifier (VBV) buffer in bits.
Must be greater than zero. The default is equal to 90% of
VideoStream.vbv_size_bits.
int32 vbv_fullness_bits = 13;
This builder for chaining.
clearVbvSizeBits()
publicVideoStream.H265CodecSettings.BuilderclearVbvSizeBits() Size of the Video Buffering Verifier (VBV) buffer in bits. Must be
greater than zero. The default is equal to VideoStream.bitrate_bps.
int32 vbv_size_bits = 12;
This builder for chaining.
clearWidthPixels()
publicVideoStream.H265CodecSettings.BuilderclearWidthPixels()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.
int32 width_pixels = 1;
This builder for chaining.
clone()
publicVideoStream.H265CodecSettings.Builderclone()getAllowOpenGop()
publicbooleangetAllowOpenGop() Specifies whether an open Group of Pictures (GOP) structure should be
allowed or not. The default is false.
bool allow_open_gop = 8;
The allowOpenGop.
getAqStrength()
publicdoublegetAqStrength()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.
double aq_strength = 16;
The aqStrength.
getBFrameCount()
publicintgetBFrameCount() The number of consecutive B-frames. Must be greater than or equal to
zero. Must be less than VideoStream.gop_frame_count if set. The default
is 0.
int32 b_frame_count = 15;
The bFrameCount.
getBPyramid()
publicbooleangetBPyramid() Allow B-pyramid for reference frame selection. This may not be supported
on all decoders. The default is false.
bool b_pyramid = 14;
The bPyramid.
getBitrateBps()
publicintgetBitrateBps()Required. The video bitrate in bits per second. The minimum value is 1,000. The maximum value is 800,000,000.
int32 bitrate_bps = 4 [(.google.api.field_behavior) = REQUIRED];
The bitrateBps.
getCrfLevel()
publicintgetCrfLevel()Target CRF level. Must be between 10 and 36, where 10 is the highest quality and 36 is the most efficient compression. The default is 21.
int32 crf_level = 7;
The crfLevel.
getDefaultInstanceForType()
publicVideoStream.H265CodecSettingsgetDefaultInstanceForType()getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()getEnableTwoPass()
publicbooleangetEnableTwoPass() Use two-pass encoding strategy to achieve better video quality.
VideoStream.rate_control_mode must be vbr. The default is false.
bool enable_two_pass = 11;
The enableTwoPass.
getFrameRate()
publicdoublegetFrameRate()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.
double frame_rate = 3 [(.google.api.field_behavior) = REQUIRED];
The frameRate.
getGopDuration()
publicDurationgetGopDuration() Select the GOP size based on the specified duration. The default is
3s. Note that gopDuration must be less than or equal to
segmentDuration, and
segmentDuration must be divisible by
gopDuration.
.google.protobuf.Duration gop_duration = 10;
The gopDuration.
getGopDurationBuilder()
publicDuration.BuildergetGopDurationBuilder() Select the GOP size based on the specified duration. The default is
3s. Note that gopDuration must be less than or equal to
segmentDuration, and
segmentDuration must be divisible by
gopDuration.
.google.protobuf.Duration gop_duration = 10;
getGopDurationOrBuilder()
publicDurationOrBuildergetGopDurationOrBuilder() Select the GOP size based on the specified duration. The default is
3s. Note that gopDuration must be less than or equal to
segmentDuration, and
segmentDuration must be divisible by
gopDuration.
.google.protobuf.Duration gop_duration = 10;
getGopFrameCount()
publicintgetGopFrameCount()Select the GOP size based on the specified frame count. Must be greater than zero.
int32 gop_frame_count = 9;
The gopFrameCount.
getGopModeCase()
publicVideoStream.H265CodecSettings.GopModeCasegetGopModeCase()getHeightPixels()
publicintgetHeightPixels()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.
int32 height_pixels = 2;
The heightPixels.
getPixelFormat()
publicStringgetPixelFormat() Pixel format to use. The default is yuv420p.
Supported pixel formats:
yuv420ppixel formatyuv422ppixel formatyuv444ppixel formatyuv420p1010-bit HDR pixel formatyuv422p1010-bit HDR pixel formatyuv444p1010-bit HDR pixel formatyuv420p1212-bit HDR pixel formatyuv422p1212-bit HDR pixel formatyuv444p1212-bit HDR pixel format
string pixel_format = 5;
The pixelFormat.
getPixelFormatBytes()
publicByteStringgetPixelFormatBytes() Pixel format to use. The default is yuv420p.
Supported pixel formats:
yuv420ppixel formatyuv422ppixel formatyuv444ppixel formatyuv420p1010-bit HDR pixel formatyuv422p1010-bit HDR pixel formatyuv444p1010-bit HDR pixel formatyuv420p1212-bit HDR pixel formatyuv422p1212-bit HDR pixel formatyuv444p1212-bit HDR pixel format
string pixel_format = 5;
The bytes for pixelFormat.
getPreset()
publicStringgetPreset() Enforces the specified codec preset. The default is veryfast. The
available options are
FFmpeg-compatible.
Note that certain values for this field may cause the
transcoder to override other fields you set in the H265CodecSettings
message.
string preset = 19;
The preset.
getPresetBytes()
publicByteStringgetPresetBytes() Enforces the specified codec preset. The default is veryfast. The
available options are
FFmpeg-compatible.
Note that certain values for this field may cause the
transcoder to override other fields you set in the H265CodecSettings
message.
string preset = 19;
The bytes for preset.
getProfile()
publicStringgetProfile()Enforces the specified codec profile. The following profiles are supported:
- 8-bit profiles
main(default)main-intramainstillpicture
- 10-bit profiles
main10(default)main10-intramain422-10main422-10-intramain444-10main444-10-intra
- 12-bit profiles
main12(default)main12-intramain422-12main422-12-intramain444-12main444-12-intraThe available options are FFmpeg-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in theH265CodecSettingsmessage.
string profile = 17;
The profile.
getProfileBytes()
publicByteStringgetProfileBytes()Enforces the specified codec profile. The following profiles are supported:
- 8-bit profiles
main(default)main-intramainstillpicture
- 10-bit profiles
main10(default)main10-intramain422-10main422-10-intramain444-10main444-10-intra
- 12-bit profiles
main12(default)main12-intramain422-12main422-12-intramain444-12main444-12-intraThe available options are FFmpeg-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in theH265CodecSettingsmessage.
string profile = 17;
The bytes for profile.
getRateControlMode()
publicStringgetRateControlMode() Specify the rate_control_mode. The default is vbr.
Supported rate control modes:
vbr- variable bitratecrf- constant rate factor
string rate_control_mode = 6;
The rateControlMode.
getRateControlModeBytes()
publicByteStringgetRateControlModeBytes() Specify the rate_control_mode. The default is vbr.
Supported rate control modes:
vbr- variable bitratecrf- constant rate factor
string rate_control_mode = 6;
The bytes for rateControlMode.
getTune()
publicStringgetTune() Enforces the specified codec tune. The available options are
FFmpeg-compatible.
Note that certain values for this field may cause the
transcoder to override other fields you set in the H265CodecSettings
message.
string tune = 18;
The tune.
getTuneBytes()
publicByteStringgetTuneBytes() Enforces the specified codec tune. The available options are
FFmpeg-compatible.
Note that certain values for this field may cause the
transcoder to override other fields you set in the H265CodecSettings
message.
string tune = 18;
The bytes for tune.
getVbvFullnessBits()
publicintgetVbvFullnessBits() Initial fullness of the Video Buffering Verifier (VBV) buffer in bits.
Must be greater than zero. The default is equal to 90% of
VideoStream.vbv_size_bits.
int32 vbv_fullness_bits = 13;
The vbvFullnessBits.
getVbvSizeBits()
publicintgetVbvSizeBits() Size of the Video Buffering Verifier (VBV) buffer in bits. Must be
greater than zero. The default is equal to VideoStream.bitrate_bps.
int32 vbv_size_bits = 12;
The vbvSizeBits.
getWidthPixels()
publicintgetWidthPixels()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.
int32 width_pixels = 1;
The widthPixels.
hasGopDuration()
publicbooleanhasGopDuration() Select the GOP size based on the specified duration. The default is
3s. Note that gopDuration must be less than or equal to
segmentDuration, and
segmentDuration must be divisible by
gopDuration.
.google.protobuf.Duration gop_duration = 10;
Whether the gopDuration field is set.
hasGopFrameCount()
publicbooleanhasGopFrameCount()Select the GOP size based on the specified frame count. Must be greater than zero.
int32 gop_frame_count = 9;
Whether the gopFrameCount field is set.
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()isInitialized()
publicfinalbooleanisInitialized()mergeFrom(VideoStream.H265CodecSettings other)
publicVideoStream.H265CodecSettings.BuildermergeFrom(VideoStream.H265CodecSettingsother)mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicVideoStream.H265CodecSettings.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)mergeFrom(Message other)
publicVideoStream.H265CodecSettings.BuildermergeFrom(Messageother)mergeGopDuration(Duration value)
publicVideoStream.H265CodecSettings.BuildermergeGopDuration(Durationvalue) Select the GOP size based on the specified duration. The default is
3s. Note that gopDuration must be less than or equal to
segmentDuration, and
segmentDuration must be divisible by
gopDuration.
.google.protobuf.Duration gop_duration = 10;
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalVideoStream.H265CodecSettings.BuildermergeUnknownFields(UnknownFieldSetunknownFields)setAllowOpenGop(boolean value)
publicVideoStream.H265CodecSettings.BuildersetAllowOpenGop(booleanvalue) Specifies whether an open Group of Pictures (GOP) structure should be
allowed or not. The default is false.
bool allow_open_gop = 8;
This builder for chaining.
setAqStrength(double value)
publicVideoStream.H265CodecSettings.BuildersetAqStrength(doublevalue)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.
double aq_strength = 16;
This builder for chaining.
setBFrameCount(int value)
publicVideoStream.H265CodecSettings.BuildersetBFrameCount(intvalue) The number of consecutive B-frames. Must be greater than or equal to
zero. Must be less than VideoStream.gop_frame_count if set. The default
is 0.
int32 b_frame_count = 15;
This builder for chaining.
setBPyramid(boolean value)
publicVideoStream.H265CodecSettings.BuildersetBPyramid(booleanvalue) Allow B-pyramid for reference frame selection. This may not be supported
on all decoders. The default is false.
bool b_pyramid = 14;
This builder for chaining.
setBitrateBps(int value)
publicVideoStream.H265CodecSettings.BuildersetBitrateBps(intvalue)Required. The video bitrate in bits per second. The minimum value is 1,000. The maximum value is 800,000,000.
int32 bitrate_bps = 4 [(.google.api.field_behavior) = REQUIRED];
This builder for chaining.
setCrfLevel(int value)
publicVideoStream.H265CodecSettings.BuildersetCrfLevel(intvalue)Target CRF level. Must be between 10 and 36, where 10 is the highest quality and 36 is the most efficient compression. The default is 21.
int32 crf_level = 7;
This builder for chaining.
setEnableTwoPass(boolean value)
publicVideoStream.H265CodecSettings.BuildersetEnableTwoPass(booleanvalue) Use two-pass encoding strategy to achieve better video quality.
VideoStream.rate_control_mode must be vbr. The default is false.
bool enable_two_pass = 11;
This builder for chaining.
setField(Descriptors.FieldDescriptor field, Object value)
publicVideoStream.H265CodecSettings.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)setFrameRate(double value)
publicVideoStream.H265CodecSettings.BuildersetFrameRate(doublevalue)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.
double frame_rate = 3 [(.google.api.field_behavior) = REQUIRED];
This builder for chaining.
setGopDuration(Duration value)
publicVideoStream.H265CodecSettings.BuildersetGopDuration(Durationvalue) Select the GOP size based on the specified duration. The default is
3s. Note that gopDuration must be less than or equal to
segmentDuration, and
segmentDuration must be divisible by
gopDuration.
.google.protobuf.Duration gop_duration = 10;
setGopDuration(Duration.Builder builderForValue)
publicVideoStream.H265CodecSettings.BuildersetGopDuration(Duration.BuilderbuilderForValue) Select the GOP size based on the specified duration. The default is
3s. Note that gopDuration must be less than or equal to
segmentDuration, and
segmentDuration must be divisible by
gopDuration.
.google.protobuf.Duration gop_duration = 10;
setGopFrameCount(int value)
publicVideoStream.H265CodecSettings.BuildersetGopFrameCount(intvalue)Select the GOP size based on the specified frame count. Must be greater than zero.
int32 gop_frame_count = 9;
This builder for chaining.
setHeightPixels(int value)
publicVideoStream.H265CodecSettings.BuildersetHeightPixels(intvalue)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.
int32 height_pixels = 2;
This builder for chaining.
setPixelFormat(String value)
publicVideoStream.H265CodecSettings.BuildersetPixelFormat(Stringvalue) Pixel format to use. The default is yuv420p.
Supported pixel formats:
yuv420ppixel formatyuv422ppixel formatyuv444ppixel formatyuv420p1010-bit HDR pixel formatyuv422p1010-bit HDR pixel formatyuv444p1010-bit HDR pixel formatyuv420p1212-bit HDR pixel formatyuv422p1212-bit HDR pixel formatyuv444p1212-bit HDR pixel format
string pixel_format = 5;
This builder for chaining.
setPixelFormatBytes(ByteString value)
publicVideoStream.H265CodecSettings.BuildersetPixelFormatBytes(ByteStringvalue) Pixel format to use. The default is yuv420p.
Supported pixel formats:
yuv420ppixel formatyuv422ppixel formatyuv444ppixel formatyuv420p1010-bit HDR pixel formatyuv422p1010-bit HDR pixel formatyuv444p1010-bit HDR pixel formatyuv420p1212-bit HDR pixel formatyuv422p1212-bit HDR pixel formatyuv444p1212-bit HDR pixel format
string pixel_format = 5;
This builder for chaining.
setPreset(String value)
publicVideoStream.H265CodecSettings.BuildersetPreset(Stringvalue) Enforces the specified codec preset. The default is veryfast. The
available options are
FFmpeg-compatible.
Note that certain values for this field may cause the
transcoder to override other fields you set in the H265CodecSettings
message.
string preset = 19;
This builder for chaining.
setPresetBytes(ByteString value)
publicVideoStream.H265CodecSettings.BuildersetPresetBytes(ByteStringvalue) Enforces the specified codec preset. The default is veryfast. The
available options are
FFmpeg-compatible.
Note that certain values for this field may cause the
transcoder to override other fields you set in the H265CodecSettings
message.
string preset = 19;
This builder for chaining.
setProfile(String value)
publicVideoStream.H265CodecSettings.BuildersetProfile(Stringvalue)Enforces the specified codec profile. The following profiles are supported:
- 8-bit profiles
main(default)main-intramainstillpicture
- 10-bit profiles
main10(default)main10-intramain422-10main422-10-intramain444-10main444-10-intra
- 12-bit profiles
main12(default)main12-intramain422-12main422-12-intramain444-12main444-12-intraThe available options are FFmpeg-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in theH265CodecSettingsmessage.
string profile = 17;
This builder for chaining.
setProfileBytes(ByteString value)
publicVideoStream.H265CodecSettings.BuildersetProfileBytes(ByteStringvalue)Enforces the specified codec profile. The following profiles are supported:
- 8-bit profiles
main(default)main-intramainstillpicture
- 10-bit profiles
main10(default)main10-intramain422-10main422-10-intramain444-10main444-10-intra
- 12-bit profiles
main12(default)main12-intramain422-12main422-12-intramain444-12main444-12-intraThe available options are FFmpeg-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in theH265CodecSettingsmessage.
string profile = 17;
This builder for chaining.
setRateControlMode(String value)
publicVideoStream.H265CodecSettings.BuildersetRateControlMode(Stringvalue) Specify the rate_control_mode. The default is vbr.
Supported rate control modes:
vbr- variable bitratecrf- constant rate factor
string rate_control_mode = 6;
This builder for chaining.
setRateControlModeBytes(ByteString value)
publicVideoStream.H265CodecSettings.BuildersetRateControlModeBytes(ByteStringvalue) Specify the rate_control_mode. The default is vbr.
Supported rate control modes:
vbr- variable bitratecrf- constant rate factor
string rate_control_mode = 6;
This builder for chaining.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicVideoStream.H265CodecSettings.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)setTune(String value)
publicVideoStream.H265CodecSettings.BuildersetTune(Stringvalue) Enforces the specified codec tune. The available options are
FFmpeg-compatible.
Note that certain values for this field may cause the
transcoder to override other fields you set in the H265CodecSettings
message.
string tune = 18;
This builder for chaining.
setTuneBytes(ByteString value)
publicVideoStream.H265CodecSettings.BuildersetTuneBytes(ByteStringvalue) Enforces the specified codec tune. The available options are
FFmpeg-compatible.
Note that certain values for this field may cause the
transcoder to override other fields you set in the H265CodecSettings
message.
string tune = 18;
This builder for chaining.
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalVideoStream.H265CodecSettings.BuildersetUnknownFields(UnknownFieldSetunknownFields)setVbvFullnessBits(int value)
publicVideoStream.H265CodecSettings.BuildersetVbvFullnessBits(intvalue) Initial fullness of the Video Buffering Verifier (VBV) buffer in bits.
Must be greater than zero. The default is equal to 90% of
VideoStream.vbv_size_bits.
int32 vbv_fullness_bits = 13;
This builder for chaining.
setVbvSizeBits(int value)
publicVideoStream.H265CodecSettings.BuildersetVbvSizeBits(intvalue) Size of the Video Buffering Verifier (VBV) buffer in bits. Must be
greater than zero. The default is equal to VideoStream.bitrate_bps.
int32 vbv_size_bits = 12;
This builder for chaining.
setWidthPixels(int value)
publicVideoStream.H265CodecSettings.BuildersetWidthPixels(intvalue)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.
int32 width_pixels = 1;
This builder for chaining.