user973756
user973756

Reputation: 41

caputre OpenGL window in X11 with fast framerate - possible?

I have an OpenGL application with the size of 800x600 running on my linux machine (X11). The content of this application (the rendered image) should be exported via network to another PC. First of all, i want to know if it is possible to take snapshots of the applications window with about 30 Hz, save them to jpeg and export them to the other machine via HTTP or whatever (like the IP Cameras are doing). Is it possbile to read the graphic's cards memory (Radeon HD 5800) in a fast way so that i can get a framerate of about 30 pictures per second?

Upvotes: 4

Views: 608

Answers (2)

datenwolf
datenwolf

Reputation: 162164

You may want to take a look at VirtualGL which does exactly what you aim for.

Upvotes: 1

genpfault
genpfault

Reputation: 52085

If you're willing to tolerate some latency Pixel Buffer Objects (PBOs) should get you some decent read-back throughput.

libjpeg-turbo looks like a good solution for high-speed JPEG encoding.

If you don't have the source to the app you're trying to monitor then LD_PRELOAD hacks combined with the above should work.

Upvotes: 2

Related Questions