[FFmpeg-devel] frame type identification question

Victor lyamtsev vlyamtsev
Sun Oct 14 15:12:30 CEST 2007

I am trying to write utility to remove certain frames from H264 file ( all
B- frames, for example ) .
E.g. it should copy original into new H264 file, excluding B-frames.
I wonder how I can find frame type identifier after reading of frame...
av_read_frame( pFormatContext, &packet)
I assume it's somewhere within AVPacket struct... How to retreive it?
Thank you,

More information about the ffmpeg-devel mailing list