[FFmpeg-user] timestamp calculation

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Aug 30 09:10:23 CEST 2012


Chau Pham <chaupv79 <at> hotmail.com> writes:

> Hi Everybody, Suppose that I know AVPacket element: 
> pts, dts, duration How could I calculate the timestamp
> (hh:mm:ss:MMM)?

pts is the presentation timestamp that you probably ask for.
You have to scale it with the timebase to get seconds.

Carl Eugen



More information about the ffmpeg-user mailing list