I was able to stream desktop in virtual webcam using this command:
sudo modprobe v4l2loopback exclusive_caps=1 && v4l2-ctl --list-devices && ffmpeg -f x11grab -r 20 -s 400x400 -i :0.0+50,100 -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video1
After installing all dependencies on ubuntu 17.04 the desktop streaming does not work and I see only a black screen.
Are there any alternatives that would allow me to record desktop and share it in a webcam?
I want to work with the desktop recording in webcam because of opencv.
I could not find any other working alternative.
Can't install this one because of
E: The repository 'https://content.runescape.com/downloads/ubuntu trusty InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
Open Broadcaster Software
This one looked amazing until I found out that it cannot stream the desktop into a webcam for some reason...