FFmpeg 4.3.8
Since* 2.1
#

Deinterlace the input video ("w3fdif" stands for "Weston 3 Field Deinterlacing Filter").

Based on the process described by Martin Weston for BBC R&D, and implemented based on the de-interlace algorithm written by Jim Easterbrook for BBC R&D, the Weston 3 field deinterlacing filter uses filter coefficients calculated by BBC R&D.

This filter uses field-dominance information in frame to decide which of each pair of fields to place first in the output. If it gets it wrong use setfield filter before w3fdif filter.

There are two sets of filter coefficients, so called "simple" and "complex". Which set of filter coefficients is used can be set by passing an optional parameter:

filter

Set the interlacing filter coefficients. Accepts one of the following values:

simple

Simple filter coefficient set.

complex

More-complex filter coefficient set.

Default value is complex.

deint

Specify which frames to deinterlace. Accepts one of the following values:

all

Deinterlace all frames,

interlaced

Only deinterlace frames marked as interlaced.

Default value is all.