Im building an iphone app for video analyzing and i need to know the exact amount of frames in the movie clip.
I got the frame rate and the duration and for some reason i get 2880 frames but i know that the movie clip has actually 2840.
how can i get an exact number of frames?
Well this will depend on the video format.
If it’s raw video then PAL and SECAM dictate 25 frames per secon(fps), NTSC 29.97 actual film is 24fps. Is it interlaced or progressive scan?
Is it already compressed and hence uses an approximation of frame numbers?
edit
Ah so you’re video is in H.264/MPEG4 standard with AAC audio? The indexing data is held within the “moov” part of the file that contains all of the indexing and data values that make up the file. For more information on the MPEG4 standard look here
If you can extract this data it will tell you the data size of each frame etc.