And most importantly. How can I record only one window?
If you can get the XID of the window, you can pass it to ximagesrc. E.g., if you know what the unique title of the Window is, you can use xwininfo and a little magic to get that. In bash:
TITLE="Terminal Six"
WINDOW_XID=$(xwininfo -tree -root -all | egrep $TITLE | sed -e 's/^ *//' | cut -d\ -f1)`
Now you can just pass that XID to ximagesrc, and of course, finish out the pipeline:
gst-launch-1.0 ximagesrc xid=$WINDOW_XID ! video/x-raw,framerate=30/1 ! videoconvert ! queue ! ...
And FYI, I'm showing you this using the 1.0 version of gstreamer. There is no more ffmpegcolorspace, you use videoconvert instead (latest versions of FFmpeg have had a name change to 'libav' so it's been renamed).
I suppose you have already tried
– user1686 – 2012-05-14T08:04:08.727man istanbul
?@grawity: I tried running
man istanbul
but there were no pages for istanbul. Also there is noistanbul
command available. Maybe Gnome 3 default recorder is not istanbul? What is it then? – seler – 2012-05-14T11:29:42.560