Created
April 29, 2020 00:19
-
-
Save nicopace/a27d44cbd0c1753a10ff6e64fac732f0 to your computer and use it in GitHub Desktop.
use a window as a webcam
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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