read a video and get fps and number of frame