Class VideoStream (0.4.3)
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
publicfinalclass VideoStreamextendsGeneratedMessageV3implementsVideoStreamOrBuilderVideo stream resource.
Protobuf type google.cloud.video.transcoder.v1beta1.VideoStream
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > VideoStreamImplements
VideoStreamOrBuilderInherited Members
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_NUMBERCODEC_FIELD_NUMBER
publicstaticfinalintCODEC_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_NUMBERMethods
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 = 14;
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 = 21;
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 = 19;
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 = 18;
The bPyramid.
getBitrateBps()
publicintgetBitrateBps()Required. The video bitrate in bits per second. The minimum value is 1,000. The maximum value for H264/H265 is 800,000,000. The maximum value for VP9 is 480,000,000.
int32 bitrate_bps = 8 [(.google.api.field_behavior) = REQUIRED];
The bitrateBps.
getCodec()
publicStringgetCodec()Codec type. The following codecs are supported:
h264(default)h265vp9
string codec = 1;
The codec.
getCodecBytes()
publicByteStringgetCodecBytes()Codec type. The following codecs are supported:
h264(default)h265vp9
string codec = 1;
The bytes for codec.
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 = 11;
The crfLevel.
getDefaultInstance()
publicstaticVideoStreamgetDefaultInstance()getDefaultInstanceForType()
publicVideoStreamgetDefaultInstanceForType()getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()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 = 10;
The enableTwoPass.
getEntropyCoder()
publicStringgetEntropyCoder() The entropy coder to use. The default is "cabac".
Supported entropy coders:
- 'cavlc'
- 'cabac'
string entropy_coder = 17;
The entropyCoder.
getEntropyCoderBytes()
publicByteStringgetEntropyCoderBytes() The entropy coder to use. The default is "cabac".
Supported entropy coders:
- 'cavlc'
- 'cabac'
string entropy_coder = 17;
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 Calculate frame rate for more information.
double frame_rate = 20 [(.google.api.field_behavior) = REQUIRED];
The frameRate.
getGopDuration()
publicDurationgetGopDuration() Select the GOP size based on the specified duration. The default is
"3s". Note that gopDuration must be less than or equal to
segmentDuration, and
segmentDuration must be divisible by gopDuration.
.google.protobuf.Duration gop_duration = 16;
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 = 16;
getGopFrameCount()
publicintgetGopFrameCount()Select the GOP size based on the specified frame count. Must be greater than zero.
int32 gop_frame_count = 15;
The gopFrameCount.
getGopModeCase()
publicVideoStream.GopModeCasegetGopModeCase()getHeightPixels()
publicintgetHeightPixels()The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used.
int32 height_pixels = 5;
The heightPixels.
getParserForType()
publicParser<VideoStream>getParserForType()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 = 7;
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 = 7;
The bytes for pixelFormat.
getPreset()
publicStringgetPreset() Enforces the specified codec preset. The default is veryfast. The
available options are
<a href="https://trac.ffmpeg.org/wiki/Encode/H.264#Preset"
class="external">FFmpeg-compatible</a>. Note that certain values for this
field may cause the transcoder to override other fields you set in the
VideoStream message.
string preset = 4;
The preset.
getPresetBytes()
publicByteStringgetPresetBytes() Enforces the specified codec preset. The default is veryfast. The
available options are
<a href="https://trac.ffmpeg.org/wiki/Encode/H.264#Preset"
class="external">FFmpeg-compatible</a>. Note that certain values for this
field may cause the transcoder to override other fields you set in the
VideoStream message.
string preset = 4;
The bytes for preset.
getProfile()
publicStringgetProfile()Enforces the specified codec profile. The following profiles are supported:
baselinemainhigh(default) The available options are <a href="https://trac.ffmpeg.org/wiki/Encode/H.264#Profile" class="external">FFmpeg-compatible</a>. Note that certain values for this field may cause the transcoder to override other fields you set in theVideoStreammessage.
string profile = 2;
The profile.
getProfileBytes()
publicByteStringgetProfileBytes()Enforces the specified codec profile. The following profiles are supported:
baselinemainhigh(default) The available options are <a href="https://trac.ffmpeg.org/wiki/Encode/H.264#Profile" class="external">FFmpeg-compatible</a>. Note that certain values for this field may cause the transcoder to override other fields you set in theVideoStreammessage.
string profile = 2;
The bytes for profile.
getRateControlMode()
publicStringgetRateControlMode() Specify the rate_control_mode. The default is "vbr".
Supported rate control modes:
- 'vbr' - variable bitrate
- 'crf' - constant rate factor
string rate_control_mode = 9;
The rateControlMode.
getRateControlModeBytes()
publicByteStringgetRateControlModeBytes() Specify the rate_control_mode. The default is "vbr".
Supported rate control modes:
- 'vbr' - variable bitrate
- 'crf' - constant rate factor
string rate_control_mode = 9;
The bytes for rateControlMode.
getSerializedSize()
publicintgetSerializedSize()getTune()
publicStringgetTune() Enforces the specified codec tune. The available options are
<a href="https://trac.ffmpeg.org/wiki/Encode/H.264#Tune"
class="external">FFmpeg-compatible</a>. Note that certain values for this
field may cause the transcoder to override other fields you set in the
VideoStream message.
string tune = 3;
The tune.
getTuneBytes()
publicByteStringgetTuneBytes() Enforces the specified codec tune. The available options are
<a href="https://trac.ffmpeg.org/wiki/Encode/H.264#Tune"
class="external">FFmpeg-compatible</a>. Note that certain values for this
field may cause the transcoder to override other fields you set in the
VideoStream message.
string tune = 3;
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;
The vbvFullnessBits.
getVbvSizeBits()
publicintgetVbvSizeBits() Size of the Video Buffering Verifier (VBV) buffer in bits. Must be greater
than zero. The default is equal to VideoStream.bitrate_bps.
int32 vbv_size_bits = 12;
The vbvSizeBits.
getWidthPixels()
publicintgetWidthPixels()The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used.
int32 width_pixels = 6;
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 = 16;
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 = 15;
Whether the gopFrameCount field is set.
hashCode()
publicinthashCode()internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()isInitialized()
publicfinalbooleanisInitialized()newBuilder()
publicstaticVideoStream.BuildernewBuilder()newBuilder(VideoStream prototype)
publicstaticVideoStream.BuildernewBuilder(VideoStreamprototype)newBuilderForType()
publicVideoStream.BuildernewBuilderForType()newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedVideoStream.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)parseDelimitedFrom(InputStream input)
publicstaticVideoStreamparseDelimitedFrom(InputStreaminput)parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticVideoStreamparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(byte[] data)
publicstaticVideoStreamparseFrom(byte[]data)byte[]parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticVideoStreamparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)byte[]parseFrom(ByteString data)
publicstaticVideoStreamparseFrom(ByteStringdata)parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticVideoStreamparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)parseFrom(CodedInputStream input)
publicstaticVideoStreamparseFrom(CodedInputStreaminput)parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticVideoStreamparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(InputStream input)
publicstaticVideoStreamparseFrom(InputStreaminput)parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticVideoStreamparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(ByteBuffer data)
publicstaticVideoStreamparseFrom(ByteBufferdata)parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticVideoStreamparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)parser()
publicstaticParser<VideoStream>parser()toBuilder()
publicVideoStream.BuildertoBuilder()writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)