Class VideoStream.H265CodecSettings.Builder (1.79.0)

publicstaticfinalclass VideoStream.H265CodecSettings.BuilderextendsGeneratedMessageV3.Builder<VideoStream.H265CodecSettings.Builder>implementsVideoStream.H265CodecSettingsOrBuilder

H265 codec settings.

Protobuf type google.cloud.video.transcoder.v1.VideoStream.H265CodecSettings

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicVideoStream.H265CodecSettings.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VideoStream.H265CodecSettings.Builder
Overrides

build()

publicVideoStream.H265CodecSettingsbuild()
Returns
Type Description
VideoStream.H265CodecSettings

buildPartial()

publicVideoStream.H265CodecSettingsbuildPartial()
Returns
Type Description
VideoStream.H265CodecSettings

clear()

publicVideoStream.H265CodecSettings.Builderclear()
Returns
Type Description
VideoStream.H265CodecSettings.Builder
Overrides

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;

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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 H265CodecSettings.gop_frame_count if set. The default is 0.

int32 b_frame_count = 15;

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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];

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

clearColorFormat()

publicVideoStream.H265CodecSettings.BuilderclearColorFormat()
Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

clearEnableTwoPass()

publicVideoStream.H265CodecSettings.BuilderclearEnableTwoPass()

Use two-pass encoding strategy to achieve better video quality. H265CodecSettings.rate_control_mode must be vbr. The default is false.

bool enable_two_pass = 11;

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicVideoStream.H265CodecSettings.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VideoStream.H265CodecSettings.Builder
Overrides

clearFrameRate()

publicVideoStream.H265CodecSettings.BuilderclearFrameRate()

Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120.

double frame_rate = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

clearFrameRateConversionStrategy()

publicVideoStream.H265CodecSettings.BuilderclearFrameRateConversionStrategy()

Optional. Frame rate conversion strategy for desired frame rate. The default is DOWNSAMPLE.

.google.cloud.video.transcoder.v1.VideoStream.FrameRateConversionStrategy frame_rate_conversion_strategy = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Returns
Type Description
VideoStream.H265CodecSettings.Builder

clearGopFrameCount()

publicVideoStream.H265CodecSettings.BuilderclearGopFrameCount()

Select the GOP size based on the specified frame count. Must be greater than zero.

int32 gop_frame_count = 9;

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

clearGopMode()

publicVideoStream.H265CodecSettings.BuilderclearGopMode()
Returns
Type Description
VideoStream.H265CodecSettings.Builder

clearHdr10()

publicVideoStream.H265CodecSettings.BuilderclearHdr10()

Optional. HDR10 color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatHDR10 hdr10 = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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.

For portrait videos that contain horizontal ASR and rotation metadata, provide the height, in pixels, per the horizontal ASR. The API calculates the width per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.

int32 height_pixels = 2;

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

clearHlg()

publicVideoStream.H265CodecSettings.BuilderclearHlg()

Optional. HLG color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatHLG hlg = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.H265CodecSettings.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicVideoStream.H265CodecSettings.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VideoStream.H265CodecSettings.Builder
Overrides

clearPixelFormat()

publicVideoStream.H265CodecSettings.BuilderclearPixelFormat()

Pixel format to use. The default is yuv420p.

Supported pixel formats:

  • yuv420p pixel format
  • yuv422p pixel format
  • yuv444p pixel format
  • yuv420p10 10-bit HDR pixel format
  • yuv422p10 10-bit HDR pixel format
  • yuv444p10 10-bit HDR pixel format
  • yuv420p12 12-bit HDR pixel format
  • yuv422p12 12-bit HDR pixel format
  • yuv444p12 12-bit HDR pixel format

string pixel_format = 5;

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

clearProfile()

publicVideoStream.H265CodecSettings.BuilderclearProfile()

