After you have your packet (using av_read_frame(fmt_ctx, &packet)), you can look at packet.flags. AV_PKT_FLAG_KEY will say that the frame is I-Frame. Regarding P and B, you should look inside packet.data.
I recommend a free tool, "H.264 Video ES Viewer", that lets you easily parse and understand h264 streams to depth. Sincerely, Alex On Wed, Sep 14, 2011 at 15:30, mounir younes <[email protected]> wrote: > Hello everyone, I am new to FFMPEG and I am currently seeking a way to > decode a stream into I-Frame, B-Frame, P-Frame. How is it possible to decode > the stream and get the different frames. I am currently working on h264 > (MPEG4 AVC) and android. Can someone provide me with some help? > > Thank you in advance. > > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user > > _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
