Hi Everyone,
I want to make a modified img2 format (or option to img2) to only save
"keyframes" (the frames where the codec sends the whole frame, I think
it is also called a B-Frame but I get confused about the terminology).
The question is, how can I tell from an AVPacket if the current frame
is a keyframe from the format_write_packet method?
In other words something like,
static int img_write_packet(AVFormatContext *s, AVPacket *pkt)
{
// Set up
if(pkt->flags && AV_IS_A_KEYFRAME)
{
// I am a keyframe, save me please
}
// Clean up and return
}
Anyone have any ideas?
Thanks in advance,
-Mike
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user