<html><head><style>pre,code,address {
margin: 0px;
}
h1,h2,h3,h4,h5,h6 {
margin-top: 0.2em;
margin-bottom: 0.2em;
}
ol,ul {
margin-top: 0em;
margin-bottom: 0em;
}
blockquote {
margin-top: 0em;
margin-bottom: 0em;
}
</style></head><body><div>Hi,</div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Short version:<br></div><div> Is there a way to identify if a sample/frame provided to an appsink <br></div><div>has been produced from an h264 I-frame (or P-frame/B-frame)?<br></div></blockquote><div><br></div><div>Encoded H.264 frames coming out of qtdemux should have the DELTA_UNIT flag set on buffers if it's a P/B frame, and should have the DELTA_UNIT flag cleared (not set) if it's a key/IDR frame. This will be based on information in the container.</div><div><br></div><div>After a decoder you can't know if a decoded raw video frame was generated from a keyframe or not. (If that flag happens to be set right in some cases that would likely be an accident, not by design, and you probably can't rely on that).</div><div><br></div><div>Cheers</div><div> Tim</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"></blockquote><div><br></div><div><span></span></div></body></html>