<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">Hendrik Leppkes <h.leppkes@...> writes:<br>
<br>
> Our program is using avpicture_deinterlace<br>
> to deinterlace frames.<br>
<br>
</span>This sounds like a bad idea, use yadif instead.<br>
<span class=""><br>
> if it's interlaced_frame field is true, we<br>
> can avpicture_deinterlace to deinterlace it.<br>
<br>
</span>This is also a bad idea: the interlaced_frame<br>
filed tells you how the frame was *encoded*<br>
but to decide whether it should be deinterlaced<br>
or not only the actual content is relevant<br>
which is often independent of interlaced_frame.<br>
<br>
As Hendrik explained, frames and fields within<br>
FFmpeg are defined so that one frame consists<br>
of two fields.<br>
(Even in cases when this is semantically wrong.)<br>
<br></blockquote><div><br></div><div class="gmail_default"><font face="georgia, serif">Thanks Hendrik and Carl,</font></div><div class="gmail_default"><font face="georgia, serif"><br></font></div><div class="gmail_default"><font face="georgia, serif">For some reason, our program can't use yadif, so the only option is avpicture_deinterlace. </font></div><div class="gmail_default"><font face="georgia, serif">If whether to deinterlace or not only depends on actual content, and there's no single </font></div><div class="gmail_default"><font face="georgia, serif">flag for that, how is </font><span style="font-family:georgia,serif">avpicture_deinterlace used in old days (if there's any example)?</span></div><div class="gmail_default"><span style="font-family:georgia,serif"><br></span></div><div class="gmail_default"><font face="georgia, serif">Thanks</font></div><div class="gmail_default"><font face="georgia, serif"><br></font></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Carl Eugen<br>
<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote></div><br></div></div>