Carl Eugen Hoyos <[email protected]> added the comment:
The first frame of gh1-720p-50-6-seconds.mts is an IDR frame (a key-frame) and key_frame is correctly set to one. The remaining frames are either P- or I-frames. Since the decoder cannot know if the P-frames after the I-frames use prediction from before this I-frame, it is correct not to set key_frame for those I-frames. While I don't know what your use case is, note that it is possible to have valid H264 streams without any I (or IDR frames), so setting key_frame to 1 for every I-frame (assuming the streams don't use prediction from before the I-frame) doesn't always help. ---------- status: new -> closed substatus: new -> invalid ________________________________________________ FFmpeg issue tracker <[email protected]> <https://roundup.ffmpeg.org/issue2482> ________________________________________________
