gboolean map Read / Write
gboolean sharp Read / Write
guint threshold Read / Write
gboolean two-way Read / Write

Types and Values

Object Hierarchy

    ╰── GInitiallyUnowned
        ╰── GstObject
            ╰── GstElement
                ╰── GstBaseTransform
                    ╰── GstVideoFilter
                        ╰── GstEntransKernelDeint


[based on Avisynth filter documentation]

This filter deinterlaces using a kernel approach. It gives greatly improved vertical resolution in deinterlaced areas compared to simple field discarding.

If you set the threshold to 0, you can get totally artifact free results (due to lack of thresholding) but with much less loss of vertical resolution than simple field discarding. For optimal results, however, set a motion threshold that allows static areas of the picture to be passed through. In this mode, the kernel-based deinterlacing of the moving areas preserves their vertical resolution compared to simple interpolation.

This filter assumes that top field is first. If not, use a filter (e.g. fields) to swap them. Note that whether the top field is indeed first can be verified by separating fields (using e.g. fields) and verifying that motion is progressive (and not jumping back and forth).

The threshold parameter defines the "motion" thresold. Moving areas are kernel-deinterlaced while non-moving areas are passed through. Use the map parameter to tweak the threshold parameter so that just the combed areas of the frame are deinterlaced.

sharp, when set to true, selects a kernel that provides better vertical resolution and performs some sharpening of the video. For less sharpening but also less vertical resolution, set this parameter to false.

two-way, when set to true, selects a kernel that includes both the previous and the following fields for deinterlacing. When set to false, the kernel includes only the previous field. The latter one-way kernel is faster, crisper, and gives less blending (this last advantage makes the filter perform better on anime).

map, when set to true, shows the areas that are "moving" as determined by the threshold parameter and which will be kernel-deinterlaced.


  • Avisynth kerndeint filter [Donald A. Graft]
  • Also available in mplayer (kerndeint filter)
  • Also available in avidemux (kernel deinterlacer)



Types and Values


typedef GstKernelDeint GstEntransKernelDeint;

Property Details

The “map” property

  “map”                      gboolean

Paint/ignore pixels exceeding threshold.

Flags: Read / Write

Default value: FALSE

The “sharp” property

  “sharp”                    gboolean

Enable/disable additional sharping.

Flags: Read / Write

Default value: FALSE

The “threshold” property

  “threshold”                guint


Flags: Read / Write

Allowed values: <= 100

Default value: 10

The “two-way” property

  “two-way”                  gboolean

Enable/disable two-way sharpening.

Flags: Read / Write

Default value: FALSE