[Ffmpeg-devel] Q : av_read_frame and timestamps

Philippe De Muyter phdm
Thu Sep 7 09:58:07 CEST 2006

Hi all,

I would like to know if libavformat has a notion of the timestamps when the
frames in a video stream where recorded, and where I could find those
timestamps back using av_read_frame : pts, dts, or some combination of

I have found in the sources that when grabbing from a v4l2 sources, pts
is set by v4l2_read_packet to the recording-time timestamp, but that does
not seem true in the general case of reading from a file.

Thanks in advance


More information about the ffmpeg-devel mailing list