Skip to content

Instantly share code, notes, and snippets.

@frasertweedale
Last active September 21, 2020 00:19
Show Gist options
  • Save frasertweedale/5219551 to your computer and use it in GitHub Desktop.
Save frasertweedale/5219551 to your computer and use it in GitHub Desktop.
gstreamer record screencast pipeline
gst-launch \
ximagesrc startx=0 starty=0 endx=1600 endy=1200 \
! ffmpegcolorspace \
! queue \
! vp8enc max-latency=25 threads=4 \
! mux. \
pulsesrc device=alsa_input.usb-045e_Microsoft_LifeChat_LX-3000-00-LX3000.analog-mono \
! audio/x-raw-int \
! queue \
! audioconvert \
! vorbisenc \
! mux. \
webmmux name=mux \
! filesink location=screencast.webm
@MarioMey
Copy link

What if I want to capture the second display and output to a window in the main display, not to a file? Also, scaled to 640x480 with neighbour interpolation and horizontal mirror, no sound...

It would be to monitor what's happening in the second display, if I can't watch it.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment