[FFmpeg-devel] First time using libavcodec and libavformat
Wed Jun 27 18:17:35 CEST 2007
I am trying to use libavcodec and libavformat in my program to decode an
mpeg2 transport stream. I am using the tutorial found here to guide me:
So far it is working very well. I can demux the stream and play the
video some what using SDL.
However, I am a bit confused on how to grab video frame timestamps using
the tutorial's GetNextFrame(). Specifically I need to get the DTS of the
video. This information doesn't appear to be in the AVFrame struct and
the pts that I receive is alway 0.
So I am a little curious how to go about getting the DTS properly from a
Thanks for any help and the great libraries!
More information about the ffmpeg-devel