5

Does the QTKit Capture API support screen recording- i.e., can I specify the current screen output as the input source to record? If so, how?

Quicktime Player X supports screen recording, yet the QTKit Capture API Documentation only mentions capturing from external cameras.

bjoern
  • 283
  • 3
  • 9

2 Answers2

4

Starting from Lion, you can use AVFoundation framework. A quick tutorial can be found here.

Avi Cohen
  • 3,102
  • 2
  • 25
  • 26
1

One approach could be to capture static screenshots with the CGWindow API (search: Son of Grab), and append them to a QTMovie object using addImage:forDuration:withAttributes:

Related Apple Code example: StillMotion (developer.apple.com/mac/library/samplecode/StillMotion/Introduction/Intro.html)

bjoern
  • 283
  • 3
  • 9
  • 1
    A different approach is to sidestep QTKit altogether and use OpenGL. Apple has sample code here: http://developer.apple.com/mac/library/samplecode/OpenGLScreenCapture/Introduction/Intro.html – bjoern Jun 09 '10 at 16:15