kerberos-io / web

(DEPRECATED) An open source GUI to configure the machinery and to view events that were detected by the machinery.
https://www.kerberos.io
225 stars 69 forks source link

List USB-devices in GUI #55

Open cedricve opened 8 years ago

cedricve commented 8 years ago

It should be possible to have a drop down to select an USB camera. This can be helpful if one or more USB devices are attached.

v4l2-ctl --list-devices

vgoncearencu commented 7 years ago

In case an USB camera is selected another good command is "v4l2-ctl --list-formats-ext" that outputs the list of possible width & height dimensions that usb camera can handle. This info can be used in the web interface to set the desired width & height for the camera.

$ v4l2-ctl  --list-devices
USB Camera (041e:401f) (usb-0000:00:13.1-1):
    /dev/video0

$ v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
    Index       : 0
    Type        : Video Capture
    Pixel Format: 'JPEG' (compressed)
    Name        : JFIF JPEG
        Size: Discrete 320x240
        Size: Discrete 640x480