Windows 10 WSL and USB Camera Capturing

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
Rayj00
Posts: 39
Joined: Mon Jan 09, 2023 3:56 pm

Windows 10 WSL and USB Camera Capturing

Post by Rayj00 »

Cannot start capturing with webcam.

On the WSL, I have:
joe@Rays-Win10:/dev$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 046d:085c Logitech, Inc. C922 Pro Stream Webcam
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I don't see a "video" in the /dev directory?

So how do I configure Source (Device Path, Device Channel, etc.)?

Thanks,

Ray
Rayj00
Posts: 39
Joined: Mon Jan 09, 2023 3:56 pm

Re: Windows 10 WSL and USB Camera Capturing

Post by Rayj00 »

I forgot to mention that I also have an IP camera installed and working fine. Maybe you can get a clue from that?
Rayj00
Posts: 39
Joined: Mon Jan 09, 2023 3:56 pm

Re: Windows 10 WSL and USB Camera Capturing

Post by Rayj00 »

Looks like the WSL does not have the proper drivers for the USB Camera.

So I'm off to attempt to tackle rebuilding the kernel.

Please say a prayer for me!! :)

I'll let ya'll know how this goes.

Ray
Rayj00
Posts: 39
Joined: Mon Jan 09, 2023 3:56 pm

Re: Windows 10 WSL and USB Camera Capturing

Post by Rayj00 »

So, I rebuilt the WSL kernel to include USB and video drivers. Now I can display video in the WSL Ubuntu Linux using the guvcview utility tool.
That pretty much proves the kernel is working properly.

Now, why can't I see the video in ZM?

Any trouble shooting ideas?

Thanks,
Ray
Rayj00
Posts: 39
Joined: Mon Jan 09, 2023 3:56 pm

Re: Windows 10 WSL and USB Camera Capturing

Post by Rayj00 »

Maybe this helps:

joe@Rays-Win10:/dev$
sudo zmu -d /dev/video1 -q -v
WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
02/14/24 17:45:08.831528 zmu[5539].ERR-zm_local_camera.cpp/1469 [Failed to query crop capabilities: Inappropriate ioctl for device]

02/14/24 17:45:08.831654 zmu[5539].ERR-zm_local_camera.cpp/1521 [Failed to enumerate input 0: Inappropriate ioctl for device]

Video Device: /dev/video1
General Capabilities
Driver: uvcvideo
Card: C922 Pro Stream Webcam
Bus: usb-vhci_hcd.0-1
Version: 5.15.133
Type: 0x84a00001
Supports video capture (X)
Does not support video output
Does not support frame buffer overlay
Does not support VBI capture
Does not support VBI output
Does not support sliced VBI capture
Does not support sliced VBI output
Does not support video output overlay
Does not have tuner
Does not have audio in and/or out
Does not have radio
Does not support read/write i/o (X)
Does not support async i/o
Supports streaming i/o (X)
Standards:
Formats:
Crop Capabilities
Cropping is not supported
Error, failed to enumerate input 0: Inappropriate ioctl for device
Post Reply