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

Answered

Comments

1 comment

  • Avatar
    Ichiro

    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
    Comment actions Permalink

Please sign in to leave a comment.