[Libav-user] using avpicture_deinterlace

YIRAN LI mrfun.china at gmail.com
Mon Sep 22 12:33:45 CEST 2014


> Hendrik Leppkes <h.leppkes at ...> writes:
>
> > Our program is using avpicture_deinterlace
> > to deinterlace frames.
>
> This sounds like a bad idea, use yadif instead.
>
> > if it's interlaced_frame field is true, we
> > can avpicture_deinterlace to deinterlace it.
>
> This is also a bad idea: the interlaced_frame
> filed tells you how the frame was *encoded*
> but to decide whether it should be deinterlaced
> or not only the actual content is relevant
> which is often independent of interlaced_frame.
>
> As Hendrik explained, frames and fields within
> FFmpeg are defined so that one frame consists
> of two fields.
> (Even in cases when this is semantically wrong.)
>
>
​Thanks Hendrik and Carl,

For some reason, our program can't use yadif, so the only option is
​avpicture_deinterlace.
If whether to deinterlace or not only depends on actual content, and
there's no single
flag for that, how is avpicture_deinterlace used in old days (if there's
any example)?

Thanks

Carl Eugen
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140922/7d4232e8/attachment.html>


More information about the Libav-user mailing list