Answers.Body: <p>Frames with key_frame <code>1</code> (will have picture type <code>I</code>) are IDR frames.</p>
  
  <p><code>I</code> frames with key_frame <code>0</code> are not.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-04T19:09:00.087Z
Answers.Text: It [doesn't seem to work exactly like that](https://superuser.com/questions/1344558/ffprobe-returns-that-all-i-frames-are-idr-frames-keyframe-1-in-a-ts-file) -- non-IDR frames with the Recovery Point SEI set are also reported as keyframes
Answers.UserDisplayName: Claude
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-05T04:07:51.853Z
Answers.Text: Those types aren't common unless you work with transport feeds.
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-05T10:06:59.550Z
Answers.Text: 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"
Answers.UserDisplayName: Claude
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-29T08:23:30.867Z
Answers.LastActivityDate: 2016-08-29T08:23:30.867Z
Answers.UserDisplayName: Gyan
Body: <p>The ffprobe show frames output shows the following details:</p>
  
  <pre><code>[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]
  </code></pre>
  
  <p>I was reading <a href="http://www.streaminglearningcenter.com/articles/everything-you-ever-wanted-to-know-about-idr-frames-but-were-afraid-to-ask.html" rel="nofollow">this article</a> and was wondering how to differentiate between the two types of frames from the above output.</p>
  
Tags: <ffmpeg><keyframes>
Title: How to identify i-frame from idr-frame in the ffprobe show frames output?
UserDisplayName: cnvzmxcvmcx
ThreadText: # How to identify i-frame from idr-frame in the ffprobe show frames output?
  
  (Asked by: username_0 on 2016-08-29)
  
  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](http://www.streaminglearningcenter.com/articles/everything-you-ever-wanted-to-know-about-idr-frames-but-were-afraid-to-ask.html) and was wondering how to differentiate between the two types of frames from the above output.
  
  **Tags:** ffmpeg, keyframes
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-08-29. Score: 9 | Accepted answer
  
  Frames with key\_frame `1` (will have picture type `I`) are IDR frames.
  
  `I` frames with key\_frame `0` are not.
  
  > **Comments:**
  > **username_2**: It [doesn't seem to work exactly like that](https://superuser.com/questions/1344558/ffprobe-returns-that-all-i-frames-are-idr-frames-keyframe-1-in-a-ts-file) -- non-IDR frames with the Recovery Point SEI set are also reported as keyframes  
  > **username_1**: Those types aren't common unless you work with transport feeds.  
  > **username_2**: 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"  
  
  ---
  
  