Enforces the specified codec profile. The following profiles are supported:

  • 8-bit profiles
    • main (default)
    • main-intra
    • mainstillpicture
  • 10-bit profiles
    • main10 (default)
    • main10-intra
    • main422-10
    • main422-10-intra
    • main444-10
    • main444-10-intra
  • 12-bit profiles

    • main12 (default)
    • main12-intra
    • main422-12
    • main422-12-intra
    • main444-12
    • main444-12-intra

    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 profile = 17;

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

clearRateControlMode()

publicVideoStream.H265CodecSettings.BuilderclearRateControlMode()

Specify the mode. The default is vbr.

Supported rate control modes:

  • vbr - variable bitrate
  • crf - constant rate factor

string rate_control_mode = 6;

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

clearSdr()

publicVideoStream.H265CodecSettings.BuilderclearSdr()

Optional. SDR color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatSDR sdr = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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 H265CodecSettings.vbv_size_bits.

int32 vbv_fullness_bits = 13;

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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.

For portrait videos that contain horizontal ASR and rotation metadata, provide the width, in pixels, per the horizontal ASR. The API calculates the height per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.

int32 width_pixels = 1;

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

clone()

publicVideoStream.H265CodecSettings.Builderclone()
Returns
Type Description
VideoStream.H265CodecSettings.Builder
Overrides

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;

Returns
Type Description
boolean

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;

Returns
Type Description
double

The aqStrength.

getBFrameCount()

publicintgetBFrameCount()

The number of consecutive B-frames. Must be greater than or equal to zero. Must be less than H265CodecSettings.gop_frame_count if set. The default is 0.

int32 b_frame_count = 15;

Returns
Type Description
int

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;

Returns
Type Description
boolean

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];

Returns
Type Description
int

The bitrateBps.

getColorFormatCase()

publicVideoStream.H265CodecSettings.ColorFormatCasegetColorFormatCase()
Returns
Type Description
VideoStream.H265CodecSettings.ColorFormatCase

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;

Returns
Type Description
int

The crfLevel.

getDefaultInstanceForType()

publicVideoStream.H265CodecSettingsgetDefaultInstanceForType()
Returns
Type Description
VideoStream.H265CodecSettings

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnableTwoPass()

publicbooleangetEnableTwoPass()

Use two-pass encoding strategy to achieve better video quality. H265CodecSettings.rate_control_mode must be vbr. The default is false.

bool enable_two_pass = 11;

Returns
Type Description
boolean

The enableTwoPass.

getFrameRate()

publicdoublegetFrameRate()

Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120.

double frame_rate = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
double

The frameRate.

getFrameRateConversionStrategy()

publicVideoStream.FrameRateConversionStrategygetFrameRateConversionStrategy()

Optional. Frame rate conversion strategy for desired frame rate. The default is DOWNSAMPLE.

.google.cloud.video.transcoder.v1.VideoStream.FrameRateConversionStrategy frame_rate_conversion_strategy = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.FrameRateConversionStrategy

The frameRateConversionStrategy.

getFrameRateConversionStrategyValue()

publicintgetFrameRateConversionStrategyValue()

Optional. Frame rate conversion strategy for desired frame rate. The default is DOWNSAMPLE.

.google.cloud.video.transcoder.v1.VideoStream.FrameRateConversionStrategy frame_rate_conversion_strategy = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for frameRateConversionStrategy.

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;

Returns
Type Description
Duration

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;

Returns
Type Description
Builder

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;

Returns
Type Description
DurationOrBuilder

getGopFrameCount()

publicintgetGopFrameCount()

Select the GOP size based on the specified frame count. Must be greater than zero.

int32 gop_frame_count = 9;

Returns
Type Description
int

The gopFrameCount.

getGopModeCase()

publicVideoStream.H265CodecSettings.GopModeCasegetGopModeCase()
Returns
Type Description
VideoStream.H265CodecSettings.GopModeCase

getHdr10()

publicVideoStream.H265ColorFormatHDR10getHdr10()

Optional. HDR10 color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatHDR10 hdr10 = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.H265ColorFormatHDR10

The hdr10.

getHdr10Builder()

publicVideoStream.H265ColorFormatHDR10.BuildergetHdr10Builder()

