[FFmpeg-devel] [PATCH] libx264: Add option to force IDR frames

Michael Niedermayer michael at niedermayer.cc
Tue Aug 18 18:14:50 CEST 2015

On Tue, Aug 18, 2015 at 02:00:17PM +0100, Derek Buitenhuis wrote:
> Currently, when forcing an I frame, via API, or via the ffmpeg cli,
> using -force_key_frames, we still let x264 decide what sort of
> keyframe to user. In some cases, it is useful to be able to force
> an IDR frame, e.g. for cutting streams.
> Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
> ---
>  libavcodec/libx264.c | 5 ++++-
>  libavcodec/version.h | 2 +-
>  2 files changed, 5 insertions(+), 2 deletions(-)

LGTM unless someone wants to extend the API to pass this per frame
.pict_type or .keyframe or whatever


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150818/cc05bd4e/attachment.sig>

More information about the ffmpeg-devel mailing list