Problem with webcam

I installed yesterday VirtualHere on my Synology NAS DS112+ (without any problems). Than I downloaded and installed VirtualHere USB client for x64 version for my Windows 8. I connected to NAS Creative WebCam Live! and USB pendrive. USB pendrive was working fine and I could use it without any problems. The problem was with the webcam, when I choose "Use" VirtualHere USB client it connects webcam and after around one second disconnect it. When I choose to connect automatically it does exactly the same but in a loop (connects, disconnects), like someone plug in and plug out device from USB port of the laptop.

Camera works properly connected directly to laptop with Windows 8 x64. I am using following driver for webcam:
http://support.creative.com/downloads/download.aspx?nDownloadId=924 (Creative WebCam Live! x64 driver 2.00.06.0000)

I was rebooting both NAS and laptop few times, installing and uninstalling webcam drivers and VirtualHere USB client, rung VirtualHere USB client with administrative rights still no luck.

PS: I checked this webcam with other laptop with Windows 7 x64 and it workproperly when connected directly , but through VirtualHere USB client for x64 same problem as mentioned above.

What could be the reason of this problem? I can provide you adress to my NAS, so you can verify problem directly.

#2

Hi Tralek,

Could do try the following:

1. Download http://www.bustatech.com/webcamviewer-a-simple-viewer-for-webcam/ (the download is towards the middle of the page)
2. Unzip the file and run WebCamViewer_V1.0.exe
3. In VirtualHere Click Use to start the device sharing
4. You will see the device appear in the dropdown in WebcamViewer, set the resolution to 320x240 or 160x120 and see if it works.

Michael

In reply to by Michael

#3

I will try today in the evening, but I don think that will help. After I click "Use" to start device sharing, it appears only for a second or less in Windows Device Manager and disappear. Same happen in VirtualHere client, after I click "Use" device disappear from the list and than appear again. So I will not have even enough time to switch to WebCam Viewer application.

When I used pendrive and I click "Use" I saw text right next to pednrive in VirtualHere device is in use and I could watch HDTV movie from pendrive without any problems (pendrive is USB 2.0). When I click "Use" on webcam I do not even see that text that it is in use. Device disappears almost immediately from list and appear again.

#4

Actually yes sorry, because it disappears so quickly running the viewer will likely not work. I tested with my webcam Logitech C250 and didnt have any issues but perhaps your model is not compatible.

Could you do the following:
1. ssh to your NAS
2. email me the /var/log/messages file. That will contain error messages when trying to share the webcam.

Thanks,

Michael

#5

Thanks for your help. Messages from /var/log/message below.

1. Plug-in of webcamera to USB port of NAS:

Aug 21 16:57:09 kernel: [71337.860000] Got empty serial number. Generate serial number from product.
Aug 21 16:57:11 hotplugd: ##### ACTION:add
Aug 21 16:57:11 hotplugd: DEVICE:/proc/bus/usb/002/088
Aug 21 16:57:11 hotplugd: DEVPATH:2-3
Aug 21 16:57:11 hotplugd: SUBSYSTEM:usb

