2016-09-09 18:53 GMT+02:00 Leandro Raffo <[email protected]>: > 2016-09-09 12:53 GMT-03:00 Carl Eugen Hoyos <[email protected]>:
>> AVFrame->pict_type tells you the type of frames. >> >> Please test with -skip_frame nointra if this is usable for you >> before investing more time. Don't skip this! >> When doing this, you can also test -skip_frame noref This is probably more interesting. >> which may be an alternative: Drop those (h264) frames >> that will not be needed to decode future frames. I am >> not sure if this information is available outside libavcodec, >> you may have to do some additional programing. > > The thing is I dont actually have AVFrames, I have > AVPakets, I want to avoid the decode/encode pipeline > since it takes too much CPU and I'm already getting stuff > encoded in the codec I already want (h264). At least for some containers you cannot know if a packet contains a frame at all, and therefore not if it is a keyframe. The parser tells you all you need to know and has less overhead than the decoder Carl Eugen _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
