Search code examples
c++videoh.264avimpeg-4

Find keyframes in AVI, H.264 file


My goal is to search keyframes in AVI file. I parse it and get all the data chunks for the video stream, but how can i find in there info about frames themselves - whether a particular frame is a keyframe or not?


Solution

  • The keyword is AVIIF_KEYFRAME. See http://www.opennet.ru/docs/formats/avi.txt

    AVIIF_KEYFRAME

    Indicates this chunk is a key frame. Key frames do not require additional preceding chunks to be properly decoded.