multiple /dev/video for one physical device
Since upgrading from ubuntu 16.04 to 18.04 (kernel 4.15 generic) to 18.04 (kernel 5) v4l2 now returns multiple /dev/video devices per physical device. This causes issues when trying to map video devices to aliases using udev rules. One of the /dev/video devices can stream video, the other cannot. The udev alias I've created does not seem to consistently choose the correct /dev/video index.
`v4l2-ctl --list-devices`
returns:
```
USB2.0 PC CAMERA: USB2.0 PC CAM (usb-0000:
/dev/video4
/dev/video5
USB_Camera: USB_Camera (usb-0000:
/dev/video0
/dev/video1
HD Pro Webcam C920 (usb-0000:
/dev/video6
/dev/video7
USB2.0 HD UVC WebCam: USB2.0 HD (usb-0000:
/dev/video2
/dev/video3
```
I see someone has a similar question on stack exchange:
https:/
I'm using Ubuntu 18.04 with kernel `5.0.0-27-generic`
Here's the versions of various v4l packages I have installed:
```
ii libv4l-0:amd64 1.14.2-1 amd64 Collection of video4linux support libraries
ii libv4l-dev:amd64 1.14.2-1 amd64 Collection of video4linux support libraries (development files)
ii libv4l2rds0:amd64 1.14.2-1 amd64 Video4Linux Radio Data System (RDS) decoding library
ii libv4lconvert0:
ii v4l-utils 1.14.2-1 amd64 Collection of command line video4linux utilities
```
here's an excerpt from `lsusb`:
`Bus 001 Device 017: ID 0458:708c KYE Systems Corp. (Mouse Systems) Genius WideCam F100`
and the associated udev rule:
```
KERNEL=="video?", SUBSYSTEM=
```
Any input would be greatly appreciated
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- kris
- Solved:
- Last query:
- Last reply: