Desktop(Screen) recording [closed]

asked 2012-11-08 12:55:08 -0600

Ham gravatar image

updated 2012-11-08 13:08:33 -0600

Hey, I have a small problem.

I would like to record my desktop and use this info. as an input for OpenCV. The "Free Screen Video Recorder" is able to record my desktop and save the information as an avi file. Unfortunately I can not use the file during the recording as an input, but I would like to work in real time.

Regards

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2017-09-04 15:07:01.058524

Comments

Since the screen recorder can get frames, you can get it too. But the question is, Is the format accepted by OpenCV or not? (a kinda stupid question, i know - OpenCV accepts almost everything :D) May be you can use other APIs like 'ffmpeg' etc. to convert it to the required format. But where to get the frame from (which is very important for even conversion) ? Well, you can look into the Screen Handler (Video I/O handler) for your OS (or its wrappers) for some kinda start. In the case of Linux my guess would be to start looking into 'X' (the I/O handler) and xrandr (i haven't tried it though, but system calls are generally slow) Hope this helps.

Prasanna gravatar imagePrasanna ( 2013-06-19 09:59:01 -0600 )edit

@Ham could you explain me or give some tutorial link to record and save the desktop screen as AVI ?

sincerekamal gravatar imagesincerekamal ( 2015-01-22 03:46:52 -0600 )edit

here you can find screen capturing code (for Windows only)

sturkmen gravatar imagesturkmen ( 2016-02-21 06:55:17 -0600 )edit