videoconvert

videoconvert

Synopsis

struct              GstVideoConvert;

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GstObject
               +----GstElement
                     +----GstBaseTransform
                           +----GstVideoFilter
                                 +----GstVideoConvert

Properties

  "dither"                   GstVideoDitherMethod  : Read / Write
  "alpha-mode"               GstVideoAlphaMode     : Read / Write
  "alpha-value"              gdouble               : Read / Write
  "chroma-mode"              GstVideoChromaMode    : Read / Write
  "chroma-resampler"         GstVideoResamplerMethod  : Read / Write
  "dither-quantization"      guint                 : Read / Write
  "gamma-mode"               GstVideoGammaMode     : Read / Write
  "matrix-mode"              GstVideoMatrixMode    : Read / Write
  "primaries-mode"           GstVideoPrimariesMode  : Read / Write

Description

Convert video frames between a great variety of video formats.

Example launch line

1
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.

Synopsis

Element Information

plugin

videoconvert

author

GStreamer maintainers <gstreamer-devel@lists.freedesktop.org>

class

Filter/Converter/Video

Element Pads

name

sink

direction

sink

presence

always

details

video/x-raw, format=(string){ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, NV12, NV21, NV16, NV61, NV24, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10LE, I420_10BE, I422_10LE, I422_10BE, Y444_10LE, Y444_10BE, GBR, GBR_10LE, GBR_10BE, NV12_64Z32, A420_10LE, A420_10BE, A422_10LE, A422_10BE, A444_10LE, A444_10BE }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

video/x-raw(ANY), format=(string){ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, NV12, NV21, NV16, NV61, NV24, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10LE, I420_10BE, I422_10LE, I422_10BE, Y444_10LE, Y444_10BE, GBR, GBR_10LE, GBR_10BE, NV12_64Z32, A420_10LE, A420_10BE, A422_10LE, A422_10BE, A444_10LE, A444_10BE }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

name

src

direction

source

presence

always

details

video/x-raw, format=(string){ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, NV12, NV21, NV16, NV61, NV24, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10LE, I420_10BE, I422_10LE, I422_10BE, Y444_10LE, Y444_10BE, GBR, GBR_10LE, GBR_10BE, NV12_64Z32, A420_10LE, A420_10BE, A422_10LE, A422_10BE, A444_10LE, A444_10BE }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

video/x-raw(ANY), format=(string){ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, NV12, NV21, NV16, NV61, NV24, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10LE, I420_10BE, I422_10LE, I422_10BE, Y444_10LE, Y444_10BE, GBR, GBR_10LE, GBR_10BE, NV12_64Z32, A420_10LE, A420_10BE, A422_10LE, A422_10BE, A444_10LE, A444_10BE }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

Details

struct GstVideoConvert

struct GstVideoConvert;

Opaque object data structure.

Property Details

The "dither" property

  "dither"                   GstVideoDitherMethod  : Read / Write

Apply dithering while converting.

Default value: GST_VIDEO_DITHER_BAYER


The "alpha-mode" property

  "alpha-mode"               GstVideoAlphaMode     : Read / Write

Alpha Mode to use.

Default value: GST_VIDEO_ALPHA_MODE_COPY


The "alpha-value" property

  "alpha-value"              gdouble               : Read / Write

Alpha Value to use.

Allowed values: [0,1]

Default value: 1


The "chroma-mode" property

  "chroma-mode"              GstVideoChromaMode    : Read / Write

Chroma Resampling Mode.

Default value: GST_VIDEO_CHROMA_MODE_FULL


The "chroma-resampler" property

  "chroma-resampler"         GstVideoResamplerMethod  : Read / Write

Chroma resampler method.

Default value: GST_VIDEO_RESAMPLER_METHOD_LINEAR


The "dither-quantization" property

  "dither-quantization"      guint                 : Read / Write

Quantizer to use.

Default value: 1


The "gamma-mode" property

  "gamma-mode"               GstVideoGammaMode     : Read / Write

Gamma Conversion Mode.

Default value: GST_VIDEO_GAMMA_MODE_NONE


The "matrix-mode" property

  "matrix-mode"              GstVideoMatrixMode    : Read / Write

Matrix Conversion Mode.

Default value: GST_VIDEO_MATRIX_MODE_FULL


The "primaries-mode" property

  "primaries-mode"           GstVideoPrimariesMode  : Read / Write

Primaries Conversion Mode.

Default value: GST_VIDEO_PRIMARIES_MODE_NONE