Webcam

The following kernel options need to be activated:

Device Drivers  --->

<*> Multimedia support  --->

Media device types  --->

[*] Cameras and video grabbers

Video4Linux options  --->

[*] V4L2 sub-device userspace API

Media drivers  --->

[*] Media USB Adapters  --->

   USB Video Class (UVC)

[*]   UVC input events device support

To configure your Webcam, use this:

media-tv/v4l-utils

Recommended Use Flags: opengl qt5 udev

Test/Check settings with

/usr/bin/qv4l2

Get Settings from Video Device

v4l2-ctl --list-formats-ext

Set Settings

/usr/bin/v4l2-ctl --set-parm=30 --set-fmt-video=width=1280,height=720,pixelformat=MJPG --device /dev/video0

--set-parm= Framerate

--set-fmt-video=Resolution+Compression

Make Options persistent
Getting Device Info

lsusb

/etc/udev/rules.d/99-v4linux.rules

SUBSYSTEM=="video4linux", SUBSYSTEMS=="usb", ATTRS{idVendor}=="5986", ATTRS{idProduct}=="0268", PROGRAM="/usr/bin/v4l2-ctl --set-parm=30 --set-fmt-video=width=1280,height=720,pixelformat=MJPG --device /dev/%k"