Dear lazyweb: Anyone know of a tool to offer a virtual webcam device on Linux that alters the available settings from a real one? Such as: limited resolutions or aspect ratio?
3
Might be over-kill, but can OBS do this?
1
I took a quick look at OBS but couldn't see a way to get it to emit a /dev/videoX device, or put another way, find a way of getting gchat to consume from OBS
2
You have to sort out a kernel module which lets OBS inject a fake camera into things. I sorted it all out in my nixos config but can't remember the details off the top of my head. Let me look it up
2
The module is v4l2loopback, with these options: options v4l2loopback exclusive_caps=1 card_label="Virtual Camera" Then OBS can feed that. You can then setup an OBS scene how you want it and export that as a camera for gmeet et al. to use.

Feb 24, 2022 ยท 4:19 PM UTC

1
1
This seems to work very well, thank you. I might even be able to replace obs with an ffmpeg invocation, and start/stop it whenever the base video device is hotplugged. Result! Coming to a google meeting near you: non-vstretched-Jon!
1
1