I'm looking for a way to add overlay to my current Windows game, such as OBS (the streaming game application used for Twitch).
Iām at least talking about using the Robot class to take 25/30 screenshots every second and display them, but I'm not sure what the right solution is ..
So my question is this: how can I make a screenshot application for a Java application (localhost, the same computer) to add an inscription in front of it?
EDIT : I tried to use VLC streaming video, but it makes the computer very slow (i7 / 8Gb) ... I also tried with FFMpeg using screen-capture-recorder and gdigrab , the computer was not laggy, but the video crashes like 5/10 FPS in real time.
In FFMpeg, I used the following command: ffplay -f dshow -f gdigrab -i title="<NAME>" -framerate 30 .
I would like to have 25/30 FPS with a gaming computer (i7 / 8Gb).
java swing overlay
Val
source share