[x264-devel] How to flush delayed frames?

Jason Garrett-Glaser darkshikari at gmail.com
Wed Mar 17 19:47:31 CET 2010


On Wed, Mar 17, 2010 at 7:43 AM, Alex Sadovsky <alexeysad at gmail.com> wrote:
> Hello,
>
> I'm trying to get the delayed frames from the encoder just the same
> way as x264.c does. The problem is that x264_encoder_encode keeps
> returning zeroes despite of x264_encoder_delayed_frames returning
> something greater then zero. Is there anything special I should do in
> order to get those frames?

You need to pass encoder_encode a NULL input to signal x264 that there
are no more frames coming.

Additionally, there are often a LOT of delayed frames (e.g. 50-60+),
so you may have to flush for quite some time.

Dark Shikari


More information about the x264-devel mailing list