After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 546932 - [ximagesrc] allow recording of specific window only
[ximagesrc] allow recording of specific window only
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.x
Other All
: Normal enhancement
: 0.10.31
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-08 13:12 UTC by Olivier Hervieu
Modified: 2011-09-20 12:11 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
ximagesrc: allow capturing a particular window (7.29 KB, patch)
2011-09-20 11:14 UTC, Vincent Penquerc'h
committed Details | Review

Description Olivier Hervieu 2008-08-08 13:12:07 UTC
ximagesrc is usefull when you want to made a screencast. But this plugin can record only the display (or part of it). 

The idea is to take, for source a window, identified by the X WindowID and record it. So if you move the window, you always record the contents of the window.
Comment 1 David Schleef 2008-08-08 17:50:30 UTC
Are you planning to work on this?  We don't keep track of enhancement requests that nobody is working on.
Comment 2 Olivier Hervieu 2008-08-11 08:14:03 UTC
No time for that now. I have a look on how to do this and it's a bit tricky i think (also, there's no projects who doing this...). But perhaps in late october..
Comment 3 Vincent Penquerc'h 2011-09-20 11:14:36 UTC
Created attachment 197035 [details] [review]
ximagesrc: allow capturing a particular window

A particular window may be selected using the new xid (X-Window
XID, eg a pointer) and xname (window title) properties. If both
are specified, the XID is used in preference, falling back to
xname if not found.

Default (if none of xid and xname are specified, or if no such
window is found) is to capture the root window.
Comment 4 Tim-Philipp Müller 2011-09-20 12:11:16 UTC
Pushed, thanks:

commit 82927d6bddf4212fb0a2dc99dbb7cd89be941592
Author: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Date:   Tue Sep 20 12:11:47 2011 +0100

    ximagesrc: add xid and xname properties to allow capturing a particular window
    
    A particular window may be selected using the new xid (X-Window
    XID, eg a pointer) and xname (window title) properties. If both
    are specified, the XID is used in preference, falling back to
    xname if not found.
    
    Default (if none of xid and xname are specified, or if no such
    window is found) is to capture the root window.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=546932

Changed the GST_WARNING in the set_property func to g_warnings, since it's a programming error really.