Optional. HDR10 color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatHDR10 hdr10 = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.H265ColorFormatHDR10.Builder

getHdr10OrBuilder()

publicVideoStream.H265ColorFormatHDR10OrBuildergetHdr10OrBuilder()

Optional. HDR10 color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatHDR10 hdr10 = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.H265ColorFormatHDR10OrBuilder

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.

For portrait videos that contain horizontal ASR and rotation metadata, provide the height, in pixels, per the horizontal ASR. The API calculates the width per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.

int32 height_pixels = 2;

Returns
Type Description
int

The heightPixels.

getHlg()

publicVideoStream.H265ColorFormatHLGgetHlg()

Optional. HLG color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatHLG hlg = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.H265ColorFormatHLG

The hlg.

getHlgBuilder()

publicVideoStream.H265ColorFormatHLG.BuildergetHlgBuilder()

Optional. HLG color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatHLG hlg = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.H265ColorFormatHLG.Builder

getHlgOrBuilder()

publicVideoStream.H265ColorFormatHLGOrBuildergetHlgOrBuilder()

Optional. HLG color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatHLG hlg = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.H265ColorFormatHLGOrBuilder

getPixelFormat()

publicStringgetPixelFormat()

Pixel format to use. The default is yuv420p.

Supported pixel formats:

  • yuv420p pixel format
  • yuv422p pixel format
  • yuv444p pixel format
  • yuv420p10 10-bit HDR pixel format
  • yuv422p10 10-bit HDR pixel format
  • yuv444p10 10-bit HDR pixel format
  • yuv420p12 12-bit HDR pixel format
  • yuv422p12 12-bit HDR pixel format
  • yuv444p12 12-bit HDR pixel format

string pixel_format = 5;

Returns
Type Description
String

The pixelFormat.

getPixelFormatBytes()

publicByteStringgetPixelFormatBytes()

Pixel format to use. The default is yuv420p.

Supported pixel formats:

  • yuv420p pixel format
  • yuv422p pixel format
  • yuv444p pixel format
  • yuv420p10 10-bit HDR pixel format
  • yuv422p10 10-bit HDR pixel format
  • yuv444p10 10-bit HDR pixel format
  • yuv420p12 12-bit HDR pixel format
  • yuv422p12 12-bit HDR pixel format
  • yuv444p12 12-bit HDR pixel format

string pixel_format = 5;

Returns
Type Description
ByteString

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;

Returns
Type Description
String

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;

Returns
Type Description
ByteString

The bytes for preset.

getProfile()

publicStringgetProfile()

Enforces the specified codec profile. The following profiles are supported:

  • 8-bit profiles
    • main (default)
    • main-intra
    • mainstillpicture
  • 10-bit profiles
    • main10 (default)
    • main10-intra
    • main422-10
    • main422-10-intra
    • main444-10
    • main444-10-intra
  • 12-bit profiles

    • main12 (default)
    • main12-intra
    • main422-12
    • main422-12-intra
    • main444-12
    • main444-12-intra

    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 profile = 17;

Returns
Type Description
String

The profile.

getProfileBytes()

publicByteStringgetProfileBytes()

Enforces the specified codec profile. The following profiles are supported:

  • 8-bit profiles
    • main (default)
    • main-intra
    • mainstillpicture
  • 10-bit profiles
    • main10 (default)
    • main10-intra
    • main422-10
    • main422-10-intra
    • main444-10
    • main444-10-intra
  • 12-bit profiles

    • main12 (default)
    • main12-intra
    • main422-12
    • main422-12-intra
    • main444-12
    • main444-12-intra

    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 profile = 17;

Returns
Type Description
ByteString

The bytes for profile.

getRateControlMode()

publicStringgetRateControlMode()

Specify the mode. The default is vbr.

Supported rate control modes:

  • vbr - variable bitrate
  • crf - constant rate factor

string rate_control_mode = 6;

Returns
Type Description
String

The rateControlMode.

getRateControlModeBytes()

publicByteStringgetRateControlModeBytes()

Specify the mode. The default is vbr.

