<div>Interlaced frames are decoded by libav into the same way a capture card would do.
</div>I supose, you're not using CRTs anymore, so you can use "avpicture_deinterlace" (from avcodec) as first approach, the YADIF filter (wich is included into ffmpeg libraries) or a shader into the GPU (I think this should be the best option) to do the transformation.<div>
<br></div><div>Be aware that avpicture_deinterlace doesn't work with every pixel format! I use <span style="color:rgb(128,0,128)">PIX_FMT_YUV422P for using this function.</span></div><div><br><div class="gmail_quote">
On Sun, Jul 1, 2012 at 8:23 PM, Carl Eugen Hoyos <span dir="ltr"><<a href="mailto:cehoyos@ag.or.at" target="_blank">cehoyos@ag.or.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">Sampath Subasinghe <susiriss@...> writes:<br>
<br>
> > libavcodec does no de-interlacing by default ...<br>
> ><br>
> > ... but it usually outputs the two fields of interlaced<br>
> > video in one frame.<br>
> ><br>
> Thanks Carl for the valuable input. So I see that libavcodec does field<br>
> combination to make up the full frame.<br>
<br>
</div>As said, I suspect every conforming decoder (you did not say<br>
which encoding you used, but I guess that is not only true for<br>
h264) has to do this.<br>
<div class="im"><br>
> In this case, I can separate the two fields by going through the frame<br>
> and grouping odd lines (each line is 1-pixel thick ?) and even lines<br>
> separately. Is this assumption correct ?<br>
<br>
</div>This should give you rawvideo fields which may be what you want.<br>
<span class="HOEnZb"><font color="#888888"><br>
Carl Eugen<br>
</font></span><div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br></div>