> Hendrik Leppkes <h.leppkes@...> 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
> [email protected]
> http://ffmpeg.org/mailman/listinfo/libav-user
>
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to