[Ffmpeg-devel] Frame count/seeking

Ian Gowen ian.gowen
Sat Jul 2 01:47:45 CEST 2005


Is there an easy way to determine the frame count of a file? Right now what I'm 
doing is reading the whole file and keeping a counter but needless to
say that's
slow; is there a better way?

Also, I'm a little fuzzy on how to interpret AVStream.time_base. How
do I get that
in frames per second?

TIA
--Ian





More information about the ffmpeg-devel mailing list