Problem accessing the webcam inside DeepStream container from WSL2

Hardware Info:
*• Hardware Platform : GPU
**• DeepStream Version: 7.0
**• NVIDIA GPU Driver Version: 560.94
**• Issue Type: Question

I have a problem accessing webcam in deepstream container inside WSL2.
I’ve attached the camera to WSL, and i can access it (i tried with guvcview) and when i run v4l2-ctl --list-devices i get the following result:

MX Brio 705 for Business (usb-vhci_hcd.0-1):
    /dev/video0
    /dev/video1
    /dev/media0

But when i run the container like this:

docker run -d --rm --gpus all -e DISPLAY=$DISPLAY -e CUDA_CACHE_DISABLE=0 -p 8554:8554 --device=/dev/video0 --name deepstream_project -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/administrator/deepstream-build:/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/apps/myapp/  -e "GST_DEBUG=1" deepstream_project

I cant access the webcam. Guvcview says no video found and when i run v4l2-ctl --list-devices i get this:

():
    /dev/video0

NOTE: I tried running other containers ( a basic ubuntu container) and i can access the webcam and when i run v4l2-ctl --list-devices i get this:

MX Brio 705 for Business (usb-vhci_hcd.0-1)
    /dev/video0

NOTE: I tried running my deepstream project on a ubuntu machine and it worked perfectly. But i want to be able to run it on WSL

I don’t know what else to do. Could you please help me somehow?

Have you tried our docker nvcr.io/nvidia/deepstream:7.1-triton-multiarch by referring to the run-deepstream-container.

Yes, I did and got the same problem

1.Could you try to add --privileged=true in the docker run command?

2.Could you also attach the command you used to run a basic ubuntu container?

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.