Search code examples
iosavfoundationframescenekitframe-rate

AVFoundation, create images all video's frames while playing its audio


at a bit of a loss here.

Basically, I need to create a frame server that will give my app an image of each frame contained in the video at said video's frame rate. I need to do this while also playing its audio.

I'll be using these frames as a texture source for certain geometries on an SceneKit

Have never used AVFoundation, any pointers, tutorials or suggestions are welcomed


Solution

  • That's a very general question.

    Since you've never used AVFoundation, the AVFoundation Programming Guide should be your first stop.

    In particular, the Still and Video Media Capture section shows how to set a delegate for the capture process.