Constants

Details

GstVideo.BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META = 'GstBufferPoolOptionVideoAffineTransformation'
GstVideo.BUFFER_POOL_OPTION_VIDEO_ALIGNMENT = 'GstBufferPoolOptionVideoAlignment'

A bufferpool option to enable extra padding. When a bufferpool supports this option, GstVideo.buffer_pool_config_set_video_alignment() can be called.

When this option is enabled on the bufferpool, GstVideo.BUFFER_POOL_OPTION_VIDEO_META should also be enabled.

GstVideo.BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META = 'GstBufferPoolOptionVideoGLTextureUploadMeta'

An option that can be activated on a bufferpool to request gl texture upload meta on buffers from the pool.

When this option is enabled on the bufferpool, GstVideo.BUFFER_POOL_OPTION_VIDEO_META should also be enabled.

New in version 1.2.2.

GstVideo.BUFFER_POOL_OPTION_VIDEO_META = 'GstBufferPoolOptionVideoMeta'

An option that can be activated on bufferpool to request video metadata on buffers from the pool.

GstVideo.CAPS_FEATURE_META_GST_VIDEO_AFFINE_TRANSFORMATION_META = 'meta:GstVideoAffineTransformation'
GstVideo.CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META = 'meta:GstVideoGLTextureUploadMeta'
GstVideo.CAPS_FEATURE_META_GST_VIDEO_META = 'meta:GstVideoMeta'
GstVideo.CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION = 'meta:GstVideoOverlayComposition'
GstVideo.META_TAG_VIDEO_COLORSPACE_STR = 'colorspace'

This metadata stays relevant as long as video colorspace is unchanged.

New in version 1.2.

GstVideo.META_TAG_VIDEO_ORIENTATION_STR = 'orientation'

This metadata stays relevant as long as video orientation is unchanged.

New in version 1.2.

GstVideo.META_TAG_VIDEO_SIZE_STR = 'size'

This metadata stays relevant as long as video size is unchanged.

New in version 1.2.

GstVideo.META_TAG_VIDEO_STR = 'video'

This metadata is relevant for video streams.

New in version 1.2.

GstVideo.VIDEO_COLORIMETRY_BT2020 = 'bt2020'
GstVideo.VIDEO_COLORIMETRY_BT601 = 'bt601'
GstVideo.VIDEO_COLORIMETRY_BT709 = 'bt709'
GstVideo.VIDEO_COLORIMETRY_SMPTE240M = 'smpte240m'
GstVideo.VIDEO_COLORIMETRY_SRGB = 'sRGB'
GstVideo.VIDEO_COMP_A = 3
GstVideo.VIDEO_COMP_B = 2
GstVideo.VIDEO_COMP_G = 1
GstVideo.VIDEO_COMP_INDEX = 0
GstVideo.VIDEO_COMP_PALETTE = 1
GstVideo.VIDEO_COMP_R = 0
GstVideo.VIDEO_COMP_U = 1
GstVideo.VIDEO_COMP_V = 2
GstVideo.VIDEO_COMP_Y = 0
GstVideo.VIDEO_CONVERTER_OPT_ALPHA_MODE = 'GstVideoConverter.alpha-mode'

#GST_TYPE_VIDEO_ALPHA_MODE, the alpha mode to use. Default is GstVideo.VideoAlphaMode.COPY.

GstVideo.VIDEO_CONVERTER_OPT_ALPHA_VALUE = 'GstVideoConverter.alpha-value'

GObject.TYPE_DOUBLE, the alpha color value to use. Default to 1.0

GstVideo.VIDEO_CONVERTER_OPT_BORDER_ARGB = 'GstVideoConverter.border-argb'

GObject.TYPE_UINT, the border color to use if GstVideo.VIDEO_CONVERTER_OPT_FILL_BORDER is set to True. The color is in ARGB format. Default 0xff000000

GstVideo.VIDEO_CONVERTER_OPT_CHROMA_MODE = 'GstVideoConverter.chroma-mode'

#GST_TYPE_VIDEO_CHROMA_MODE, set the chroma resample mode subsampled formats. Default is GstVideo.VideoChromaMode.FULL.

GstVideo.VIDEO_CONVERTER_OPT_CHROMA_RESAMPLER_METHOD = 'GstVideoConverter.chroma-resampler-method'

#GST_TYPE_RESAMPLER_METHOD, The resampler method to use for chroma resampling. Other options for the resampler can be used, see the #GstResampler. Default is #GST_RESAMPLER_METHOD_LINEAR

