deinterlace

deinterlace — Deinterlace video

Synopsis

                    GstDeinterlace;

Object Hierarchy

  GObject
   +----GstObject
         +----GstElement
               +----GstBaseTransform
                     +----GstDeinterlace

Properties

  "blend"                    gboolean              : Read / Write
  "di-area-only"             gboolean              : Read / Write
  "edge-detect"              gint                  : Read / Write
  "threshold"                gint                  : Read / Write
  "deinterlace"              gboolean              : Read / Write
  "ni-area-only"             gboolean              : Read / Write

Description

Adaptively deinterlaces video frames by detecting interlacing artifacts. An edge detection matrix is used, with a threshold value. Pixels detected as 'interlaced' are replaced with pixels blended from the pixels above and below.

Example launch line

gst-launch -v videotestsrc ! deinterlace ! ffmpegcolorspace ! xvimagesink

Synopsis

Element Information

plugin

gstinterlace

author

Wim Taymans <wim.taymans@gmail.com>

class

Filter/Effect/Video

Element Pads

name

src

direction

source

presence

always

details

video/x-raw-yuv, format=(fourcc){ I420, Y42B }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

name

sink

direction

sink

presence

always

details

video/x-raw-yuv, format=(fourcc){ I420, Y42B }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

Details

GstDeinterlace

typedef struct _GstDeinterlace GstDeinterlace;

Property Details

The "blend" property

  "blend"                    gboolean              : Read / Write

Change the blending for pixels which are detected as 'interlacing artifacts'. When true, the output pixel is a weighted average (1,2,1) of the pixel and the pixels above and below it. When false, the odd field lines are preserved, and the even field lines are averaged from the surrounding pixels above and below (the odd field).

Default value: FALSE


The "di-area-only" property

  "di-area-only"             gboolean              : Read / Write

When set to true, only areas affected by the deinterlacing are output, making it easy to see which regions are being modified.

See Also: "ni-area-only"

Default value: FALSE


The "edge-detect" property

  "edge-detect"              gint                  : Read / Write

Affects the weighting of the edge-detection function used for detecting interlacing artifacts.

Default value: 0


The "threshold" property

  "threshold"                gint                  : Read / Write

Affects the threshold of the edge-detection function used for detecting interlacing artifacts.

Default value: 0


The "deinterlace" property

  "deinterlace"              gboolean              : Read / Write

Turn processing on/off. When false, no modification of the video frames occurs and they pass through intact.

Default value: TRUE


The "ni-area-only" property

  "ni-area-only"             gboolean              : Read / Write

When set to true, only areas unaffected by the deinterlacing are output, making it easy to see which regions are being preserved intact.

See Also: "di-area-only"

Default value: FALSE