I need to capture the screen of the second display and "monitor" it in the main display, inside a window (scaled at x0.5 and with neighbor interpolation because I prefer performance against quality). From this link, I've got this screencast command:
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
... but it capture to a file (not a window), it's missing the scale and interpolation type, the sounds is not necessary, etc.
As I'm familiar with libav, what I'm looking for is something similar to this:
avconv -f x11grab -r 30 -s 1280x1024 -i :0.1 -c:v mpeg4 -b:v 1000k
-vf "hflip" -vf "scale=640:480" -sws_flags "neighbor" -f avi - | avplay -i -
... I would use it, but it has some problems with the framerate (asked here). So, I'm looking for an alternative in Gstreamer.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…