I want to realize the next functionality: from a given video (or audio) file I want to extract sample buffers in real-time - while it is played with AVPlayer. That means eventually I want to have access to the sample buffer being presented in the same time.
How this could be done in most efficient way?