Open cedricve opened 8 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
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