Record only one window, Gnome

Record only one window, Gnome

https://superuser.com/a/566727

TITLE=”Terminal Six” WINDOW_XID=$(xwininfo -tree -root -all | egrep $TITLE | sed -e ‘s/^ *//’ | cut -d\ -f1)`

gst-launch-1.0 ximagesrc xid=$WINDOW_XID ! video/x-raw,framerate=30/1 ! videoconvert ! queue ! …

gst-launch ximagesrc ! ffmpegcolorspace ! queue ! vp8enc quality=10 speed=2 ! mux. alsasrc ! audio/x-raw-int ! queue ! audioconvert ! vorbisenc ! mux. webmmux name=mux ! filesink location=screencast.webm

Watermark image

convert -density 150 -fill “rgba(255,0,0,0.25)” -gravity Center -pointsize 80 -draw “rotate -45 text 0,0 "$2"” “$1” “$3” From https://twitter.com/_trou_/status/1313951783182651393