0

I am working on a project where I would like to open a video (on a Mac) with QTKit. That part I can do no problem, but as I am playing it, I would like to edit or modify the video on the fly using OpenGL.

From what I understand, I should be able to intercept the frames and change them before it hits the display, but no matter what I do, I cannot seem to do so.

genpfault
  • 51,148
  • 11
  • 85
  • 139
jabroni
  • 706
  • 1
  • 7
  • 25
  • Soooo....what have you tried that didn't work? – genpfault Aug 24 '11 at 16:06
  • I found this posting. http://www.cimgf.com/2008/09/10/core-animation-tutorial-rendering-quicktime-movies-in-a-caopengllayer/ This project works, but if I modify it to select a video rather than use a video in the sample, all it does is play, it does not call only of the procedures. – jabroni Aug 24 '11 at 17:10

1 Answers1

0

It sounds like you should have a look at Core Video and the display link mechanic. You can basically get a callback on a high priority thread with the decoded frame in a CVImageBuffer and do whatever you like with it (including packing it up as a texture for OpenGL processing and display). Apple provides documentation and demo code snippets on the developer sites.

Thorsten Karrer
  • 1,345
  • 9
  • 19