On Wed, 24 Jun 2009 15:03:26 -0400, Malcolm Bechard
<[email protected]> wrote:
The audio stream has a start time of 56994
The video stream has a start time of 64194
The first audio packet I get has a pts of 56994
The first video packet I get has a pts of 64194
This is the answer to your question. "start_time" is the pts of the first
packet seen.
I get a frame on the 2nd call to avcodec_decode_video2() (i.e on the
packet with a pts of 56994).
The packet you give to decode_video is not the pts of the frame it returns
to you. The decoder will reorder the frames internally, so that you give
it packets in dts order and it gives you frames in pts order. You can
trace the pts to the frame it creates using the reordered_opaque field of
AVFrame and AVCodecContext (see lots of past discussion on this list for
the details)
--
Michael Conrad
IntelliTree Solutions llc.
513-552-6362
[email protected]
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user