K identifies keyframe. AFAIK the real keyframe is supposed to be IDR but here it is offset for some reason.
I noticed this behavior long ago: when the stream begins with B-frames the "keyframe" flags are offset. In theory it should be BBKBBP...
Unfortunately dealing with keyframes in FFmpeg is unsupported/loose. What I have is best guess effort.
|