This is a cache of https://discuss.96boards.org/t/dynamic-video-device-allocation-for-usb-camera/10065. It is a snapshot of the page at 2024-09-20T13:12:32.797+0000.
Dynamic video device allocation for USB Camera - DragonBoard 820c - 96Boards Forum

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 ?

Regards,
Ajith.

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.

Regards,
Ajith.