Supported rate control modes:

  • vbr - variable bitrate
  • crf - constant rate factor

string rate_control_mode = 6;

Returns
Type Description
ByteString

The bytes for rateControlMode.

getSdr()

publicVideoStream.H265ColorFormatSDRgetSdr()

Optional. SDR color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatSDR sdr = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.H265ColorFormatSDR

The sdr.

getSdrBuilder()

publicVideoStream.H265ColorFormatSDR.BuildergetSdrBuilder()

Optional. SDR color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatSDR sdr = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.H265ColorFormatSDR.Builder

getSdrOrBuilder()

publicVideoStream.H265ColorFormatSDROrBuildergetSdrOrBuilder()

Optional. SDR color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatSDR sdr = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VideoStream.H265ColorFormatSDROrBuilder

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;

Returns
Type Description
String

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;

Returns
Type Description
ByteString

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 H265CodecSettings.vbv_size_bits.

int32 vbv_fullness_bits = 13;

Returns
Type Description
int

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;

Returns
Type Description
int

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.

For portrait videos that contain horizontal ASR and rotation metadata, provide the width, in pixels, per the horizontal ASR. The API calculates the height per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.

int32 width_pixels = 1;

Returns
Type Description
int

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;

Returns
Type Description
boolean

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;

Returns
Type Description
boolean

Whether the gopFrameCount field is set.

hasHdr10()

publicbooleanhasHdr10()

Optional. HDR10 color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatHDR10 hdr10 = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the hdr10 field is set.

hasHlg()

publicbooleanhasHlg()

Optional. HLG color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatHLG hlg = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the hlg field is set.

hasSdr()

publicbooleanhasSdr()

Optional. SDR color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatSDR sdr = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the sdr field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VideoStream.H265CodecSettings other)

publicVideoStream.H265CodecSettings.BuildermergeFrom(VideoStream.H265CodecSettingsother)
Parameter
Name Description
other VideoStream.H265CodecSettings
Returns
Type Description
VideoStream.H265CodecSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicVideoStream.H265CodecSettings.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VideoStream.H265CodecSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicVideoStream.H265CodecSettings.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
VideoStream.H265CodecSettings.Builder
Overrides

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;

Parameter
Name Description
value Duration
Returns
Type Description
VideoStream.H265CodecSettings.Builder

mergeHdr10(VideoStream.H265ColorFormatHDR10 value)

publicVideoStream.H265CodecSettings.BuildermergeHdr10(VideoStream.H265ColorFormatHDR10value)

Optional. HDR10 color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatHDR10 hdr10 = 22 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value VideoStream.H265ColorFormatHDR10
Returns
Type Description
VideoStream.H265CodecSettings.Builder

mergeHlg(VideoStream.H265ColorFormatHLG value)

publicVideoStream.H265CodecSettings.BuildermergeHlg(VideoStream.H265ColorFormatHLGvalue)

Optional. HLG color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatHLG hlg = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value VideoStream.H265ColorFormatHLG
Returns
Type Description
VideoStream.H265CodecSettings.Builder

mergeSdr(VideoStream.H265ColorFormatSDR value)

publicVideoStream.H265CodecSettings.BuildermergeSdr(VideoStream.H265ColorFormatSDRvalue)

Optional. SDR color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatSDR sdr = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value VideoStream.H265ColorFormatSDR
Returns
Type Description
VideoStream.H265CodecSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalVideoStream.H265CodecSettings.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VideoStream.H265CodecSettings.Builder
Overrides

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;

Parameter
Name Description
value boolean

The allowOpenGop to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Parameter
Name Description
value double

The aqStrength to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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 H265CodecSettings.gop_frame_count if set. The default is 0.

int32 b_frame_count = 15;

Parameter
Name Description
value int

The bFrameCount to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Parameter
Name Description
value boolean

The bPyramid to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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];

Parameter
Name Description
value int

The bitrateBps to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Parameter
Name Description
value int

The crfLevel to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

setEnableTwoPass(boolean value)

publicVideoStream.H265CodecSettings.BuildersetEnableTwoPass(booleanvalue)

