Thanx Andre, Maybe he does it now. It looks better. But what I don't understand is following. I get complete encoded frames. The pts-difference tells me, that from picture to picture is a delay of 40ms. That means I get a complete frame. What I want to get is an encoding by fields. Don't get me wrong. I know that x264 only produces MBAFF streams, this is ok for me, but I think that x264 can also produce interlaced fields with a duration of 20 ms right?
regards, Sven Am 07.02.2011 um 07:33 schrieb Andre: > Hi, > >> could anyone please tell me, how I have to configure my AVCodecContext if I >> want to encode my video with x264 interlaced? >> >> A simple >> >> ctx->flags |= CODEC_FLAG_INTERLACED_DCT; >> >> does not work. (I got this from the libx264.c - file). >> >> Any ideas? > > try additionally: > > ctx->flags |= CODEC_FLAG_INTERLACED_ME; > > If this doesn't help, you could dig further into libx264.c. In ran once into > the > same problem and took all info needed to solve it from that file (look out for > the parameter mapping and the interlaced keyword). > > Regards > Andre > _______________________________________________ > libav-user mailing list > libav-user@mplayerhq.hu > https://lists.mplayerhq.hu/mailman/listinfo/libav-user _______________________________________________ libav-user mailing list libav-user@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/libav-user