[Libav-user] Frame number

Kalileo kalileo at universalx.net
Fri Jun 29 12:11:47 CEST 2012


On Jun 29, 2012, at 15:00 , Jonas Elofsson wrote:

> Hi,
> 
> Thanks. I guess this means "pts"?
> 
> I have no time to check again at the moment, but I did some tests with this as well. 
> 
> The video I tested with reported 25 frames per second and the timebase 1/25. Shouldn't this give me the pts 1,2,3,4... etc for each frame?

No.

> Instead i got (if my memory serves me right) 1200, 2400 etc (step of 1200 for each frame). Is there some documentation describing the FFMpeg timebase system?

Have a look at the famous Dranger player example, there is a nice explanation how its is calculated.




More information about the Libav-user mailing list