On Fri, Nov 21, 2008 at 12:01 AM, Art Clarke <[EMAIL PROTECTED]> wrote:
> On Thu, Nov 20, 2008 at 1:53 PM, aviad rozenhek <[EMAIL PROTECTED]> wrote: > > You can tell Key (I) versus not Key (P or B) by looking at the flags > > > >> field in the AVPacket structure and seeing if the PKT_FLAG_KEY bit is > >> set to true. > >> > > > > thanks! what about B frames, and even better, knowing if a B frame is a > > reference frame or not? > > That I don't know. Anyone else? > > - Art > this kind of information is extremely useful when streaming, for instance non-referenced P/B frames could be dropped. currently I attain this information by decoding the frame. obviously this is not the best way to do so, but peering inside the packet itself has the disadvantage that I need to write different code for each codec. if only there was an API that gets this metadata from packet using the codec, without actually decoding it and creating a frame ... sigh. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