Use two-pass encoding strategy to achieve better video quality. H265CodecSettings.rate_control_mode must be vbr. The default is false.

bool enable_two_pass = 11;

Parameter
Name Description
value boolean

The enableTwoPass to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicVideoStream.H265CodecSettings.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VideoStream.H265CodecSettings.Builder
Overrides

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.

double frame_rate = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value double

The frameRate to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

setFrameRateConversionStrategy(VideoStream.FrameRateConversionStrategy value)

publicVideoStream.H265CodecSettings.BuildersetFrameRateConversionStrategy(VideoStream.FrameRateConversionStrategyvalue)

Optional. Frame rate conversion strategy for desired frame rate. The default is DOWNSAMPLE.

.google.cloud.video.transcoder.v1.VideoStream.FrameRateConversionStrategy frame_rate_conversion_strategy = 23 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value VideoStream.FrameRateConversionStrategy

The frameRateConversionStrategy to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

setFrameRateConversionStrategyValue(int value)

publicVideoStream.H265CodecSettings.BuildersetFrameRateConversionStrategyValue(intvalue)

Optional. Frame rate conversion strategy for desired frame rate. The default is DOWNSAMPLE.

.google.cloud.video.transcoder.v1.VideoStream.FrameRateConversionStrategy frame_rate_conversion_strategy = 23 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for frameRateConversionStrategy to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Parameter
Name Description
value Duration
Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Parameter
Name Description
value int

The gopFrameCount to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

setHdr10(VideoStream.H265ColorFormatHDR10 value)

publicVideoStream.H265CodecSettings.BuildersetHdr10(VideoStream.H265ColorFormatHDR10value)

Optional. HDR10 color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatHDR10 hdr10 = 22 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value VideoStream.H265ColorFormatHDR10
Returns
Type Description
VideoStream.H265CodecSettings.Builder

setHdr10(VideoStream.H265ColorFormatHDR10.Builder builderForValue)

publicVideoStream.H265CodecSettings.BuildersetHdr10(VideoStream.H265ColorFormatHDR10.BuilderbuilderForValue)

Optional. HDR10 color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatHDR10 hdr10 = 22 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue VideoStream.H265ColorFormatHDR10.Builder
Returns
Type Description
VideoStream.H265CodecSettings.Builder

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.

For portrait videos that contain horizontal ASR and rotation metadata, provide the height, in pixels, per the horizontal ASR. The API calculates the width per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.

int32 height_pixels = 2;

Parameter
Name Description
value int

The heightPixels to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

setHlg(VideoStream.H265ColorFormatHLG value)

publicVideoStream.H265CodecSettings.BuildersetHlg(VideoStream.H265ColorFormatHLGvalue)

Optional. HLG color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatHLG hlg = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value VideoStream.H265ColorFormatHLG
Returns
Type Description
VideoStream.H265CodecSettings.Builder

setHlg(VideoStream.H265ColorFormatHLG.Builder builderForValue)

publicVideoStream.H265CodecSettings.BuildersetHlg(VideoStream.H265ColorFormatHLG.BuilderbuilderForValue)

Optional. HLG color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatHLG hlg = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue VideoStream.H265ColorFormatHLG.Builder
Returns
Type Description
VideoStream.H265CodecSettings.Builder

setPixelFormat(String value)

publicVideoStream.H265CodecSettings.BuildersetPixelFormat(Stringvalue)

Pixel format to use. The default is yuv420p.

Supported pixel formats:

  • yuv420p pixel format
  • yuv422p pixel format
  • yuv444p pixel format
  • yuv420p10 10-bit HDR pixel format
  • yuv422p10 10-bit HDR pixel format
  • yuv444p10 10-bit HDR pixel format
  • yuv420p12 12-bit HDR pixel format
  • yuv422p12 12-bit HDR pixel format
  • yuv444p12 12-bit HDR pixel format

string pixel_format = 5;

Parameter
Name Description
value String

The pixelFormat to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

setPixelFormatBytes(ByteString value)

