Skip to main content

Could I know the frame is I frame or P frame in ICompressedVideoPacket?

Answered

Comments

1 comment

  • Ichiro
    • Network Optix team

    Hi 高偉恆,

    In ICompressedMediaPacket, which is the base class for ICompressedVideoPacket, there is a method flags() 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.

    1

Please sign in to leave a comment.