According to:
Can I use AVFoundation to stream downloaded video frames into an OpenGL ES texture?
It’s posible to get the frames from an remote media. However I’ve been trying the suggestion, but the documentation about the use of AVPlayerItemVideoOutput is not very clear, it seems to have a delegate method outputMediaDataWillChange, which have the pointer to the AVPlayerItemVideoOutput instance.
Maybe I’m doing a wrong assumption , but this delegate method it’s called every time the data will change?. It is the right place to get the CVPixelBuffer?.
Method
outputMediaDataWillChangewill only be called after registeringrequestNotificationOfMediaDataChangeWithAdvanceInterval, usually when you will pause your app or the like.You can access the pixel buffer in your display link hook. Look for
hasNewPixelBufferForItemTimeandcopyPixelBufferForItemTimein Apple sample (it’s for OS X, but basically it’s the same for iOS.