On Mon, 26 Jan 2009 08:29:13 -0500, Mark Kenna <[email protected]> wrote: > Thanks for the input, is there any way to determine the DTS of a frame > without using an AVFormatContext?
Well, the name of the game is to try matching your packet to the frame it generated within the codec. Personally, I think libav ought to do this for you, but the current official way to do it is with a custom get_buffer and release_buffer fnction. (the idea being that a codec allocates a frame when it receives the packet for that frame, and your buffer allocation functions can then tie a timestamp of your choosing to the frame) These function pointers are part of the codec context, so not dependent on a AVFormatContext. You can see the implementation used in ffplay.c, the Dranger tutorial, and examples in this list's archive. Now... if you mean that the packets you receive from a non-libav source do not have a DTS field... can't really help you there. But in your example the order looked correct. -Mike _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
