API functions to capture screen video?

Discussion in 'Mac Programming' started by marcimatz, Feb 8, 2012.

  1. macrumors newbie

    Joined:
    Feb 8, 2012
    #1
    Hello,

    I am quite new to Mac programming and was wondering if the OSX provides any API functions that handles recording of videos from screen information?
    I am developping in c++, and ideally require functions similar to:

    bool initializeRecorder(int resolutionX,int resolutionY,const char* filename,int framerate);

    bool addFrame(const char* buffer);

    bool endRecorder();

    Any fileformat is fine (e.g. Qt, avi, etc.). I am also interested if there is any 3rd party library that offers above functionality.
    Thanks for any insight!!
     
  2. macrumors newbie

    Joined:
    Aug 5, 2010
    #2
    If you are targeting Lion you must use AVFoundation.
     
  3. thread starter macrumors newbie

    Joined:
    Feb 8, 2012
    #3
    Thank you for the reply sumpfmonster.

    I actually also need the code working on previous versions of Mac OSX (say, from Leopard on)

    Cheers
     
  4. macrumors newbie

    Joined:
    Aug 5, 2010
    #4
  5. thread starter macrumors newbie

    Joined:
    Feb 8, 2012
    #5
    Thanks a lot Sumpfmonster!!
     

Share This Page