[FFmpeg-user] timestamp calculation

Chau Pham chaupv79 at hotmail.com
Thu Aug 30 08:07:56 CEST 2012


Hi Wagner, I got this information below via debugging for generating thumbnail, option : -r 1/5 (generate thumbnail in every 5 seconds) I printf out pts, dts, duration information from AVPacket.pts = 10350000, dts = 10350000, duration = 450000. time=00:02:00.00, the timestamp that shows in progress of thamnail generating. 5 seconds ~ 450000 -> 1 second = 90000 ( I don't know the principle on calculating timestamp) AV_TIME_BASE = 1000000.  if I convert timestamp base on AV_TIME_BASE, then number of seconds =  pts/AV_TIME_BASE= 10.35 seconds.then tamstamp shoud be : 00:00:10.035 => 00:02:00.00(60 seconds) different to 10.35 seconds
 Could anyone explain this? Thank you,Chau Pham.  > From: wagner.patriota at gmail.com
> Date: Wed, 29 Aug 2012 23:08:35 -0300
> To: ffmpeg-user at ffmpeg.org
> Subject: Re: [FFmpeg-user] timestamp calculation
> 
> I would like to do the opposite of you.... from the timestamp calculate the
> pts.... if you figure out please let me know...
> 
> On Wed, Aug 29, 2012 at 10:33 PM, Chau Pham <chaupv79 at hotmail.com> wrote:
> 
> >
> >
> >
> > Hi Everybody, Suppose that I know AVPacket element: pts, dts, duration How
> > could I calculate the timestamp (hh:mm:ss:MMM)? Thank You,Chau Pham.
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
 		 	   		  


More information about the ffmpeg-user mailing list