[FFmpeg-user] When and how to use yadif?

Yan Seiner yan at seiner.com
Sun Nov 25 03:19:38 CET 2012

I am capturing a raw video stream.  It is interlaced.  I am trying to 
generate stills from the stream, but they all look interlaced....  When 
and where in the command line should I use yadif?

ffmpeg -f video4linux2 -s $SIZE -i /dev/video0 -vframes $NFRAMES -f 
rawvideo /tmp/video.raw
ffmpeg -f rawvideo -pix_fmt yuyv422 -s $SIZE -i /tmp/video.raw -f image2 
-pix_fmt rgb24 /tmp/road%02d.png

Here's a couple of examples of the interlacing I'm seeing:


I've tried various attemps at it but the documentation gives little help on how to use yadif properly.

More information about the ffmpeg-user mailing list