[FFmpeg-devel] meaning of AV_PKT_FLAG_KEY

Don Moir donmoir at comcast.net
Wed Dec 4 13:44:53 CET 2013

I asked about this 2 years ago in ticket and no answer there.

I asked in user and no answer there.

So asking here what is the meaning of AV_PKT_FLAG_KEY and does it have any meaining to an application ?

The comment for AV_PKT_FLAG_KEY says it represents a key packet. If you decode this packet, the frame indicates it's a key frame.

If packet contains AV_PKT_FLAG_KEY it does not necessarily reflect a timestamp in index_entries which are known to be keyframes if marked as such.

Would be damn useful is this flag was dependable as a keyframe or start of keyframe. Right now I don't know if its a bug or what it is supposed to mean.

More information about the ffmpeg-devel mailing list