GstVideo.VIDEO_CONVERTER_OPT_DEST_HEIGHT = 'GstVideoConverter.dest-height'

GObject.TYPE_INT, height in the destination frame, default destination height

GstVideo.VIDEO_CONVERTER_OPT_DEST_WIDTH = 'GstVideoConverter.dest-width'

GObject.TYPE_INT, width in the destination frame, default destination width

GstVideo.VIDEO_CONVERTER_OPT_DEST_X = 'GstVideoConverter.dest-x'

GObject.TYPE_INT, x position in the destination frame, default 0

GstVideo.VIDEO_CONVERTER_OPT_DEST_Y = 'GstVideoConverter.dest-y'

GObject.TYPE_INT, y position in the destination frame, default 0

GstVideo.VIDEO_CONVERTER_OPT_DITHER_METHOD = 'GstVideoConverter.dither-method'

#GST_TYPE_VIDEO_DITHER_METHOD, The dither method to use when changing bit depth. Default is GstVideo.VideoDitherMethod.BAYER.

GstVideo.VIDEO_CONVERTER_OPT_DITHER_QUANTIZATION = 'GstVideoConverter.dither-quantization'

GObject.TYPE_UINT, The quantization amount to dither to. Components will be quantized to multiples of this value. Default is 1

GstVideo.VIDEO_CONVERTER_OPT_FILL_BORDER = 'GstVideoConverter.fill-border'

GObject.TYPE_BOOLEAN, if the destination rectangle does not fill the complete destination image, render a border with GstVideo.VIDEO_CONVERTER_OPT_BORDER_ARGB. Otherwise the unusded pixels in the destination are untouched. Default True.

GstVideo.VIDEO_CONVERTER_OPT_GAMMA_MODE = 'GstVideoConverter.gamma-mode'

#GST_TYPE_VIDEO_GAMMA_MODE, set the gamma mode. Default is GstVideo.VideoGammaMode.NONE.

GstVideo.VIDEO_CONVERTER_OPT_MATRIX_MODE = 'GstVideoConverter.matrix-mode'

#GST_TYPE_VIDEO_MATRIX_MODE, set the color matrix conversion mode for converting between Y’PbPr and non-linear RGB (R’G’B’). Default is GstVideo.VideoMatrixMode.FULL.

GstVideo.VIDEO_CONVERTER_OPT_PRIMARIES_MODE = 'GstVideoConverter.primaries-mode'

#GST_TYPE_VIDEO_PRIMARIES_MODE, set the primaries conversion mode. Default is GstVideo.VideoPrimariesMode.NONE.

GstVideo.VIDEO_CONVERTER_OPT_RESAMPLER_METHOD = 'GstVideoConverter.resampler-method'

#GST_TYPE_RESAMPLER_METHOD, The resampler method to use for resampling. Other options for the resampler can be used, see the #GstResampler. Default is #GST_RESAMPLER_METHOD_CUBIC

GstVideo.VIDEO_CONVERTER_OPT_RESAMPLER_TAPS = 'GstVideoConverter.resampler-taps'

GObject.TYPE_UINT, The number of taps for the resampler. Default is 0: let the resampler choose a good value.

GstVideo.VIDEO_CONVERTER_OPT_SRC_HEIGHT = 'GstVideoConverter.src-height'

GObject.TYPE_INT, source height to convert, default source height

GstVideo.VIDEO_CONVERTER_OPT_SRC_WIDTH = 'GstVideoConverter.src-width'

GObject.TYPE_INT, source width to convert, default source width

GstVideo.VIDEO_CONVERTER_OPT_SRC_X = 'GstVideoConverter.src-x'

GObject.TYPE_INT, source x position to start conversion, default 0

GstVideo.VIDEO_CONVERTER_OPT_SRC_Y = 'GstVideoConverter.src-y'

GObject.TYPE_INT, source y position to start conversion, default 0

GstVideo.VIDEO_CONVERTER_OPT_THREADS = 'GstVideoConverter.threads'

GObject.TYPE_UINT, maximum number of threads to use. Default 1, 0 for the number of cores.

GstVideo.VIDEO_DECODER_MAX_ERRORS = 10

Default maximum number of errors tolerated before signaling error.

GstVideo.VIDEO_DECODER_SINK_NAME = 'sink'

The name of the templates for the sink pad.

GstVideo.VIDEO_DECODER_SRC_NAME = 'src'

The name of the templates for the source pad.