publicVideoStream.H265CodecSettings.BuildersetPixelFormatBytes(ByteStringvalue)

Pixel format to use. The default is yuv420p.

Supported pixel formats:

  • yuv420p pixel format
  • yuv422p pixel format
  • yuv444p pixel format
  • yuv420p10 10-bit HDR pixel format
  • yuv422p10 10-bit HDR pixel format
  • yuv444p10 10-bit HDR pixel format
  • yuv420p12 12-bit HDR pixel format
  • yuv422p12 12-bit HDR pixel format
  • yuv444p12 12-bit HDR pixel format

string pixel_format = 5;

Parameter
Name Description
value ByteString

The bytes for pixelFormat to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Parameter
Name Description
value String

The preset to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Parameter
Name Description
value ByteString

The bytes for preset to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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-intra
    • mainstillpicture
  • 10-bit profiles
    • main10 (default)
    • main10-intra
    • main422-10
    • main422-10-intra
    • main444-10
    • main444-10-intra
  • 12-bit profiles

    • main12 (default)
    • main12-intra
    • main422-12
    • main422-12-intra
    • main444-12
    • main444-12-intra

    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 profile = 17;

Parameter
Name Description
value String

The profile to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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-intra
    • mainstillpicture
  • 10-bit profiles
    • main10 (default)
    • main10-intra
    • main422-10
    • main422-10-intra
    • main444-10
    • main444-10-intra
  • 12-bit profiles

    • main12 (default)
    • main12-intra
    • main422-12
    • main422-12-intra
    • main444-12
    • main444-12-intra

    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 profile = 17;

Parameter
Name Description
value ByteString

The bytes for profile to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

setRateControlMode(String value)

publicVideoStream.H265CodecSettings.BuildersetRateControlMode(Stringvalue)

Specify the mode. The default is vbr.

Supported rate control modes:

  • vbr - variable bitrate
  • crf - constant rate factor

string rate_control_mode = 6;

Parameter
Name Description
value String

The rateControlMode to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

setRateControlModeBytes(ByteString value)

publicVideoStream.H265CodecSettings.BuildersetRateControlModeBytes(ByteStringvalue)

Specify the mode. The default is vbr.

Supported rate control modes:

  • vbr - variable bitrate
  • crf - constant rate factor

string rate_control_mode = 6;

Parameter
Name Description
value ByteString

The bytes for rateControlMode to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicVideoStream.H265CodecSettings.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VideoStream.H265CodecSettings.Builder
Overrides

setSdr(VideoStream.H265ColorFormatSDR value)

publicVideoStream.H265CodecSettings.BuildersetSdr(VideoStream.H265ColorFormatSDRvalue)

Optional. SDR color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatSDR sdr = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value VideoStream.H265ColorFormatSDR
Returns
Type Description
VideoStream.H265CodecSettings.Builder

setSdr(VideoStream.H265ColorFormatSDR.Builder builderForValue)

publicVideoStream.H265CodecSettings.BuildersetSdr(VideoStream.H265ColorFormatSDR.BuilderbuilderForValue)

Optional. SDR color format setting for H265.

.google.cloud.video.transcoder.v1.VideoStream.H265ColorFormatSDR sdr = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue VideoStream.H265ColorFormatSDR.Builder
Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Parameter
Name Description
value String

The tune to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Parameter
Name Description
value ByteString

The bytes for tune to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalVideoStream.H265CodecSettings.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VideoStream.H265CodecSettings.Builder
Overrides

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 H265CodecSettings.vbv_size_bits.

int32 vbv_fullness_bits = 13;

Parameter
Name Description
value int

The vbvFullnessBits to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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;

Parameter
Name Description
value int

The vbvSizeBits to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

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.

For portrait videos that contain horizontal ASR and rotation metadata, provide the width, in pixels, per the horizontal ASR. The API calculates the height per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.

int32 width_pixels = 1;

Parameter
Name Description
value int

The widthPixels to set.

Returns
Type Description
VideoStream.H265CodecSettings.Builder

This builder for chaining.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.