[x264-devel] How to flush delayed frames?

Jason Garrett-Glaser darkshikari at gmail.com
Wed Mar 17 22:28:17 CET 2010


On Wed, Mar 17, 2010 at 2:17 PM, Alex Sadovsky <alexeysad at gmail.com> wrote:
>>>>
>>>> You need to pass encoder_encode a NULL input to signal x264 that there
>>>> are no more frames coming.
>>>
>>> That's what I'm trying to do, but x264_encoder_delayed_frames returns zeroes
>>> and delayed frame counter stays at it's value, something around 3 or 5 frames.
>>
>> What is the "delayed frame counter"?  libx264 doesn't have one.
>
> Ok. No wonder that x264_encoder_delayed_frames returns values that aren't in any
> correlation to actual encoder state.

Oh, of course it _has_ one internally, it's just not part of the API.
x264_encoder_delayed_frames() accesses the internal data and gives it
to you.

I just don't see what you mean by "delayed frame counter"--the only
externally accessible delayed frame counter is
x264_encoder_delayed_frames.

>>
>> Probably a lot.  I would recommend you use a compiler that isn't a
>> pile of garbage; if you insist on Microsoft's IDE, you can at least
>> use ICL.
>
> Last time I checked there was not such a compiler (that isn't a pile
> of garbage).

This is true.

Dark Shikari


More information about the x264-devel mailing list