GstVideo.VIDEO_ENCODER_SINK_NAME = 'sink'

The name of the templates for the sink pad.

GstVideo.VIDEO_ENCODER_SRC_NAME = 'src'

The name of the templates for the source pad.

GstVideo.VIDEO_FORMATS_ALL = '{ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, NV12, NV21, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10BE, I420_10LE, I422_10BE, I422_10LE, Y444_10BE, Y444_10LE, GBR, GBR_10BE, GBR_10LE, NV16, NV24, NV12_64Z32, A420_10BE, A420_10LE, A422_10BE, A422_10LE, A444_10BE, A444_10LE, NV61, P010_10BE, P010_10LE, IYU2, VYUY, GBRA, GBRA_10BE, GBRA_10LE, GBR_12BE, GBR_12LE, GBRA_12BE, GBRA_12LE, I420_12BE, I420_12LE, I422_12BE, I422_12LE, Y444_12BE, Y444_12LE, GRAY10_LE32, NV12_10LE32, NV16_10LE32 }'
GstVideo.VIDEO_FPS_RANGE = '(fraction) [ 0, max ]'
GstVideo.VIDEO_MAX_COMPONENTS = 4
GstVideo.VIDEO_MAX_PLANES = 4
GstVideo.VIDEO_OVERLAY_COMPOSITION_BLEND_FORMATS = '{ BGRx, RGBx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, I420, YV12, AYUV, YUY2, UYVY, v308, Y41B, Y42B, Y444, NV12, NV21, A420, YUV9, YVU9, IYU1, GRAY8 }'

Video formats supported by GstVideo.VideoOverlayComposition.blend(), for use in overlay elements’ pad template caps.

New in version 1.2.

GstVideo.VIDEO_RESAMPLER_OPT_CUBIC_B = 'GstVideoResampler.cubic-b'

GObject.TYPE_DOUBLE, B parameter of the cubic filter. The B parameter controls the bluriness. Values between 0.0 and 2.0 are accepted. 1/3 is the default.

Below are some values of popular filters: B C Hermite 0.0 0.0 Spline 1.0 0.0 Catmull-Rom 0.0 1/2 Mitchell 1/3 1/3 Robidoux 0.3782 0.3109 Robidoux Sharp 0.2620 0.3690 Robidoux Soft 0.6796 0.1602

GstVideo.VIDEO_RESAMPLER_OPT_CUBIC_C = 'GstVideoResampler.cubic-c'

GObject.TYPE_DOUBLE, C parameter of the cubic filter. The C parameter controls the Keys alpha value. Values between 0.0 and 2.0 are accepted. 1/3 is the default.

See GstVideo.VIDEO_RESAMPLER_OPT_CUBIC_B for some more common values

GstVideo.VIDEO_RESAMPLER_OPT_ENVELOPE = 'GstVideoResampler.envelope'

GObject.TYPE_DOUBLE, specifies the size of filter envelope for GstVideo.VideoResamplerMethod.LANCZOS. values are clamped between 1.0 and 5.0. 2.0 is the default.

GstVideo.VIDEO_RESAMPLER_OPT_MAX_TAPS = 'GstVideoResampler.max-taps'

GObject.TYPE_INT, limits the maximum number of taps to use. 16 is the default.

GstVideo.VIDEO_RESAMPLER_OPT_SHARPEN = 'GstVideoResampler.sharpen'

GObject.TYPE_DOUBLE, specifies sharpening of the filter for GstVideo.VideoResamplerMethod.LANCZOS. values are clamped between 0.0 and 1.0. 0.0 is the default.

GstVideo.VIDEO_RESAMPLER_OPT_SHARPNESS = 'GstVideoResampler.sharpness'

GObject.TYPE_DOUBLE, specifies sharpness of the filter for GstVideo.VideoResamplerMethod.LANCZOS. values are clamped between 0.5 and 1.5. 1.0 is the default.

GstVideo.VIDEO_SCALER_OPT_DITHER_METHOD = 'GstVideoScaler.dither-method'

#GST_TYPE_VIDEO_DITHER_METHOD, The dither method to use for propagating quatization errors.

GstVideo.VIDEO_SIZE_RANGE = '(int) [ 1, max ]'
GstVideo.VIDEO_TILE_TYPE_MASK = 65535
GstVideo.VIDEO_TILE_TYPE_SHIFT = 16
GstVideo.VIDEO_TILE_X_TILES_MASK = 65535
GstVideo.VIDEO_TILE_Y_TILES_SHIFT = 16