videoconvert

Convert video frames between a great variety of video formats.

Example launch line

 gst-launch-1.0 -v videotestsrc ! video/x-raw,format=YUY2 ! videoconvert ! autovideosink

This will output a test video (generated in YUY2 format) in a video window. If the video sink selected does not support YUY2 videoconvert will automatically convert the video to a format understood by the video sink.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseTransform
                    ╰──GstVideoFilter
                        ╰──videoconvert

Factory details

Authors: – GStreamer maintainers

Classification:Filter/Converter/Video

Rank – none

Plugin – gstvideoconvert

Package – GStreamer Base Plug-ins git

Pad Templates

sink

video/x-raw:
         format: { I420, YV12, YUY2, UYVY, AYUV, VUYA, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, Y210, Y410, 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, BGR10A2_LE, RGB10A2_LE, 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, NV12_10LE40 }
          width: [ 1, 2147483647 ]
         height: [ 1, 2147483647 ]
      framerate: [ 0/1, 2147483647/1 ]

video/x-raw(ANY):
         format: { I420, YV12, YUY2, UYVY, AYUV, VUYA, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, Y210, Y410, 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, BGR10A2_LE, RGB10A2_LE, 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, NV12_10LE40 }
          width: [ 1, 2147483647 ]
         height: [ 1, 2147483647 ]
      framerate: [ 0/1, 2147483647/1 ]

Presencealways

Directionsink


src

video/x-raw:
         format: { I420, YV12, YUY2, UYVY, AYUV, VUYA, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, Y210, Y410, 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, BGR10A2_LE, RGB10A2_LE, 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, NV12_10LE40 }
          width: [ 1, 2147483647 ]
         height: [ 1, 2147483647 ]
      framerate: [ 0/1, 2147483647/1 ]

video/x-raw(ANY):
         format: { I420, YV12, YUY2, UYVY, AYUV, VUYA, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, Y210, Y410, 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, BGR10A2_LE, RGB10A2_LE, 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, NV12_10LE40 }
          width: [ 1, 2147483647 ]
         height: [ 1, 2147483647 ]
      framerate: [ 0/1, 2147483647/1 ]

Presencealways

Directionsrc


Properties

alpha-mode

“alpha-mode” Video-alpha-mode

Alpha Mode to use

Flags : Read / Write

Default value : copy (0)


alpha-value

“alpha-value” gdouble

Alpha Value to use

Flags : Read / Write

Default value : 1


chroma-mode

“chroma-mode” Video-chroma-mode

Chroma Resampling Mode

Flags : Read / Write

Default value : full (0)


chroma-resampler

“chroma-resampler” Video-resampler-method

Chroma resampler method

Flags : Read / Write

Default value : linear (1)


dither

“dither” Video-dither-method

Apply dithering while converting

Flags : Read / Write

Default value : bayer (4)


dither-quantization

“dither-quantization” guint

Quantizer to use

Flags : Read / Write

Default value : 1


gamma-mode

“gamma-mode” Video-gamma-mode

Gamma Conversion Mode

Flags : Read / Write

Default value : none (0)


matrix-mode

“matrix-mode” Video-matrix-mode

Matrix Conversion Mode

Flags : Read / Write

Default value : full (0)


n-threads

“n-threads” guint

Maximum number of threads to use

Flags : Read / Write

Default value : 1


name

“name” gchararray

The name of the object

Flags : Read / Write / Construct

Default value : NULL


parent

“parent” GstObject *

The parent of the object

Flags : Read / Write


primaries-mode

“primaries-mode” Video-primaries-mode

Primaries Conversion Mode

Flags : Read / Write

Default value : none (0)


qos

“qos” gboolean

Handle Quality-of-Service events

Flags : Read / Write

Default value : true


Named constants

Video-alpha-mode

Members

copy (0) – GST_VIDEO_ALPHA_MODE_COPY
set (1) – GST_VIDEO_ALPHA_MODE_SET
mult (2) – GST_VIDEO_ALPHA_MODE_MULT

Video-chroma-mode

Members

full (0) – GST_VIDEO_CHROMA_MODE_FULL
upsample-only (1) – GST_VIDEO_CHROMA_MODE_UPSAMPLE_ONLY
downsample-only (2) – GST_VIDEO_CHROMA_MODE_DOWNSAMPLE_ONLY
none (3) – GST_VIDEO_CHROMA_MODE_NONE

Video-dither-method

Members

none (0) – GST_VIDEO_DITHER_NONE
verterr (1) – GST_VIDEO_DITHER_VERTERR
floyd-steinberg (2) – GST_VIDEO_DITHER_FLOYD_STEINBERG
sierra-lite (3) – GST_VIDEO_DITHER_SIERRA_LITE
bayer (4) – GST_VIDEO_DITHER_BAYER

Video-gamma-mode

Members

none (0) – GST_VIDEO_GAMMA_MODE_NONE
remap (1) – GST_VIDEO_GAMMA_MODE_REMAP

Video-matrix-mode

Members

full (0) – GST_VIDEO_MATRIX_MODE_FULL
input-only (1) – GST_VIDEO_MATRIX_MODE_INPUT_ONLY
output-only (2) – GST_VIDEO_MATRIX_MODE_OUTPUT_ONLY
none (3) – GST_VIDEO_MATRIX_MODE_NONE

Video-primaries-mode

Members

none (0) – GST_VIDEO_PRIMARIES_MODE_NONE
merge-only (1) – GST_VIDEO_PRIMARIES_MODE_MERGE_ONLY
fast (2) – GST_VIDEO_PRIMARIES_MODE_FAST

Video-resampler-method

Members

nearest (0) – GST_VIDEO_RESAMPLER_METHOD_NEAREST
linear (1) – GST_VIDEO_RESAMPLER_METHOD_LINEAR
cubic (2) – GST_VIDEO_RESAMPLER_METHOD_CUBIC
sinc (3) – GST_VIDEO_RESAMPLER_METHOD_SINC
lanczos (4) – GST_VIDEO_RESAMPLER_METHOD_LANCZOS

The results of the search are