Hi Charles,

I do not have what you want, but maybe this is still helpful to someone:
I am capturing (visible) screen areas with GTK in a Python script, using a snippet from StackOverflow [1]. This works for my needs (streaming a small area of the screen to an OLED display at ~ 20 fps) and does not consume a lot of resources. I also found another discussion on StackOverflow regarding GL/XShmImage with some more links in the comments [2].

Best,
Raphael

[1] http://stackoverflow.com/questions/69645/take-a-screenshot-via-a-python-script-linux [2] http://stackoverflow.com/questions/6063329/screenshot-using-opengl-and-or-x11



On Tue, 20 Nov 2012 20:03:05 +0100, charles quarra <[email protected]> wrote:

Hi,

this ML seems a bit inactive, but i thought to take a shot and see if
there is still life :)

i need a method to capture the pixel images of one or more windows
(the programmatic equivalent of alt-print screen in windows) running
on a X11 diplay. The `import` command line sort of half-does it, but
it is very slow, and i need this for screen capturing, so it needs to
be done ideally at the very least 10-20 frames per sec.

Further requirements:

1) Even if a new window is placed on top of the window that is being
captured, the pixel image should still point to the original
application window without any occlusion

2) it is not needed that the application window to be seen by the
user, i just need to store the pixel buffers/images for video purposes


Any ideas if i can achieve this in some form with compiz manager?

other alternatives that i've explored are:

1) xvfb - it works but it does does CPU rendering, which is slow and
wasteful of a good GPU
2) x11 inside many lxc - theoretically could work but is complex to
setup, and i'm not sure it will scale well with many windows being
captured

suggestions and ideas are welcome
_______________________________________________
dev mailing list
[email protected]
http://lists.compiz.org/mailman/listinfo/dev



--

Dipl.-Medieninf. Raphael Wimmer
Wiss. Mitarbeiter / Research Assistant
Doktorand / PhD student

Ludwig-Maximilians-Universität München   E-Mail: [email protected]
LFE Medieninformatik                     Skype:  real_raphman
Amalienstr. 17 / Raum 206 WWW: http://www.medien.ifi.lmu.de
80333 München                            Tel:    +49 (89) 2180-4659
Germany                                  Fax:    +49 (89) 2180-99-4659
_______________________________________________
dev mailing list
[email protected]
http://lists.compiz.org/mailman/listinfo/dev

Reply via email to