[Libav-user] Field order

Hendrik Leppkes h.leppkes at gmail.com
Mon May 18 13:25:27 CEST 2015

On Mon, May 18, 2015 at 1:17 PM, Nisar Ahmed <nisar.med at gmail.com> wrote:
> While decoding, libav is producing a different field order for some movies
> which is resulting in interlacing artefacts on the output screen. I tried
> finding field order information inside AVCodecContext->field_order and
> AVFrame->top_field_first but both values are always set to AV_FIELD_BT and 0
> respectively.
> I need to know which field order then file will decode with so that I can
> make conversion or can I ask libav to do that.

AVFrame->top_field_first is what you want to look at. If its not set,
then the video stream in question may simply not have any field order

- Hendrik

More information about the Libav-user mailing list