Hi Victorrio, May be it's not the best way, but yes I don't have the good information. In options I try to set field_order to tt, or top=1 and the flag in the mpeg2 header was every time at bottom/bottom field which means top field first is also to false. using that patch it can fix the problem, but a better salution can be found I think, but I don't know where I need to change in the sources. Someone have an idea for that ?
Thanks 2014-07-15 16:31 GMT+02:00 Vittorio Giovara <[email protected]>: > On Tue, Jul 15, 2014 at 9:46 AM, Marc-Antoine Arnaud > <[email protected]> wrote: > > --- > > libavcodec/mpeg12enc.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c > > index f87286a..c9bfa3d 100644 > > --- a/libavcodec/mpeg12enc.c > > +++ b/libavcodec/mpeg12enc.c > > @@ -424,7 +424,7 @@ void ff_mpeg1_encode_picture_header(MpegEncContext > *s, int picture_number) > > if (s->progressive_sequence) > > put_bits(&s->pb, 1, 0); /* no repeat */ > > else > > - put_bits(&s->pb, 1, > s->current_picture_ptr->f->top_field_first); > > + put_bits(&s->pb, 1, s->avctx->field_order == AV_FIELD_TT); > > /* XXX: optimize the generation of this flag with entropy > measures */ > > s->frame_pred_frame_dct = s->progressive_sequence; > > field_order is a container property, and unfortunately it is not > always set, so we have to rely on the frame information. Did you > encounter any problem with this code? > > -- > Vittorio > _______________________________________________ > libav-devel mailing list > [email protected] > https://lists.libav.org/mailman/listinfo/libav-devel > -- *Marc-Antoine* | e: [email protected] | tel: 06-84-71-84-45 | ohloh: http://bit.ly/1iwtlsU [image: LinkedIn] <http://s.wisestamp.com/links?url=https%3A%2F%2Fwww.linkedin.com%2Fpub%2Fmarc-antoine-arnaud%2Fb%2F7b8%2F2a3&sn=YXJuYXVkLm1hcmNhbnRvaW5lQGdtYWlsLmNvbQ%3D%3D> [image: Google Plus] _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
