<div dir="ltr">In all of the movies I have, this field is not set so what do i do to find the field order and fix the artifact? <div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 18, 2015 at 4:25 PM, Hendrik Leppkes <span dir="ltr"><<a href="mailto:h.leppkes@gmail.com" target="_blank">h.leppkes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, May 18, 2015 at 1:17 PM, Nisar Ahmed <<a href="mailto:nisar.med@gmail.com">nisar.med@gmail.com</a>> wrote:<br>
> While decoding, libav is producing a different field order for some movies<br>
> which is resulting in interlacing artefacts on the output screen. I tried<br>
> finding field order information inside AVCodecContext->field_order and<br>
> AVFrame->top_field_first but both values are always set to AV_FIELD_BT and 0<br>
> respectively.<br>
><br>
> I need to know which field order then file will decode with so that I can<br>
> make conversion or can I ask libav to do that.<br>
><br>
<br>
</div></div>AVFrame->top_field_first is what you want to look at. If its not set,<br>
then the video stream in question may simply not have any field order<br>
information.<br>
<br>
- Hendrik<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>