2. Switch on VirtualHere on laptop with "Auto-connect" option on webcam enabled:
Aug 21 16:59:54 kernel: [71503.060000] usb 2-3: lock for hub EH
Aug 21 16:59:55 kernel: [71504.180000] usb 2-3: unlock for hub EH
Aug 21 16:59:55 vhusbd: Failed to reap URB, No such device
Aug 21 16:59:57 hotplugd: ##### ACTION:remove
Aug 21 16:59:57 hotplugd: DEVICE:/proc/bus/usb/002/088
Aug 21 16:59:57 hotplugd: DEVPATH:2-3
Aug 21 16:59:57 hotplugd: SUBSYSTEM:usb
Aug 21 16:59:57 kernel: [71506.340000] Got empty serial number. Generate serial number from product.
Aug 21 16:59:57 kernel: [71506.350000] usb 2-3: lock for hub EH
Aug 21 16:59:58 kernel: [71507.470000] usb 2-3: unlock for hub EH
Aug 21 16:59:59 vhusbd: Failed to reap URB, No such device
Aug 21 17:00:00 hotplugd: ##### ACTION:add
Aug 21 17:00:00 hotplugd: DEVICE:/proc/bus/usb/002/089
Aug 21 17:00:00 hotplugd: DEVPATH:2-3
Aug 21 17:00:00 hotplugd: SUBSYSTEM:usb
Aug 21 17:00:01 kernel: [71509.630000] Got empty serial number. Generate serial number from product.
Aug 21 17:00:01 hotplugd: usb_get_device_id.c:49 Get usb info failed, DEVICE=/proc/bus/usb/002/089
Aug 21 17:00:01 hotplugd: hotplugd.c:785 Get usb id failed, DEVICE=/proc/bus/usb/002/089, error=Interrupted system call
Aug 21 17:00:01 hotplugd: hotplugd.c:1409 failed to setup usb config, (DEVPATH, DEVICE, ACTION, DEVNAME, INTERFACE)=(2-3, /proc/bus/usb/002/089, add, , )
Aug 21 17:00:01 hotplugd: ##### ACTION:remove
Aug 21 17:00:01 hotplugd: DEVICE:/proc/bus/usb/002/089
Aug 21 17:00:01 hotplugd: DEVPATH:2-3
Aug 21 17:00:01 hotplugd: SUBSYSTEM:usb
Aug 21 17:00:01 kernel: [71509.640000] usb 2-3: lock for hub EH
Aug 21 17:00:02 kernel: [71510.780000] usb 2-3: unlock for hub EH
Aug 21 17:00:02 vhusbd: Failed to reap URB, No such device
Aug 21 17:00:02 vhusbd: Cancelling urb ioctl failed, No such device (19)
Aug 21 17:00:03 hotplugd: ##### ACTION:add
Aug 21 17:00:03 hotplugd: DEVICE:/proc/bus/usb/002/090
Aug 21 17:00:03 hotplugd: DEVPATH:2-3
Aug 21 17:00:03 hotplugd: SUBSYSTEM:usb
Aug 21 17:00:04 kernel: [71512.940000] Got empty serial number. Generate serial number from product.
Aug 21 17:00:04 vhusbd: Unbinding /devices/pci0000:01/0000:01:01.0/usb2/2-3, 1 outstanding in-flight URBs!
Aug 21 17:00:04 hotplugd: usb_get_device_id.c:49 Get usb info failed, DEVICE=/proc/bus/usb/002/090
Aug 21 17:00:04 hotplugd: hotplugd.c:785 Get usb id failed, DEVICE=/proc/bus/usb/002/090, error=Interrupted system call
Aug 21 17:00:04 hotplugd: hotplugd.c:1409 failed to setup usb config, (DEVPATH, DEVICE, ACTION, DEVNAME, INTERFACE)=(2-3, /proc/bus/usb/002/090, add, , )
Aug 21 17:00:04 hotplugd: ##### ACTION:remove
Aug 21 17:00:04 hotplugd: DEVICE:/proc/bus/usb/002/090
Aug 21 17:00:04 hotplugd: DEVPATH:2-3
Aug 21 17:00:04 hotplugd: SUBSYSTEM:usb
Aug 21 17:00:04 kernel: [71512.950000] usb 2-3: lock for hub EH
Aug 21 17:00:05 kernel: [71514.090000] usb 2-3: unlock for hub EH
Aug 21 17:00:06 vhusbd: Failed to reap URB, No such device

etc.

#6

That strange, when virtualhere asks the kernel for the webcam the kernel disconnects the webcam instead of passing it to virtualhere. I think this webcam is not compatible at the moment with virtualhere on the DS112+.

#7

I found the issue and fixed it. (On synology nas's sometimes when a device is reset the synology nas will mistakenly disconnect it)

Please download version 1.6.3 of the server and version 1.7.9 of the client.

In the client right click on the Synology Hub -> Webcam -> Custom Event Handler

Paste the following line in there:

onReset.$VENDOR_ID$.$PRODUCT_ID$=

then click OK.

Now try to use your webcam. The DS112 is not very powerful so you need to have the webcam on the lower resolution possible i.e 160x120 or similar.

#8

Hi, I was having the same webcam issues and have a few follow up questions:

  • I downloaded the WebcamViewer and found that the connection seems stable at 1280x720@ 30fps, but no higher. The problem is that the software I'm using to connect to the webcam doesn't seem to have settings to use a particular resolution... so do you know any way to get Windows to enforce a maximum resolution on a webcam... or can VirtualHere pass along the webcam with some kind of enforced resolution limit?
  • I was trying to look at logs and I can't find any.... if I want to try to diagnose issues or come to this forum for help, seems like I will need these. I installed the server on a RaspberryPi 4 using the default instructions and when I ssh into that box it seems like there are no logs in /var/log/syslog. In fact, there is no syslog directory.
  •  
#9

You have to give me some background here, so you are running virtualhere server on a pi4 with which webcam model?  And you ar running the virtualhere client on windows 11? And these are in a LAN setup with ethernet cable, or wifi?

#10

Thanks for responding so quickly. Yes, I'm running the server on a pi4 and the client is on windows 11.

I'm not sure of the webcam model - it's attached to a laser engraver that I'm trying to use remotely. The machine has 2 usb outputs that I'm attaching to the pi4: one for the camera and one for the control board. The control board usb seems rock solid - it's just the camera that's the issue. In windows device manager, the camera comes up as SHUNCCM. 

These are running over wifi. I test my local network at the spot where the pi4 is a few times and got roughly 100down/100up. I moved it a few feet to a less obstructed spot and was getting more like 300x300.... I'm testing now to see if that helps at all.

#11

The improved wifi is changing nothing. The camera is even worse than before if anything. It connects and disconnects every few seconds. Note - I have already put in the onReset.$VENDOR_ID$.$PRODUCT_ID$= custom event handler.

#12

Its your wifi , you need to use ethernet

#13

Just tried ethernet... same exact behavior.

#14

Are you using Lightburn? There is a camera resolution option in the Edit ->Settings menu

The virtualhere server should easily be able to handle 1920x1080 well or up to 4k resolution with lower frame rate on the pi4.