I am trying to set up a greenscreen effect for a video conference in Google Meet, which runs in a web browser, in this case Google Chrome. As an initial test I have set up a V4L2 loopback device and am feeding it a video as outlined in this answer. However, when I go to select the device, I only see the build-in webcam, with no option for the second video source I have added which is showing up as /dev/video2. I also went to chrome://settings/content/camera and it is not showing my new video source. I also tried restarting Chrome, but it still does not show up.
I am able to run ffplay on /dev/video2 and it shows my video, so I know that part is working!
How do I get Google Chrome to recognize my second video source?
(Running Ubuntu 18.04 LTS)
exclusive_caps
and give a name to the virtual camera like sosudo modprobe v4l2loopback exclusive_caps=1 card_label="MyLaptopCam:MyLaptopCam"
and to try the note on "To use it with Google Hangouts" at the end of the accepted answer.exclusive_caps
is meant to enable google chrome to see the virtual camera. – Raffa May 11 '20 at 23:14apt policy v4l2loopback-utils v4l2loopback-dkms
. if the installed version is less than0.12.2-1
then you might need to upgrade. – Raffa May 11 '20 at 23:23