[FFmpeg-devel] [PATCH] ffmpeg: don't force source-tracked keyframes for duplicates

Gyan ffmpeg at gyani.pro
Fri Jan 3 12:35:45 EET 2020



On 03-01-2020 03:30 pm, Michael Niedermayer wrote:
> On Fri, Jan 03, 2020 at 12:35:22PM +0530, Gyan Doshi wrote:
>> Prevents a run of consecutive duplicate frames from all being encoded
>> as keyframes, when force_key_frames is set to source.
>> ---
>>   fftools/ffmpeg.c | 3 ++-
>>   1 file changed, 2 insertions(+), 1 deletion(-)
> maybe ok (i wonder if this would be expected behavior with intra only input)

If user wants intra-only output, they can use an intra-coded encoder or 
-g 1.

If they want to preserve same seek points as source, then the 
non-duplicated frame has the closest pts sync to the source timestamp.


Gyan


More information about the ffmpeg-devel mailing list