Answer the question
In order to leave comments, you need to log in
How to achieve smooth frame capture?
Hello.
There is a program that captures frames from the monitor area, compresses them and writes them to avi:
char* frame = getFrame(); // Выполняется быстро
compress(frame); // Выполняется медленно
writeFrame(aviFile, frame);
Answer the question
In order to leave comments, you need to log in
Frame capture, in my opinion, is best done the old fashioned way - using Bitblt . In the main stream or not to capture - it's up to you. But I highly recommend saving frames and, moreover, processing them in a separate thread so as not to affect FPS.
And so that you, inadvertently, do not pile up any functions of "compressing" the image, I pay special attention to the fact that Bitblt can change the size of the image during the capture process, as well as the color format.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question