On Mon, Feb 23, 2009 at 6:59 PM, Ronald S. Bultje <[email protected]> wrote:
> Hi Mike,
>
> On Mon, Feb 23, 2009 at 9:53 PM, Mike Sullivan <[email protected]> wrote:
>> 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).
>
> I-frame?
>
>> The question is, how can I tell from an AVPacket if the current frame
>> is a keyframe from the format_write_packet method?
>
> Well, that depends entirely on your encoding settings. You should be
> able to read that from the codec's
> AVCodecContext->coded_frame->keyframe or pict_type.
>
> Ronald
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>

Great Ronald, thanks so much for the help!!

-Mike
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to