Created
October 5, 2017 15:39
-
-
Save fepa/3848a81a847b86d107b2c47886002c34 to your computer and use it in GitHub Desktop.
Snippet to stream the desktop as a virtual webcam device
This file contains 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
# | |
# source this file to enable a virtual webcam | |
# that is a stream of the desktop | |
# | |
sudo modprobe v4l2loopback exclusive_caps=1 | |
ffmpeg -f x11grab -r 15 -s 360x480 -i :0.0+0,0 -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment