Class VideoStream.H264CodecSettings (1.8.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.H264CodecSettingsextendsGeneratedMessageV3implementsVideoStream.H264CodecSettingsOrBuilderH264 codec settings.
Protobuf type google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > VideoStream.H264CodecSettingsImplements
VideoStream.H264CodecSettingsOrBuilderInherited Members
Static Fields
ALLOW_OPEN_GOP_FIELD_NUMBER
publicstaticfinalintALLOW_OPEN_GOP_FIELD_NUMBERAQ_STRENGTH_FIELD_NUMBER
publicstaticfinalintAQ_STRENGTH_FIELD_NUMBERBITRATE_BPS_FIELD_NUMBER
publicstaticfinalintBITRATE_BPS_FIELD_NUMBERB_FRAME_COUNT_FIELD_NUMBER
publicstaticfinalintB_FRAME_COUNT_FIELD_NUMBERB_PYRAMID_FIELD_NUMBER
publicstaticfinalintB_PYRAMID_FIELD_NUMBERCRF_LEVEL_FIELD_NUMBER
publicstaticfinalintCRF_LEVEL_FIELD_NUMBERENABLE_TWO_PASS_FIELD_NUMBER
publicstaticfinalintENABLE_TWO_PASS_FIELD_NUMBERENTROPY_CODER_FIELD_NUMBER
publicstaticfinalintENTROPY_CODER_FIELD_NUMBERFRAME_RATE_FIELD_NUMBER
publicstaticfinalintFRAME_RATE_FIELD_NUMBERGOP_DURATION_FIELD_NUMBER
publicstaticfinalintGOP_DURATION_FIELD_NUMBERGOP_FRAME_COUNT_FIELD_NUMBER
publicstaticfinalintGOP_FRAME_COUNT_FIELD_NUMBERHEIGHT_PIXELS_FIELD_NUMBER
publicstaticfinalintHEIGHT_PIXELS_FIELD_NUMBERPIXEL_FORMAT_FIELD_NUMBER
publicstaticfinalintPIXEL_FORMAT_FIELD_NUMBERPRESET_FIELD_NUMBER
publicstaticfinalintPRESET_FIELD_NUMBERPROFILE_FIELD_NUMBER
publicstaticfinalintPROFILE_FIELD_NUMBERRATE_CONTROL_MODE_FIELD_NUMBER
publicstaticfinalintRATE_CONTROL_MODE_FIELD_NUMBERTUNE_FIELD_NUMBER
publicstaticfinalintTUNE_FIELD_NUMBERVBV_FULLNESS_BITS_FIELD_NUMBER
publicstaticfinalintVBV_FULLNESS_BITS_FIELD_NUMBERVBV_SIZE_BITS_FIELD_NUMBER
publicstaticfinalintVBV_SIZE_BITS_FIELD_NUMBERWIDTH_PIXELS_FIELD_NUMBER
publicstaticfinalintWIDTH_PIXELS_FIELD_NUMBERStatic Methods
getDefaultInstance()
publicstaticVideoStream.H264CodecSettingsgetDefaultInstance()getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()newBuilder()
publicstaticVideoStream.H264CodecSettings.BuildernewBuilder()newBuilder(VideoStream.H264CodecSettings prototype)
publicstaticVideoStream.H264CodecSettings.BuildernewBuilder(VideoStream.H264CodecSettingsprototype)parseDelimitedFrom(InputStream input)
publicstaticVideoStream.H264CodecSettingsparseDelimitedFrom(InputStreaminput)parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticVideoStream.H264CodecSettingsparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(byte[] data)
publicstaticVideoStream.H264CodecSettingsparseFrom(byte[]data)data
byte[]parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticVideoStream.H264CodecSettingsparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)data
byte[]parseFrom(ByteString data)
publicstaticVideoStream.H264CodecSettingsparseFrom(ByteStringdata)parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticVideoStream.H264CodecSettingsparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)parseFrom(CodedInputStream input)
publicstaticVideoStream.H264CodecSettingsparseFrom(CodedInputStreaminput)parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticVideoStream.H264CodecSettingsparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(InputStream input)
publicstaticVideoStream.H264CodecSettingsparseFrom(InputStreaminput)parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticVideoStream.H264CodecSettingsparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(ByteBuffer data)
publicstaticVideoStream.H264CodecSettingsparseFrom(ByteBufferdata)parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticVideoStream.H264CodecSettingsparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)parser()
publicstaticParser<VideoStream.H264CodecSettings>parser()Methods
equals(Object obj)
publicbooleanequals(Objectobj)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;
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 = 17;
double
The aqStrength.
getBFrameCount()
publicintgetBFrameCount() The number of consecutive B-frames. Must be greater than or equal to
zero. Must be less than VideoStream.gop_frame_count if set. The default
is 0.
int32 b_frame_count = 16;
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 = 15;
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];
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.
int32 crf_level = 7;
int
The crfLevel.
getDefaultInstanceForType()
publicVideoStream.H264CodecSettingsgetDefaultInstanceForType()getEnableTwoPass()
publicbooleangetEnableTwoPass() Use two-pass encoding strategy to achieve better video quality.
VideoStream.rate_control_mode must be vbr. The default is false.
bool enable_two_pass = 11;
boolean
The enableTwoPass.
getEntropyCoder()
publicStringgetEntropyCoder() The entropy coder to use. The default is cabac.
Supported entropy coders:
cavlccabac
string entropy_coder = 14;
String
The entropyCoder.
getEntropyCoderBytes()
publicByteStringgetEntropyCoderBytes() The entropy coder to use. The default is cabac.
Supported entropy coders:
cavlccabac
string entropy_coder = 14;
ByteString
The bytes for entropyCoder.
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];
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 = 10;
Duration
The gopDuration.
getGopDurationOrBuilder()
publicDurationOrBuildergetGopDurationOrBuilder() Select the GOP size based on the specified duration. The default is
3s. Note that gopDuration must be less than or equal to
segmentDuration, and
segmentDuration must be divisible by
gopDuration.
.google.protobuf.Duration gop_duration = 10;
getGopFrameCount()
publicintgetGopFrameCount()Select the GOP size based on the specified frame count. Must be greater than zero.
int32 gop_frame_count = 9;
int
The gopFrameCount.
getGopModeCase()
publicVideoStream.H264CodecSettings.GopModeCasegetGopModeCase()getHeightPixels()
publicintgetHeightPixels()The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used. 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;
int
The heightPixels.
getParserForType()
publicParser<VideoStream.H264CodecSettings>getParserForType()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;
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;
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 H264CodecSettings
message.
string preset = 20;
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 H264CodecSettings
message.
string preset = 20;
ByteString
The bytes for preset.
getProfile()
publicStringgetProfile()Enforces the specified codec profile. The following profiles are supported:
baselinemainhigh(default) The available options are FFmpeg-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in theH264CodecSettingsmessage.
string profile = 18;
String
The profile.
getProfileBytes()
publicByteStringgetProfileBytes()Enforces the specified codec profile. The following profiles are supported:
baselinemainhigh(default) The available options are FFmpeg-compatible. Note that certain values for this field may cause the transcoder to override other fields you set in theH264CodecSettingsmessage.
string profile = 18;
ByteString
The bytes for profile.
getRateControlMode()
publicStringgetRateControlMode() Specify the rate_control_mode. The default is vbr.
Supported rate control modes:
vbr- variable bitratecrf- constant rate factor
string rate_control_mode = 6;
String
The rateControlMode.
getRateControlModeBytes()
publicByteStringgetRateControlModeBytes() Specify the rate_control_mode. The default is vbr.
Supported rate control modes:
vbr- variable bitratecrf- constant rate factor
string rate_control_mode = 6;
ByteString
The bytes for rateControlMode.
getSerializedSize()
publicintgetSerializedSize()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 H264CodecSettings
message.
string tune = 19;
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 H264CodecSettings
message.
string tune = 19;
ByteString
The bytes for tune.
getUnknownFields()
publicfinalUnknownFieldSetgetUnknownFields()getVbvFullnessBits()
publicintgetVbvFullnessBits() Initial fullness of the Video Buffering Verifier (VBV) buffer in bits.
Must be greater than zero. The default is equal to 90% of
VideoStream.vbv_size_bits.
int32 vbv_fullness_bits = 13;
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;
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;
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;
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;
boolean
Whether the gopFrameCount field is set.
hashCode()
publicinthashCode()internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()isInitialized()
publicfinalbooleanisInitialized()newBuilderForType()
publicVideoStream.H264CodecSettings.BuildernewBuilderForType()newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedVideoStream.H264CodecSettings.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)toBuilder()
publicVideoStream.H264CodecSettings.BuildertoBuilder()writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)