[x264-devel] Does x264 encoder has 1 frame delay on IFrame generation

Jason Garrett-Glaser darkshikari at gmail.com
Mon Sep 20 22:43:02 CEST 2010


On Mon, Sep 20, 2010 at 8:02 AM, Alexander Sbitnev
<alexander.sbitnev at gmail.com> wrote:
>> x264_encoder_delayed_frames() will tell you the current delay.
>>
>> In the case of delayed frames, x264 will return empty frames until the
> first
>> valid one.
>
> I checked x264_encoder_delayed_frames() return values. After first frame
> coded it always return "1".
> So yes I suppose one frame delay is present.
> Is it possible to achieve zero frames delay?
>
> I've already got:      i_threads = 1     i_sync_lookahead = 0   i_lookahead
> = 0    i_bframe = 0
> Where else should I look for delay cause? (Please pardon me if my question
> is really annoying)

b_vfr_input requires that x264 knows the duration, which adds one frame delay.

Dark Shikari


More information about the x264-devel mailing list