-
Notifications
You must be signed in to change notification settings - Fork 376
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
Support for webcam sharing #75
Comments
Does not work here, too. Neither Something is missing. I did not try to share USB devices, but that should not be needed. Searching in the web does not give a hint. |
Progress!
|
It looks like webcamoid recognizes my webcam but I don't have a video from webcam. Video from screen is working. Maybe cheese needs some additional packages? |
This one works here:
The missing key was
I am not sure. Adding |
I've no luck with the debian dockerfile. Yes, I use an Arch build. Maybe it's related to my host system or webcam. I've shared I will try some mesa packages in the next days. |
Can you show me your arch Dockerfile? |
My dockerfile is a bit complicated, because it depends on two other Docker images but it should be (added mesa-demos).
This is the
I get also some strange errors from the logs:
There exists different webcamoid packages. |
I've tried your Dockerfile, but the build fails. (I've added missing
it fails with error message:
|
This arch based
|
Interesting, guvcview works out of the box with my arch nvidia image. I use Do you have also a |
Glad to hear that. :-) Does it fail without nvidia driver in image? I would assume that it works with software rendering of free MESA if you don't use Strange that you succeed with
I have
Would need to test it - how do I use the webcam in chromium or firefox? |
I've added a new option Aside from that, I did some deep changes in the code to improve handling of environment variables, shared volumes and capabilities. I hope it does not break anything. |
Yes, maybe some dependencies are missing. Yes, I'm aware of auto installing NVIDIA drivers. But I use many Docker images and a base image ensures same driver versions on host/container.
I've got some alsa errors, but I guess it's not needed because the webcam records audio/video? I can not confirm that I have audio output.
Same here, it appears (video0 and video1) if I connect my webcam via USB.
You can open a free video conference here appear.in/x11docker. The browser should ask to get access to the webcam/microphone. If it works, you should see you :D |
No worries, I will open an issue. :D |
ok, I can see myself in containered firefox ;-) |
Awesome 👍 It works for me in browser too, sometimes. Connection to webcam can not be always initialized. This is weird. I will investigate it further, but it looks like sharing |
I have similar issues with
Option I did some further trials with |
I got
|
Cheese is something special, it hangs if I use systemd with the additional packages. But it works now in my browser. It looks like, that if something crashes or does not release the webcam correctly, it does not work until replug / reboot. Thank you for the |
I did a fix for
Do you think it is not released especially by applications in x11docker, or may it be a general issue on your system?
You are welcome. :-) Thanks for asking for it, it is a nice feature. I never thought of it because I don't use a webcam myself. Two new shortcut options in last update, you may find them useful, too:
|
Good news! I found in #86 that |
Any idea how to share a webcam to a Docker container? My webcam is working fine on host e.g. via cheese. If I share the device
/dev/video0
and/dev/video1
and the webcam usb device, cheese can not find the webcam. I've also tried different things like--sys-admin --cap-default --gpu
.Does simply sharing webcam device work for you like it's mentioned on stackoverflow?
The text was updated successfully, but these errors were encountered: