usbipd: Failed to stream video from WSL2 /dev/video0
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
Running `sudo v4l2-ctl --list-devices` provides.
```
C270 HD WEBCAM (usb-vhci_hcd.0-1):
/dev/video0
/dev/video1
/dev/media0
```
This probably should say that WSL is able to detect the device as a camera. The problem is these files are `root` access only.
```
crw------- 1 root root 81, 0 Sep 12 22:26 /dev/video0
crw------- 1 root root 81, 1 Sep 12 22:26 /dev/video1
```
When I am trying to open chrome or cheese even with `sudo`, both are unable to detect any camera devices. Please let me know what extra information I can provide. The output of `uname -a` is
```
Linux SilverSword 5.15.57.1-microsoft-standard-WSL2+ #2 SMP Mon Sep 12 21:55:04 CDT 2022 x86_64 x86_64 x86_64 GNU/Linux
```
Contributor guide
Research direction
Start with the reported v4l2-ctl device listing, /dev/video0 and /dev/video1 permissions, and the WSL2 kernel details in the issue. Reproduce the behavior with Chrome or Cheese and determine why the detected camera devices cannot be opened; done means the cause and required fix are documented or verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100