[FFmpeg-user] timestamp calculation
Chau Pham
chaupv79 at hotmail.com
Fri Aug 31 07:56:52 CEST 2012
Hi Carl, I figure out how to calculate timestamp, I know pts, duration in AVPacket, totol seconds = pts/90000 + duration/90000; then i format timestamp in hh:mm:ss from total seconds. regards,Chau Pham
> To: ffmpeg-user at ffmpeg.org
> From: cehoyos at ag.or.at
> Date: Thu, 30 Aug 2012 07:10:23 +0000
> Subject: Re: [FFmpeg-user] timestamp calculation
>
> 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
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
More information about the ffmpeg-user
mailing list