From b7266302a40ba48fea7a5644f08623159b3dcac7 Mon Sep 17 00:00:00 2001 From: Keyun Tong Date: Sun, 20 Jun 2021 21:42:29 +0200 Subject: fftools/ffmpeg: Add new variant source_no_drop to the force_key_frames option Suggested-By: ffmpeg@fb.com --- doc/ffmpeg.texi | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/ffmpeg.texi') diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index b27b9fe2c4..dad21c6ae6 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -1011,6 +1011,7 @@ Deprecated see -bsf @item -force_key_frames[:@var{stream_specifier}] @var{time}[,@var{time}...] (@emph{output,per-stream}) @item -force_key_frames[:@var{stream_specifier}] expr:@var{expr} (@emph{output,per-stream}) @item -force_key_frames[:@var{stream_specifier}] source (@emph{output,per-stream}) +@item -force_key_frames[:@var{stream_specifier}] source_no_drop (@emph{output,per-stream}) @var{force_key_frames} can take arguments of the following form: @@ -1072,6 +1073,12 @@ starting from second 13: If the argument is @code{source}, ffmpeg will force a key frame if the current frame being encoded is marked as a key frame in its source. +@item source_no_drop +If the argument is @code{source_no_drop}, ffmpeg will force a key frame if +the current frame being encoded is marked as a key frame in its source. +In cases where this particular source frame has to be dropped, +enforce the next available frame to become a key frame instead. + @end table Note that forcing too many keyframes is very harmful for the lookahead -- cgit v1.2.3