I’m currently using the Robot classes in Java to record the screen. However, it does not achieve the minimum of 30 frames per second. I’m not re-creating objects, and am being as efficient as I can, but I only average around 15 frames per second. Robot is simply not cutting it.
What can I use to capture the screen? I’ve tried Xuggle, but I can’t seem to get that to capture fast enough either.
For operating systems following the X11 standard (Linux, FreeBSD, Solaris, etc.), we can do it this way via JavaCV and FFmpeg:
I don’t know about Windows or Mac OS X, but I suspect we would need to access native APIs directly. Nevertheless, JavaCPP could help with that.