I'm working on a mac (objective-c) application that sends frames of video to Syphon.
As much as I would love to say that I have a starting point for this project, I've only gotten as far as some junk code and including OpenGL.framework
, AVFoundation
, and Syphon.framework
in the project
I thought this question may have been helpful towards loading the video frame by frame, and this question about playing a video using OpenGL, but neither has really panned out.
I've been doing some research into AVFoundation and there seem to by multiple ways to load a video, but no way that I can see to load a singular frame
Here's my goal:
- Load a video into an application as a mov. (video will have constant frame rate)
- create a GL_TEXTURE_RECTANGLE_EXT or GL_TEXTURE_2D from frame n of a video file
- it must be able to accomplish 30fps minimum (frames selected and drawn in sequence)
If someone could recommend what direction to go in for this, that would give me a great direction to really start. I've really got no idea how to even accomplish goal 1, let alone goal 2.