public static final class VideoStream.H264CodecSettings.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VideoStream.H264CodecSettings.Builder> implements VideoStream.H264CodecSettingsOrBuilder
H264 codec settings.Protobuf type
google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings| Modifier and Type | Method and Description |
|---|---|
VideoStream.H264CodecSettings.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
VideoStream.H264CodecSettings |
build() |
VideoStream.H264CodecSettings |
buildPartial() |
VideoStream.H264CodecSettings.Builder |
clear() |
VideoStream.H264CodecSettings.Builder |
clearAllowOpenGop()
Specifies whether an open Group of Pictures (GOP) structure should be
allowed or not.
|
VideoStream.H264CodecSettings.Builder |
clearAqStrength()
Specify the intensity of the adaptive quantizer (AQ).
|
VideoStream.H264CodecSettings.Builder |
clearBFrameCount()
The number of consecutive B-frames.
|
VideoStream.H264CodecSettings.Builder |
clearBitrateBps()
Required.
|
VideoStream.H264CodecSettings.Builder |
clearBPyramid()
Allow B-pyramid for reference frame selection.
|
VideoStream.H264CodecSettings.Builder |
clearCrfLevel()
Target CRF level.
|
VideoStream.H264CodecSettings.Builder |
clearEnableTwoPass()
Use two-pass encoding strategy to achieve better video quality.
|
VideoStream.H264CodecSettings.Builder |
clearEntropyCoder()
The entropy coder to use.
|
VideoStream.H264CodecSettings.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
VideoStream.H264CodecSettings.Builder |
clearFrameRate()
Required.
|
VideoStream.H264CodecSettings.Builder |
clearGopDuration()
Select the GOP size based on the specified duration.
|
VideoStream.H264CodecSettings.Builder |
clearGopFrameCount()
Select the GOP size based on the specified frame count.
|
VideoStream.H264CodecSettings.Builder |
clearGopMode() |
VideoStream.H264CodecSettings.Builder |
clearHeightPixels()
The height of the video in pixels.
|
VideoStream.H264CodecSettings.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
VideoStream.H264CodecSettings.Builder |
clearPixelFormat()
Pixel format to use.
|
VideoStream.H264CodecSettings.Builder |
clearPreset()
Enforces the specified codec preset.
|
VideoStream.H264CodecSettings.Builder |
clearProfile()
Enforces the specified codec profile.
|
VideoStream.H264CodecSettings.Builder |
clearRateControlMode()
Specify the `rate_control_mode`.
|
VideoStream.H264CodecSettings.Builder |
clearTune()
Enforces the specified codec tune.
|
VideoStream.H264CodecSettings.Builder |
clearVbvFullnessBits()
Initial fullness of the Video Buffering Verifier (VBV) buffer in bits.
|
VideoStream.H264CodecSettings.Builder |
clearVbvSizeBits()
Size of the Video Buffering Verifier (VBV) buffer in bits.
|
VideoStream.H264CodecSettings.Builder |
clearWidthPixels()
The width of the video in pixels.
|
VideoStream.H264CodecSettings.Builder |
clone() |
boolean |
getAllowOpenGop()
Specifies whether an open Group of Pictures (GOP) structure should be
allowed or not.
|
double |
getAqStrength()
Specify the intensity of the adaptive quantizer (AQ).
|
int |
getBFrameCount()
The number of consecutive B-frames.
|
int |
getBitrateBps()
Required.
|
boolean |
getBPyramid()
Allow B-pyramid for reference frame selection.
|
int |
getCrfLevel()
Target CRF level.
|
VideoStream.H264CodecSettings |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getEnableTwoPass()
Use two-pass encoding strategy to achieve better video quality.
|
String |
getEntropyCoder()
The entropy coder to use.
|
com.google.protobuf.ByteString |
getEntropyCoderBytes()
The entropy coder to use.
|
double |
getFrameRate()
Required.
|
com.google.protobuf.Duration |
getGopDuration()
Select the GOP size based on the specified duration.
|
com.google.protobuf.Duration.Builder |
getGopDurationBuilder()
Select the GOP size based on the specified duration.
|
com.google.protobuf.DurationOrBuilder |
getGopDurationOrBuilder()
Select the GOP size based on the specified duration.
|
int |
getGopFrameCount()
Select the GOP size based on the specified frame count.
|
VideoStream.H264CodecSettings.GopModeCase |
getGopModeCase() |
int |
getHeightPixels()
The height of the video in pixels.
|
String |
getPixelFormat()
Pixel format to use.
|
com.google.protobuf.ByteString |
getPixelFormatBytes()
Pixel format to use.
|
String |
getPreset()
Enforces the specified codec preset.
|
com.google.protobuf.ByteString |
getPresetBytes()
Enforces the specified codec preset.
|
String |
getProfile()
Enforces the specified codec profile.
|
com.google.protobuf.ByteString |
getProfileBytes()
Enforces the specified codec profile.
|
String |
getRateControlMode()
Specify the `rate_control_mode`.
|
com.google.protobuf.ByteString |
getRateControlModeBytes()
Specify the `rate_control_mode`.
|
String |
getTune()
Enforces the specified codec tune.
|
com.google.protobuf.ByteString |
getTuneBytes()
Enforces the specified codec tune.
|
int |
getVbvFullnessBits()
Initial fullness of the Video Buffering Verifier (VBV) buffer in bits.
|
int |
getVbvSizeBits()
Size of the Video Buffering Verifier (VBV) buffer in bits.
|
int |
getWidthPixels()
The width of the video in pixels.
|
boolean |
hasGopDuration()
Select the GOP size based on the specified duration.
|
boolean |
hasGopFrameCount()
Select the GOP size based on the specified frame count.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
VideoStream.H264CodecSettings.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
VideoStream.H264CodecSettings.Builder |
mergeFrom(com.google.protobuf.Message other) |
VideoStream.H264CodecSettings.Builder |
mergeFrom(VideoStream.H264CodecSettings other) |
VideoStream.H264CodecSettings.Builder |
mergeGopDuration(com.google.protobuf.Duration value)
Select the GOP size based on the specified duration.
|
VideoStream.H264CodecSettings.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
VideoStream.H264CodecSettings.Builder |
setAllowOpenGop(boolean value)
Specifies whether an open Group of Pictures (GOP) structure should be
allowed or not.
|
VideoStream.H264CodecSettings.Builder |
setAqStrength(double value)
Specify the intensity of the adaptive quantizer (AQ).
|
VideoStream.H264CodecSettings.Builder |
setBFrameCount(int value)
The number of consecutive B-frames.
|
VideoStream.H264CodecSettings.Builder |
setBitrateBps(int value)
Required.
|
VideoStream.H264CodecSettings.Builder |
setBPyramid(boolean value)
Allow B-pyramid for reference frame selection.
|
VideoStream.H264CodecSettings.Builder |
setCrfLevel(int value)
Target CRF level.
|
VideoStream.H264CodecSettings.Builder |
setEnableTwoPass(boolean value)
Use two-pass encoding strategy to achieve better video quality.
|
VideoStream.H264CodecSettings.Builder |
setEntropyCoder(String value)
The entropy coder to use.
|
VideoStream.H264CodecSettings.Builder |
setEntropyCoderBytes(com.google.protobuf.ByteString value)
The entropy coder to use.
|
VideoStream.H264CodecSettings.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
VideoStream.H264CodecSettings.Builder |
setFrameRate(double value)
Required.
|
VideoStream.H264CodecSettings.Builder |
setGopDuration(com.google.protobuf.Duration.Builder builderForValue)
Select the GOP size based on the specified duration.
|
VideoStream.H264CodecSettings.Builder |
setGopDuration(com.google.protobuf.Duration value)
Select the GOP size based on the specified duration.
|
VideoStream.H264CodecSettings.Builder |
setGopFrameCount(int value)
Select the GOP size based on the specified frame count.
|
VideoStream.H264CodecSettings.Builder |
setHeightPixels(int value)
The height of the video in pixels.
|
VideoStream.H264CodecSettings.Builder |
setPixelFormat(String value)
Pixel format to use.
|
VideoStream.H264CodecSettings.Builder |
setPixelFormatBytes(com.google.protobuf.ByteString value)
Pixel format to use.
|
VideoStream.H264CodecSettings.Builder |
setPreset(String value)
Enforces the specified codec preset.
|
VideoStream.H264CodecSettings.Builder |
setPresetBytes(com.google.protobuf.ByteString value)
Enforces the specified codec preset.
|
VideoStream.H264CodecSettings.Builder |
setProfile(String value)
Enforces the specified codec profile.
|
VideoStream.H264CodecSettings.Builder |
setProfileBytes(com.google.protobuf.ByteString value)
Enforces the specified codec profile.
|
VideoStream.H264CodecSettings.Builder |
setRateControlMode(String value)
Specify the `rate_control_mode`.
|
VideoStream.H264CodecSettings.Builder |
setRateControlModeBytes(com.google.protobuf.ByteString value)
Specify the `rate_control_mode`.
|
VideoStream.H264CodecSettings.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
VideoStream.H264CodecSettings.Builder |
setTune(String value)
Enforces the specified codec tune.
|
VideoStream.H264CodecSettings.Builder |
setTuneBytes(com.google.protobuf.ByteString value)
Enforces the specified codec tune.
|
VideoStream.H264CodecSettings.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
VideoStream.H264CodecSettings.Builder |
setVbvFullnessBits(int value)
Initial fullness of the Video Buffering Verifier (VBV) buffer in bits.
|
VideoStream.H264CodecSettings.Builder |
setVbvSizeBits(int value)
Size of the Video Buffering Verifier (VBV) buffer in bits.
|
VideoStream.H264CodecSettings.Builder |
setWidthPixels(int value)
The width of the video in pixels.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<VideoStream.H264CodecSettings.Builder>public VideoStream.H264CodecSettings.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<VideoStream.H264CodecSettings.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<VideoStream.H264CodecSettings.Builder>public VideoStream.H264CodecSettings getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic VideoStream.H264CodecSettings build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic VideoStream.H264CodecSettings buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic VideoStream.H264CodecSettings.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<VideoStream.H264CodecSettings.Builder>public VideoStream.H264CodecSettings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<VideoStream.H264CodecSettings.Builder>public VideoStream.H264CodecSettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<VideoStream.H264CodecSettings.Builder>public VideoStream.H264CodecSettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<VideoStream.H264CodecSettings.Builder>public VideoStream.H264CodecSettings.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VideoStream.H264CodecSettings.Builder>public VideoStream.H264CodecSettings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VideoStream.H264CodecSettings.Builder>public VideoStream.H264CodecSettings.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<VideoStream.H264CodecSettings.Builder>public VideoStream.H264CodecSettings.Builder mergeFrom(VideoStream.H264CodecSettings other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<VideoStream.H264CodecSettings.Builder>public VideoStream.H264CodecSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<VideoStream.H264CodecSettings.Builder>IOExceptionpublic VideoStream.H264CodecSettings.GopModeCase getGopModeCase()
getGopModeCase in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder clearGopMode()
public int getWidthPixels()
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;getWidthPixels in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setWidthPixels(int value)
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;value - The widthPixels to set.public VideoStream.H264CodecSettings.Builder clearWidthPixels()
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;public int getHeightPixels()
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;getHeightPixels in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setHeightPixels(int value)
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;value - The heightPixels to set.public VideoStream.H264CodecSettings.Builder clearHeightPixels()
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;public double getFrameRate()
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](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for more information.
double frame_rate = 3 [(.google.api.field_behavior) = REQUIRED];getFrameRate in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setFrameRate(double value)
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](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for more information.
double frame_rate = 3 [(.google.api.field_behavior) = REQUIRED];value - The frameRate to set.public VideoStream.H264CodecSettings.Builder clearFrameRate()
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](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for more information.
double frame_rate = 3 [(.google.api.field_behavior) = REQUIRED];public int getBitrateBps()
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];getBitrateBps in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setBitrateBps(int value)
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];value - The bitrateBps to set.public VideoStream.H264CodecSettings.Builder clearBitrateBps()
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];public String getPixelFormat()
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;getPixelFormat in interface VideoStream.H264CodecSettingsOrBuilderpublic com.google.protobuf.ByteString getPixelFormatBytes()
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;getPixelFormatBytes in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setPixelFormat(String value)
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;value - The pixelFormat to set.public VideoStream.H264CodecSettings.Builder clearPixelFormat()
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;public VideoStream.H264CodecSettings.Builder setPixelFormatBytes(com.google.protobuf.ByteString value)
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;value - The bytes for pixelFormat to set.public String getRateControlMode()
Specify the `rate_control_mode`. The default is `vbr`. Supported rate control modes: - `vbr` - variable bitrate - `crf` - constant rate factor
string rate_control_mode = 6;getRateControlMode in interface VideoStream.H264CodecSettingsOrBuilderpublic com.google.protobuf.ByteString getRateControlModeBytes()
Specify the `rate_control_mode`. The default is `vbr`. Supported rate control modes: - `vbr` - variable bitrate - `crf` - constant rate factor
string rate_control_mode = 6;getRateControlModeBytes in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setRateControlMode(String value)
Specify the `rate_control_mode`. The default is `vbr`. Supported rate control modes: - `vbr` - variable bitrate - `crf` - constant rate factor
string rate_control_mode = 6;value - The rateControlMode to set.public VideoStream.H264CodecSettings.Builder clearRateControlMode()
Specify the `rate_control_mode`. The default is `vbr`. Supported rate control modes: - `vbr` - variable bitrate - `crf` - constant rate factor
string rate_control_mode = 6;public VideoStream.H264CodecSettings.Builder setRateControlModeBytes(com.google.protobuf.ByteString value)
Specify the `rate_control_mode`. The default is `vbr`. Supported rate control modes: - `vbr` - variable bitrate - `crf` - constant rate factor
string rate_control_mode = 6;value - The bytes for rateControlMode to set.public int getCrfLevel()
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;getCrfLevel in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setCrfLevel(int value)
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;value - The crfLevel to set.public VideoStream.H264CodecSettings.Builder clearCrfLevel()
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;public boolean getAllowOpenGop()
Specifies whether an open Group of Pictures (GOP) structure should be allowed or not. The default is `false`.
bool allow_open_gop = 8;getAllowOpenGop in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setAllowOpenGop(boolean value)
Specifies whether an open Group of Pictures (GOP) structure should be allowed or not. The default is `false`.
bool allow_open_gop = 8;value - The allowOpenGop to set.public VideoStream.H264CodecSettings.Builder clearAllowOpenGop()
Specifies whether an open Group of Pictures (GOP) structure should be allowed or not. The default is `false`.
bool allow_open_gop = 8;public boolean hasGopFrameCount()
Select the GOP size based on the specified frame count. Must be greater than zero.
int32 gop_frame_count = 9;hasGopFrameCount in interface VideoStream.H264CodecSettingsOrBuilderpublic int getGopFrameCount()
Select the GOP size based on the specified frame count. Must be greater than zero.
int32 gop_frame_count = 9;getGopFrameCount in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setGopFrameCount(int value)
Select the GOP size based on the specified frame count. Must be greater than zero.
int32 gop_frame_count = 9;value - The gopFrameCount to set.public VideoStream.H264CodecSettings.Builder clearGopFrameCount()
Select the GOP size based on the specified frame count. Must be greater than zero.
int32 gop_frame_count = 9;public boolean hasGopDuration()
Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](#SegmentSettings), and [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
.google.protobuf.Duration gop_duration = 10;hasGopDuration in interface VideoStream.H264CodecSettingsOrBuilderpublic com.google.protobuf.Duration getGopDuration()
Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](#SegmentSettings), and [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
.google.protobuf.Duration gop_duration = 10;getGopDuration in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setGopDuration(com.google.protobuf.Duration value)
Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](#SegmentSettings), and [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
.google.protobuf.Duration gop_duration = 10;public VideoStream.H264CodecSettings.Builder setGopDuration(com.google.protobuf.Duration.Builder builderForValue)
Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](#SegmentSettings), and [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
.google.protobuf.Duration gop_duration = 10;public VideoStream.H264CodecSettings.Builder mergeGopDuration(com.google.protobuf.Duration value)
Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](#SegmentSettings), and [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
.google.protobuf.Duration gop_duration = 10;public VideoStream.H264CodecSettings.Builder clearGopDuration()
Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](#SegmentSettings), and [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
.google.protobuf.Duration gop_duration = 10;public com.google.protobuf.Duration.Builder getGopDurationBuilder()
Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](#SegmentSettings), and [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
.google.protobuf.Duration gop_duration = 10;public com.google.protobuf.DurationOrBuilder getGopDurationOrBuilder()
Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](#SegmentSettings), and [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
.google.protobuf.Duration gop_duration = 10;getGopDurationOrBuilder in interface VideoStream.H264CodecSettingsOrBuilderpublic boolean getEnableTwoPass()
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;getEnableTwoPass in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setEnableTwoPass(boolean value)
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;value - The enableTwoPass to set.public VideoStream.H264CodecSettings.Builder clearEnableTwoPass()
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;public int getVbvSizeBits()
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;getVbvSizeBits in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setVbvSizeBits(int value)
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;value - The vbvSizeBits to set.public VideoStream.H264CodecSettings.Builder clearVbvSizeBits()
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;public int getVbvFullnessBits()
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;getVbvFullnessBits in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setVbvFullnessBits(int value)
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;value - The vbvFullnessBits to set.public VideoStream.H264CodecSettings.Builder clearVbvFullnessBits()
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;public String getEntropyCoder()
The entropy coder to use. The default is `cabac`. Supported entropy coders: - `cavlc` - `cabac`
string entropy_coder = 14;getEntropyCoder in interface VideoStream.H264CodecSettingsOrBuilderpublic com.google.protobuf.ByteString getEntropyCoderBytes()
The entropy coder to use. The default is `cabac`. Supported entropy coders: - `cavlc` - `cabac`
string entropy_coder = 14;getEntropyCoderBytes in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setEntropyCoder(String value)
The entropy coder to use. The default is `cabac`. Supported entropy coders: - `cavlc` - `cabac`
string entropy_coder = 14;value - The entropyCoder to set.public VideoStream.H264CodecSettings.Builder clearEntropyCoder()
The entropy coder to use. The default is `cabac`. Supported entropy coders: - `cavlc` - `cabac`
string entropy_coder = 14;public VideoStream.H264CodecSettings.Builder setEntropyCoderBytes(com.google.protobuf.ByteString value)
The entropy coder to use. The default is `cabac`. Supported entropy coders: - `cavlc` - `cabac`
string entropy_coder = 14;value - The bytes for entropyCoder to set.public boolean getBPyramid()
Allow B-pyramid for reference frame selection. This may not be supported on all decoders. The default is `false`.
bool b_pyramid = 15;getBPyramid in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setBPyramid(boolean value)
Allow B-pyramid for reference frame selection. This may not be supported on all decoders. The default is `false`.
bool b_pyramid = 15;value - The bPyramid to set.public VideoStream.H264CodecSettings.Builder clearBPyramid()
Allow B-pyramid for reference frame selection. This may not be supported on all decoders. The default is `false`.
bool b_pyramid = 15;public int getBFrameCount()
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 = 16;getBFrameCount in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setBFrameCount(int value)
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 = 16;value - The bFrameCount to set.public VideoStream.H264CodecSettings.Builder clearBFrameCount()
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 = 16;public double getAqStrength()
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 = 17;getAqStrength in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setAqStrength(double value)
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 = 17;value - The aqStrength to set.public VideoStream.H264CodecSettings.Builder clearAqStrength()
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 = 17;public String getProfile()
Enforces the specified codec profile. The following profiles are supported: * `baseline` * `main` * `high` (default) The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message.
string profile = 18;getProfile in interface VideoStream.H264CodecSettingsOrBuilderpublic com.google.protobuf.ByteString getProfileBytes()
Enforces the specified codec profile. The following profiles are supported: * `baseline` * `main` * `high` (default) The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message.
string profile = 18;getProfileBytes in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setProfile(String value)
Enforces the specified codec profile. The following profiles are supported: * `baseline` * `main` * `high` (default) The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message.
string profile = 18;value - The profile to set.public VideoStream.H264CodecSettings.Builder clearProfile()
Enforces the specified codec profile. The following profiles are supported: * `baseline` * `main` * `high` (default) The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message.
string profile = 18;public VideoStream.H264CodecSettings.Builder setProfileBytes(com.google.protobuf.ByteString value)
Enforces the specified codec profile. The following profiles are supported: * `baseline` * `main` * `high` (default) The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message.
string profile = 18;value - The bytes for profile to set.public String getTune()
Enforces the specified codec tune. The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message.
string tune = 19;getTune in interface VideoStream.H264CodecSettingsOrBuilderpublic com.google.protobuf.ByteString getTuneBytes()
Enforces the specified codec tune. The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message.
string tune = 19;getTuneBytes in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setTune(String value)
Enforces the specified codec tune. The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message.
string tune = 19;value - The tune to set.public VideoStream.H264CodecSettings.Builder clearTune()
Enforces the specified codec tune. The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message.
string tune = 19;public VideoStream.H264CodecSettings.Builder setTuneBytes(com.google.protobuf.ByteString value)
Enforces the specified codec tune. The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message.
string tune = 19;value - The bytes for tune to set.public String getPreset()
Enforces the specified codec preset. The default is `veryfast`. The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Preset). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message.
string preset = 20;getPreset in interface VideoStream.H264CodecSettingsOrBuilderpublic com.google.protobuf.ByteString getPresetBytes()
Enforces the specified codec preset. The default is `veryfast`. The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Preset). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message.
string preset = 20;getPresetBytes in interface VideoStream.H264CodecSettingsOrBuilderpublic VideoStream.H264CodecSettings.Builder setPreset(String value)
Enforces the specified codec preset. The default is `veryfast`. The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Preset). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message.
string preset = 20;value - The preset to set.public VideoStream.H264CodecSettings.Builder clearPreset()
Enforces the specified codec preset. The default is `veryfast`. The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Preset). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message.
string preset = 20;public VideoStream.H264CodecSettings.Builder setPresetBytes(com.google.protobuf.ByteString value)
Enforces the specified codec preset. The default is `veryfast`. The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Preset). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message.
string preset = 20;value - The bytes for preset to set.public final VideoStream.H264CodecSettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VideoStream.H264CodecSettings.Builder>public final VideoStream.H264CodecSettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VideoStream.H264CodecSettings.Builder>Copyright © 2022 Google LLC. All rights reserved.