0

I want to write application that could recording screen as a video in c++

During the search I found ffmpeg can done that.

What examples should I use to create a program?

I use the window api

I can load bitmaps into memory.


What I want to do is:

  1. Loads 30 bitmaps in memory in one second.

  2. Generate video using multiple bitmaps.

Soer
  • 23
  • 6
  • 2
    You need to make an attempt at this first and if you encounter problems, you can post a question clearly explaining what you have tried and what error(s) you are getting. But it is also equally important that you do some basic research before posting your question - continue your search for examples/tutorials. – ishmaelMakitla Jan 30 '17 at 07:13
  • Thank you I found out what was missing from my question. – Soer Jan 30 '17 at 07:35
  • a c++ program to capture the screen and store it in mp4 format github link https://github.com/abdullahfarwees/screen-recorder-ffmpeg-cpp and http://stackoverflow.com/a/43464269/6180077 – Abdullah Farweez Apr 18 '17 at 07:16
  • http://stackoverflow.com/a/43464269/6180077 visit this link for working FFMPEG c++ mp4 format screen recorder application. – Abdullah Farweez May 09 '17 at 04:23

1 Answers1

1

ffmpeg can record screen with code like:

ffmpeg -f dshow -i video="screen-capture-recorder" output.flv

please check ffmpeg document for full help.

If you can capture picture from screen please see this url

Community
  • 1
  • 1
Ali
  • 3,373
  • 5
  • 42
  • 54
  • Thank you for answer But I use the window api I can load bitmaps into memory. What I want to do is: 1. Loads 30 bitmaps in memory in one second. 2. Generate video using multiple bitmaps. – Soer Jan 30 '17 at 07:33
  • you indeed want to capture screen by your program in memory and then create video from that? – Ali Jan 30 '17 at 07:35
  • @Soer: Then why did you ask for something different? – MikeMB Jan 30 '17 at 07:36
  • @MikeMB I couldn't express myself properly about my problem. – Soer Jan 30 '17 at 07:41
  • @combo_ci That’s right. Am I doing something wrong? – Soer Jan 30 '17 at 07:42
  • @Soer now the question is different...please folow the link in answer...a complete answer exist in that link that done everything you want with ffmpeg – Ali Jan 30 '17 at 07:45
  • @combo_ci Thank you. I will learn from the example. – Soer Jan 30 '17 at 07:54