dividing the video into frames