Can you control things like viewing angle, zoom, fps, and video resolution for a webcam connected to Ubuntu, through a standard set of commands or API?
As a case in point, the Logitech Brio 4K Ultra HD. This camera seems to be advertised to allow adjustments of those properties that I just mentioned above, and I am wondering whether controlling them is accessible via any standard linux command-line (or standard programming API).
Typically I had good experience with all Logitech devices in Ubuntu but these features I've never experienced adjusting from/in Ubuntu.
Motivation note: I could use these features for acquiring indoors imagery for a machine learning project and the ability to adjust those properties could be important. That aside, these abilities might bear on how much all the sophistication built into this device actually leverages for quality in more mundane use cases like video chat.
You can customize a lot of settings using
guvcview
.Install with:
To select which webcam to use, click in the Video tab, then select your device (Brio). In the confirm dialog, select to Restart.
Unfortunately it miss
angle
setting.According to https://help.ubuntu.com/community/Webcam, one should consult the supported devices list in http://www.ideasonboard.org/uvc/, the main vehicle for webcam customization in Ubuntu. The model I have mentioned in this question isn't (currently) there, but many other Logitech models are.
Here's one account of the compatibility of the Logitech Brio too (see the Q&A in the comments trail there). Looks like most of the above is adjustable from Ubuntu to judge by that, although I have not tried myself.
I believe however that fps and resolution are selected by the application using the camera (maybe on the video acquisition API / protocol used by each application) and likely not set as a global configuration for the device. If that's not the case please do post a correction comment!
In general, fiddling camera settings is enabled via the v4l2 CLI, which you can use to inquire and change the camera's settings even while it is in use. See for example here. Here's my output from
v4l2-ctl -l
for this camera:I can confirm that zoom, auto-focus (on/off) and focus can be set via this utility, but other properties may require using a lower-level utility from the v4l2 suite, or are not supported by this model.
I have the exact same model and run ubuntu 20.04
guvcview
kinda works, but lags and crashesv4l-utils
does everything you need, but you need to use it from the terminal.gtk-v4l
on github provides a GUI if you need it.Install
Find you webcam
you might have multiple. Also, for some reason, it may list two devices per camera, pick first.
The output should be something like
Tweak
Get Controls
Let's see what we can control
The output should be something like
Example: change angle to look down
This works when tweaking zoom/skype, but in the ubuntu testing utility "cheese" some settings take no effect.
Update: other control options added, if like me you were looking for these.