Interlaced frames are decoded by libav into the same way a capture card would do. 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.
Be aware that avpicture_deinterlace doesn't work with every pixel format! I use PIX_FMT_YUV422P for using this function. On Sun, Jul 1, 2012 at 8:23 PM, Carl Eugen Hoyos <[email protected]> wrote: > Sampath Subasinghe <susiriss@...> writes: > > > > libavcodec does no de-interlacing by default ... > > > > > > ... but it usually outputs the two fields of interlaced > > > video in one frame. > > > > > Thanks Carl for the valuable input. So I see that libavcodec does field > > combination to make up the full frame. > > As said, I suspect every conforming decoder (you did not say > which encoding you used, but I guess that is not only true for > h264) has to do this. > > > In this case, I can separate the two fields by going through the frame > > and grouping odd lines (each line is 1-pixel thick ?) and even lines > > separately. Is this assumption correct ? > > This should give you rawvideo fields which may be what you want. > > 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
