C
C#6mo ago
Daniel

How to get screen capture at 120 frames per second?

I am building an application that is using OpenCV . It needs to get the live video of what is being displayed on my monitor. I am wondering if anyone knows a good way to get access to more frames per second. Currently I can only get around 40 with built the built in screen grabber.
14 Replies
qqdev
qqdev6mo ago
Do you really need more FPS? For example, the Tesla cameras only record with 24 FPS iirc
qqdev
qqdev6mo ago
No description
qqdev
qqdev6mo ago
Would have to know what you are doing with those frames
Daniel
DanielOP6mo ago
There are some instances where something is visible (and needs to be handled) for only 16ms. I need the higher frames to capture that information and have more headroom in processing it
qqdev
qqdev6mo ago
I see, that makes sense Are you trying to target cross-platform? Or a specific platform only? I had to do sth similiar for my bachelor thesis and took some inspiration from OBS https://github.com/obsproject/obs-studio
Daniel
DanielOP6mo ago
No, I'm just supporting windows 11. I was hoping there was a simpler solution/package that could handle it
Daniel
DanielOP6mo ago
After reading some documentation, I think my fps is low because I had coupled AcquireNextFrame with some of my logic. Im gonna add some threading. :maxpain:
qqdev
qqdev6mo ago
:harold:
Daniel
DanielOP6mo ago
I'm so glad I don't have to optimize stuff like this normally.
Buddy
Buddy6mo ago
What are you even doing?
Daniel
DanielOP6mo ago
Automating a game
Buddy
Buddy6mo ago
Which game
Daniel
DanielOP6mo ago
:yep:
Want results from more Discord servers?
Add your server