Deep-Live-Cam icon indicating copy to clipboard operation
Deep-Live-Cam copied to clipboard

Ubuntu 22.04 WSL 2 error: getStreamChannelGroup Camera index out of range

Open kirahman2 opened this issue 1 year ago • 2 comments

I ran

python run.py --execution-provider cuda

I got the error 2024-08-10 17:02:31.479672: E tensorflow/compiler/xla/stream_executor/cuda/cuda_driver.cc:266] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected [ WARN:[email protected]] global cap_v4l.cpp:982 open VIDEOIO(V4L2:/dev/video0): can't open camera by index [ERROR:[email protected]] global obsensor_uvc_stream_channel.cpp:156 getStreamChannelGroup Camera index out of range

Will there be support to detect a webcam from WSL linux? I am on a Windows 11 desktop.

kirahman2 avatar Aug 10 '24 22:08 kirahman2

I haven't followed a guide I will provide but it seems that Microsoft has excluded some drivers from WSL. To make the camera available within WSL you have to rebuild the WSL kernel with the necessary drivers (and also follow USB device sharing steps). Here is the tutorial: https://youtu.be/t_YnACEPmrM?si=1pJEIHi0JplAPMUE

I hope it works.

MartinsKMickus avatar Aug 11 '24 11:08 MartinsKMickus

I haven't followed a guide I will provide but it seems that Microsoft has excluded some drivers from WSL. To make the camera available within WSL you have to rebuild the WSL kernel with the necessary drivers (and also follow USB device sharing steps). Here is the tutorial: https://youtu.be/t_YnACEPmrM?si=1pJEIHi0JplAPMUE

I hope it works.

I had the same issue as the user above but the video you linked fixed it! thank you so much!!

thecanvasnursery avatar Aug 11 '24 23:08 thecanvasnursery