[x264-devel] Force keyframe on client connecting

BugMaster BugMaster at narod.ru
Sun Feb 27 17:10:52 CET 2011


On Sun, 27 Feb 2011 14:56:32 +0300, Max Lapshin wrote:
> I'm writing live transcoder of flash sorenson -> H.264
> I want to insert keyframe when new client is connecting and I don't
> use intra-refresh.

> Is there any API function, that I've missed in source code, which will
> allow to insert keyframe right here?

> x264_encoder_intra_refresh seems to be for low-delay mode.

> Or should I switch to intra-refresh?

You can always force keyframe by setting pic->i_type =
X264_TYPE_KEYFRAME or pic->i_type = X264_TYPE_IDR where pic is
input x264_picture_t which you send to x264_encoder_encode



More information about the x264-devel mailing list