Could I know the frame is I frame or P frame in ICompressedVideoPacket?
AnsweredHi,
I would like to know that the compressed videoFrame from pushCompressedVideoFrame is I frame( keyframe ) or P frame. How could I get the info?
Thanks a lot.
-
Hi 高偉恆,
In
ICompressedMediaPacket
, which is the base class forICompressedVideoPacket
, there is a methodflags()
that returns a set of (currently) just one flag:MediaFlags::keyFrame
.If this flag is present, the frame is an I-frame, otherwise is a P-frame.
Hope this helps.
Please sign in to leave a comment.
Comments
1 comment