-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UVC Camera not working with Jitsi meet, works with onlinemictest, zoom #11229
Comments
What resolution does your camera provide? Can you reproduce it when accessing meet.jit.si ? |
Per the specs: The C920x (newer) provides 1080p/720p. I am able to reproduce this when accessing meet.jit.si: I tried Firefox (currently using flatpak, but tried deb and snap too), brave (Deb), and chromium (Deb). Same behavior as the jitsi flatpak app. |
For what it's worth, I have a UVC cam that I use to test Jitsi-meet, it's a no name brand and the OS is an elderly Ubuntu 18.04. It's working not well, but it has never worked reliably - it works for half an hour to one hour and then I have to reinitialize it, but it's not a new problem. And while it works, it works. As an aside try to not post links to test sites funded by advertisement, you can test your cam in a browser with a non commercial site. |
Thank you for the link to the debugging instructions and the community list - I wasn't aware of this before. That site was the only one I had been able to find which allowed me to successfully test my cameras. I've now edited my comments to link to webrtc test instead. On the other hand, I just tried the older jitsi version from fairmeeting.net, and got the same problem. This is the issue I see from Firefox (it asked me for audio, did not ask me for video access): I also tried with the Jitsi app, and get errors too: Even though this did start just a few weeks ago (I had videoconferenced with my friends using Jitsi meet with the same camera before that), I have noticed that Google meet has also started having the same issue. I will post more details if I am able to find more helpful info I can provide, either on suggestion, or from the troubleshooting link you provided. Thanks! I wonder if this is something to do with newer versions of either Ubuntu libraries or Kernel deprecating older calls that might be being used.. as some sites (the ad-funded free testing tool I linked above) are able to access the camera correctly? |
As of Chrome and Firefox versions, are you on fixed versions or do you follow the real time rolling of new versions ? I'm not convinced by the Ubuntu updates theory, since for desktop environment, Ubuntu is pretty conservative for graphic libraries in a given LTS version. The kernel can change but it's not usual that there are large changes unless you are asking for it (such as 4 -> 5). I think browsers change much more and faster. You can locate older Chrome versions following this link: Beware of the config directory, there is no descending compatibility. |
Thanks again for the chromium links: I am learning quite a bit here... I tried with the 2022-01-21 version (just a spot check) - that did not work. After, that, I tried with the 2021-11-08 version, this did not work as well. Posting a snapshot of the latter version below: |
Since I use Firefox as my daily driver and Brave as a fallback browser, I normally don't have Chromium installed (I only install it on occasion for testing if I have problems with the other two). I did remove |
Also, regarding the screenshot above: I am also able to use webrtc.github.io on the older Chromium browsers without issues. |
Can you try to install the v4l-conf and v4l-utils packages and run |
Sure. this is the output of v4l2-ctl --al
This is the output of v4l-info /dev/video0
|
|
Well, I have 2 other Linux computers with video capture devices and all 3 are very different from your device from a particular POV, they are all reporting a size that seems to be the max resolution: |
Agreed that 176x144 is much lower than it should be. One interesting thing I noticed is that running before and after launching jitsi (after reboot) yielded different results (though 640x480 is still much lower than what it should be). The resolution changes from 640x480 -> 176x144. The pixel format changes from MJPG to YUYV.
|
Note that I almost only use Chromium with Jitsi-meet and the reported resolution never changes. Let's try with Firefox - the same. And the supported format don't change either (I have 2 with only MJPEG, and one that supports MJPEG and YUYV. |
Thank you very much for all your help and suggestions on this! After wondering about the resolution and rebooting my computer a few times, I decided to try a direct connection to my desktop, as opposed to via the KVM switch (I have a multi-computer setup where I can switch between my laptop/work laptop/desktop). Directly plugging in the camera works, so presumably something in the KVM hop degraded the camera output, albeit recently. Directly connecting the camera gives expected high resolutions, e.g. with guvc running and with the appropriate resolution set, this is what I see:
The flatpak, and the browser versions of meet.jit.si work perfectly now. Sorry about the wild goose chase, this turned out to be a hardware issue. |
As an aside: I also see that webrtc test now shows a much better resolution for my camera as well. |
Was the USB cam switched through the KVM ? |
Yes, the USB camera was switched through the KVM, which should be why I ran into the issue across my laptop and desktop, which are completely different Ubuntu versions. It had been working fine earlier though. I guess something got broken in the hardware - I still switch most of my USB devices (Keyboard, mouse, speakers) through the switch. |
the fact that zoom, guvcview, were fine led to me not suspecting hardware at all. |
how to enable permission for UVC camera from React native side? any particular file name and line no.? |
It's now builtin on Android < 14. It should be listed together with other cameras. |
this is not the right answer for my question , right now jitsi-meet code not detected my uvc camera means it is not asking permission to access my usb camera , provide me react native code to enable usb camera permission also tell me where i need to put that code in this official repo : https://github.com/jitsi/jitsi-meet |
Yes it is the right answer. In the latest beta release, and also on master, UVC camera support is builtin. It's part of react-native-webrtc. |
i am using the latest jistsi-meet-master source code fetched yesterday and this repo not exposing any function from react-native-webrtc like getmediaUser or enumerated devices etc , so how can i access these functions in this repo : https://github.com/jitsi/jitsi-meet |
Description:
Jitsi meet (from flatpak app, Firefox, Brave, Chromium) gives me a Unable to access camera error. The same camera works fine with the webrtc test on the same browsers, as well as with the zoom app, guvcview, and cheese.
I only started having this issue a few weeks back. I've seen the same issue with:
With Firefox, I have also noticed that while the camera is not accessible from Jitsi meet online despite giving permissions, if I close the browser, it generates a crashscan in a few minutes - with the top frame of the stack trying to access the camera. I tried using a brand new camera, but got the same result. The fact that mictest can correctly detect and display my video in both my old and new cameras makes it look like it is something that is wrong with how Jitsi is trying to access the camera.
Steps to reproduce:
Prerequisites:
Expected behavior:
My camera should start streaming my video once I give permission
Actual behavior:
Server information:
Client information:
Additional information:
The text was updated successfully, but these errors were encountered: