You should convert to the frame rate before retrieving the number of frames.