Ubuntu 20.4 Guest and Webcam Broke?

Discussions related to using VirtualBox on Windows hosts.

Ubuntu 20.4 Guest and Webcam Broke?

Postby Rayj2016 » 19. Apr 2021, 20:31

I have VirtualBox Version 6.1.18 r142142 (Qt5.6.2) installed on Windows 10 Pro.
I have created an Ubuntu 20.4 Desktop, The VM seems to run pretty slow but
the issue I am having is Webcam related.

First, I run the tests at https://webcasts.com/webrtc from my host Windows 10 and it
passes everything with flying colors.

Next, I fire up the Ubuntu VirtualBox, configure the USB settings to my webcam and
run the webrtc tests. It has a couple of errors: For the Audio tests, there is one FAILED test:

[FAILED} No active input channels detected. Microphone is most likely muted or broken, please check if muted in the sound
settings or physically on the device. Then rerun the test.

For the video tests:
[WARN] Your camera reported itself as muted.
[INFO] isMuted: true
[INFO] Cannot verify sent FPS.
[FAILED] Incorrect captured resolution.
[FAILED] Camera delivering lots of black frames.

I've attached VBox.log

I also noticed the only way to return the Webcam to the host is to power down the VM.

Ideas?

Thanks,

Ray
Attachments
Desktop-2021-04-19-14-16-14.log
(84.53 KiB) Downloaded 3 times
Rayj2016
 
Posts: 51
Joined: 11. Jul 2015, 22:33

Re: Ubuntu 20.4 Guest and Webcam Broke?

Postby Rayj2016 » 19. Apr 2021, 22:56

Ok, I managed to get around these issues by changing the VM USB setting to USB 3.0 (xHCI) Controller!!!
I can't explain why this fixed it. My camera is not a USB 3.0 camera.

I suspect there were some development fixes that were put in 3.0 that didn't get put in 2.0 or 1.0 code?
(3.0 is supposed to be backward compatible with 2.0?)

Anyway, all is well now.

Ray
Rayj2016
 
Posts: 51
Joined: 11. Jul 2015, 22:33

Re: Ubuntu 20.4 Guest and Webcam Broke?

Postby scottgus1 » 19. Apr 2021, 23:12

Great that you kept hunting for a solution!

The gurus have said that the USB 3 implementation is better than the 1 & 2 implementations. Maybe that is helping.
scottgus1
Site Moderator
 
Posts: 12028
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Ubuntu 20.4 Guest and Webcam Broke?

Postby Rayj2016 » 20. Apr 2021, 00:56

scottgus1 wrote:Great that you kept hunting for a solution!

The gurus have said that the USB 3 implementation is better than the 1 & 2 implementations. Maybe that is helping.


Thanks. I needed webcam working on VBox so I can do some development.

Ray
Rayj2016
 
Posts: 51
Joined: 11. Jul 2015, 22:33


Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: No registered users and 39 guests