FFmpeg 0.7.17
Since* 0.7
#

Deinterlace the input video ("yadif" means "yet another deinterlacing filter").

It accepts the optional parameters: mode:parity.

mode specifies the interlacing mode to adopt, accepts one of the following values:

0

output 1 frame for each frame

1

output 1 frame for each field

2

like 0 but skips spatial interlacing check

3

like 1 but skips spatial interlacing check

Default value is 0.

parity specifies the picture field parity assumed for the input interlaced video, accepts one of the following values:

0

assume top field first

1

assume bottom field first

-1

enable automatic detection

Default value is -1. If interlacing is unknown or decoder does not export this information, top field first will be assumed.