Skip to content

Instantly share code, notes, and snippets.

@nicopace
Created April 29, 2020 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicopace/a27d44cbd0c1753a10ff6e64fac732f0 to your computer and use it in GitHub Desktop.
Save nicopace/a27d44cbd0c1753a10ff6e64fac732f0 to your computer and use it in GitHub Desktop.
use a window as a webcam
modprobe v4l2loopback video_nr=3
gst-launch-1.0 -v ximagesrc startx=1 starty=1 endx=320 endy=240 ! videoconvert ! "video/x-raw,format=YUY2" ! tee ! v4l2sink device=/dev/video3
# you can also use gst-launch to select a window https://superuser.com/questions/709866/ffmpeg-x11grab-a-single-window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment