[Libav-user] Reading field by field of an interlaced video

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Jul 1 20:23:44 CEST 2012


Sampath Subasinghe <susiriss at ...> 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



More information about the Libav-user mailing list