Dynamic video device allocation for USB Camera

Hi all,

I am testing USB camera in Debian , kernel -4.14.96 kernel. The video device is allocated in different devices /dev/video(0,1,8,9,10).
Is there any way to fix the allocation into one video device ?


Not really, but you can use /dev/v4l/by-id/... which should be constant.

Hi Loic,

Thanks for your response,

I have created a symbolic link using the following command
SUBSYSTEM==“video4linux”, ATTR{name}==“USB”, GROUP=“video”, SYMLINK+=“usbcamera” in /etc/udev/rules.d/42-usbcamera.rules file.

The symbolic link is created from allocated video device to /dev/usbcamera. When I tested USB camera preview using VLC player, I couldn’t use the /dev/usbcamera in applications It didn’t show /dev/usbcamera as a available device.

Can you suggest some pointers regarding this issue.