3

The ffprobe show frames output shows the following details:

[FRAME]
media_type=video
key_frame=1
pkt_pts=42
pkt_pts_time=0:00:00.042000
pkt_dts=42
pkt_dts_time=0:00:00.042000
pkt_duration=N/A
pkt_duration_time=N/A
pkt_pos=799
width=1920
height=1080
pix_fmt=yuv420p
sample_aspect_ratio=1:1
pict_type=I
coded_picture_number=0
display_picture_number=0
interlaced_frame=0
top_field_first=0
repeat_pict=0
reference=3
[/FRAME]

I was reading this article and was wondering how to differentiate between the two types of frames from the above output.

1 Answer 1

8

Frames with key_frame 1 (will have picture type I) are IDR frames.

I frames with key_frame 0 are not.

3
  • It doesn't seem to work exactly like that -- non-IDR frames with the Recovery Point SEI set are also reported as keyframes
    – Claude
    Mar 4, 2023 at 19:09
  • Those types aren't common unless you work with transport feeds.
    – Gyan
    Mar 5, 2023 at 4:07
  • I'm working a lot with .MTS files from JVC camcorders; they're full of them. But indeed I have no knowledge on how much they appear "in the wild"
    – Claude
    Mar 5, 2023 at 10:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.