Class VideoStream.Vp9CodecSettings.Builder (1.13.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.Vp9CodecSettings.BuilderextendsGeneratedMessageV3.Builder<VideoStream.Vp9CodecSettings.Builder>implementsVideoStream.Vp9CodecSettingsOrBuilderVP9 codec settings.
Protobuf type google.cloud.video.transcoder.v1.VideoStream.Vp9CodecSettings
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > VideoStream.Vp9CodecSettings.BuilderImplements
VideoStream.Vp9CodecSettingsOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicVideoStream.Vp9CodecSettings.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
|
build()
publicVideoStream.Vp9CodecSettingsbuild()| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings |
|
buildPartial()
publicVideoStream.Vp9CodecSettingsbuildPartial()| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings |
|
clear()
publicVideoStream.Vp9CodecSettings.Builderclear()| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
|
clearBitrateBps()
publicVideoStream.Vp9CodecSettings.BuilderclearBitrateBps()Required. The video bitrate in bits per second. The minimum value is 1,000. The maximum value is 480,000,000.
int32 bitrate_bps = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
This builder for chaining. |
clearCrfLevel()
publicVideoStream.Vp9CodecSettings.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. Note: This field is not supported.
int32 crf_level = 7;
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
publicVideoStream.Vp9CodecSettings.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
|
clearFrameRate()
publicVideoStream.Vp9CodecSettings.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];
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
This builder for chaining. |
clearGopDuration()
publicVideoStream.Vp9CodecSettings.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 = 9;
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
|
clearGopFrameCount()
publicVideoStream.Vp9CodecSettings.BuilderclearGopFrameCount()Select the GOP size based on the specified frame count. Must be greater than zero.
int32 gop_frame_count = 8;
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
This builder for chaining. |
clearGopMode()
publicVideoStream.Vp9CodecSettings.BuilderclearGopMode()| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
|
clearHeightPixels()
publicVideoStream.Vp9CodecSettings.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.Vp9CodecSettings.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
publicVideoStream.Vp9CodecSettings.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
|
clearPixelFormat()
publicVideoStream.Vp9CodecSettings.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;
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
This builder for chaining. |
clearProfile()
publicVideoStream.Vp9CodecSettings.BuilderclearProfile()Enforces the specified codec profile. The following profiles are supported:
profile0(default)profile1profile2profile3The available options are WebM-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in theVp9CodecSettingsmessage.
string profile = 10;
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
This builder for chaining. |
clearRateControlMode()
publicVideoStream.Vp9CodecSettings.BuilderclearRateControlMode() Specify the rate_control_mode. The default is vbr.
Supported rate control modes:
vbr- variable bitrate
string rate_control_mode = 6;
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
This builder for chaining. |
clearWidthPixels()
publicVideoStream.Vp9CodecSettings.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.Vp9CodecSettings.Builder |
This builder for chaining. |
clone()
publicVideoStream.Vp9CodecSettings.Builderclone()| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
|
getBitrateBps()
publicintgetBitrateBps()Required. The video bitrate in bits per second. The minimum value is 1,000. The maximum value is 480,000,000.
int32 bitrate_bps = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
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. Note: This field is not supported.
int32 crf_level = 7;
| Returns | |
|---|---|
| Type | Description |
int |
The crfLevel. |
getDefaultInstanceForType()
publicVideoStream.Vp9CodecSettingsgetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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];
| Returns | |
|---|---|
| Type | Description |
double |
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 = 9;
| 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 = 9;
| 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 = 9;
| 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 = 8;
| Returns | |
|---|---|
| Type | Description |
int |
The gopFrameCount. |
getGopModeCase()
publicVideoStream.Vp9CodecSettings.GopModeCasegetGopModeCase()| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.GopModeCase |
|
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. |
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;
| Returns | |
|---|---|
| Type | Description |
String |
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;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for pixelFormat. |
getProfile()
publicStringgetProfile()Enforces the specified codec profile. The following profiles are supported:
profile0(default)profile1profile2profile3The available options are WebM-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in theVp9CodecSettingsmessage.
string profile = 10;
| Returns | |
|---|---|
| Type | Description |
String |
The profile. |
getProfileBytes()
publicByteStringgetProfileBytes()Enforces the specified codec profile. The following profiles are supported:
profile0(default)profile1profile2profile3The available options are WebM-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in theVp9CodecSettingsmessage.
string profile = 10;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for profile. |
getRateControlMode()
publicStringgetRateControlMode() Specify the rate_control_mode. The default is vbr.
Supported rate control modes:
vbr- variable bitrate
string rate_control_mode = 6;
| Returns | |
|---|---|
| Type | Description |
String |
The rateControlMode. |
getRateControlModeBytes()
publicByteStringgetRateControlModeBytes() Specify the rate_control_mode. The default is vbr.
Supported rate control modes:
vbr- variable bitrate
string rate_control_mode = 6;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for rateControlMode. |
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 = 9;
| 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 = 8;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the gopFrameCount field is set. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(VideoStream.Vp9CodecSettings other)
publicVideoStream.Vp9CodecSettings.BuildermergeFrom(VideoStream.Vp9CodecSettingsother)| Parameter | |
|---|---|
| Name | Description |
other |
VideoStream.Vp9CodecSettings |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicVideoStream.Vp9CodecSettings.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicVideoStream.Vp9CodecSettings.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
|
mergeGopDuration(Duration value)
publicVideoStream.Vp9CodecSettings.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 = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalVideoStream.Vp9CodecSettings.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
|
setBitrateBps(int value)
publicVideoStream.Vp9CodecSettings.BuildersetBitrateBps(intvalue)Required. The video bitrate in bits per second. The minimum value is 1,000. The maximum value is 480,000,000.
int32 bitrate_bps = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
int The bitrateBps to set. |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
This builder for chaining. |
setCrfLevel(int value)
publicVideoStream.Vp9CodecSettings.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. Note: This field is not supported.
int32 crf_level = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
int The crfLevel to set. |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
publicVideoStream.Vp9CodecSettings.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
|
setFrameRate(double value)
publicVideoStream.Vp9CodecSettings.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];
| Parameter | |
|---|---|
| Name | Description |
value |
double The frameRate to set. |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
This builder for chaining. |
setGopDuration(Duration value)
publicVideoStream.Vp9CodecSettings.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 = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
|
setGopDuration(Duration.Builder builderForValue)
publicVideoStream.Vp9CodecSettings.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 = 9;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
|
setGopFrameCount(int value)
publicVideoStream.Vp9CodecSettings.BuildersetGopFrameCount(intvalue)Select the GOP size based on the specified frame count. Must be greater than zero.
int32 gop_frame_count = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
int The gopFrameCount to set. |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
This builder for chaining. |
setHeightPixels(int value)
publicVideoStream.Vp9CodecSettings.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.Vp9CodecSettings.Builder |
This builder for chaining. |
setPixelFormat(String value)
publicVideoStream.Vp9CodecSettings.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;
| Parameter | |
|---|---|
| Name | Description |
value |
String The pixelFormat to set. |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
This builder for chaining. |
setPixelFormatBytes(ByteString value)
publicVideoStream.Vp9CodecSettings.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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for pixelFormat to set. |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
This builder for chaining. |
setProfile(String value)
publicVideoStream.Vp9CodecSettings.BuildersetProfile(Stringvalue)Enforces the specified codec profile. The following profiles are supported:
profile0(default)profile1profile2profile3The available options are WebM-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in theVp9CodecSettingsmessage.
string profile = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
String The profile to set. |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
This builder for chaining. |
setProfileBytes(ByteString value)
publicVideoStream.Vp9CodecSettings.BuildersetProfileBytes(ByteStringvalue)Enforces the specified codec profile. The following profiles are supported:
profile0(default)profile1profile2profile3The available options are WebM-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in theVp9CodecSettingsmessage.
string profile = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for profile to set. |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
This builder for chaining. |
setRateControlMode(String value)
publicVideoStream.Vp9CodecSettings.BuildersetRateControlMode(Stringvalue) Specify the rate_control_mode. The default is vbr.
Supported rate control modes:
vbr- variable bitrate
string rate_control_mode = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
String The rateControlMode to set. |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
This builder for chaining. |
setRateControlModeBytes(ByteString value)
publicVideoStream.Vp9CodecSettings.BuildersetRateControlModeBytes(ByteStringvalue) Specify the rate_control_mode. The default is vbr.
Supported rate control modes:
vbr- variable bitrate
string rate_control_mode = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for rateControlMode to set. |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicVideoStream.Vp9CodecSettings.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalVideoStream.Vp9CodecSettings.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
VideoStream.Vp9CodecSettings.Builder |
|
setWidthPixels(int value)
publicVideoStream.Vp9CodecSettings.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.Vp9CodecSettings.Builder |
This builder for chaining. |