[Libav-user] packet flag AV_PKT_FLAG_KEY

Don Moir donmoir at comcast.net
Wed Dec 4 13:35:04 CET 2013

> ----- Original Message ----- 
> From: "Carl Eugen Hoyos" <cehoyos at ag.or.at>
> To: <libav-user at ffmpeg.org>
> Sent: Wednesday, December 11, 2013 6:16 AM
> Subject: Re: [Libav-user] packet flag AV_PKT_FLAG_KEY
>> Don Moir <donmoir at ...> writes:
>>> I suppose my only initial expectation long ago was that
>>> AVDISCARD_NONKEY worked as expected. I see its gotten
>>> better in some areas but not in others.
>> Please provide samples for which AVDISCARD_NONKEY does
>> not work correctly (but remember that there are valid
>> H.264 streams for which it correctly discards all frames).
>> Carl Eugen
> All of the theora files I have discard all frames when using AVDISCARD_NONKEY. But these work fine when using AV_PKT_FLAG_KEY 
> technique for keyframe display.
> Heres a sample:
> http://sms.pangolin.com/temp/BigBuckBunny.ogv
> If you want to open a ticket on it, CC me and I will add other failing samples when I get around to testing it. Keep in mind that 
> I don't have much interest in AVDISCARD_NONKEY but others will, and will test all the files I have in that regard soon.

This sample CODEC_ID_VP6F seems to completely ignore AVDISCARD_NONKEY and all frames are delivered. Again works fine with 


This sample CODEC_ID_INDEO5 seems to ignore AVDISCARD_NONKEY as well. Works fine with AV_PKT_FLAG_KEY.


More information about the Libav-user mailing list