Processing all frames in an AVAsset
I am trying to go through each frame in an AVAsset and process each frame as if it were an image. I have not been able to find anything from my searches. The task I am trying to accomplish would look like this in pseudo-code for each frame in asset take the frame as an image and convert to a cvMat Process and store data of center points Store center points in array The only part in that pseudo-code I do not know how to write is the going though each frame and capturing it in an image. Can anyone help? One answer is to use AVAssetImageGenerator . 1) Load the movie file into an AVAsset object. 2