How to make a screen recorder?

3

I'm wanting to make a screen recorder. What I thought of doing was this: From the recording event hit 30 screenshots per second and then join them in sequence to form a video. At this point some doubts arise:

  • Is this the right way to think about how to make a screen recording?
  • If yes, how could I capture a screenshot and convert a set of images to a video?
  • If not, what would be the most correct way to do it?

As I said at the beginning of the question, everything is still in the field of ideas, I still do not have any algorithms, and I do not want a complete program, I wanted one more answer regarding theoretical doubts and a direction in how to do it in c ++.

    
asked by anonymous 21.10.2014 / 14:24

1 answer

6

Good morning,

The most correct thing is to capture the information directly from the video card.

Screen shot operations are slow because they can involve up to a full-screen redraw, and in the case of applications that use OpenGL or DirectX, it is likely that accelerated surfaces will not be re-weighted in the screen shot (before Windows Vista, today it seems to me that it does not happen anymore).

In any case, this SO issue in English gives you a reasonable introduction on how to do:

Fastest method of screen capturing

Any questions about the English language, I can help.

    
21.10.2014 / 14:42