首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在虚拟盒中从来宾访问网络摄像头的问题

在虚拟盒中从来宾访问网络摄像头的问题
EN

Ask Ubuntu用户
提问于 2020-05-06 13:43:59
回答 1查看 1.1K关注 0票数 0
  • 东道- 20.04
  • 嘉宾- 18.04
  • VirtualBox - 6.1.6_Ubuntu r137129

网络摄像机

  • 集成摄像头:联想EasyCamera
  • 优盘摄像头:网络摄像头C170

Tried:

  1. 安装客人附加
  2. 更新和升级
  3. 将用户添加到vboxgroup
  4. 安装guvcview,ffmpeg,乳酪
  5. sudo apt-get install build-essential linux-headers-``uname -r `

来自客户

的日志

dmesg|grep uvcvideo

代码语言:javascript
复制
6.170158] uvcvideo: Found UVC 1.00 device Webcam C170 (046d:082b)
6.277828] uvcvideo 1-2:1.0: Entity type for entity Processing 2 was not initialized!
6.277830] uvcvideo 1-2:1.0: Entity type for entity Extension 6 was not initialized!
6.277830] uvcvideo 1-2:1.0: Entity type for entity Camera 1 was not initialized!
6.292313] uvcvideo: Found UVC 1.00 device Lenovo EasyCamera (174f:14e8)
6.576261] uvcvideo 1-3:1.0: Entity type for entity Realtek Extended Controls Unit was not initialized!
6.576262] uvcvideo 1-3:1.0: Entity type for entity Extension 4 was not initialized!
6.576263] uvcvideo 1-3:1.0: Entity type for entity Processing 2 was not initialized!
6.576264] uvcvideo 1-3:1.0: Entity type for entity Camera 1 was not initialized!
6.577563] usbcore: registered new interface driver uvcvideo

ls /dev/video

代码语言:javascript
复制
/dev/video0  /dev/video1  /dev/video2  /dev/video3

lsusb

代码语言:javascript
复制
Bus 001 Device 004: ID 174f:14e8 Syntek 
Bus 001 Device 003: ID 046d:082b Logitech, Inc. Webcam C170
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub6.170158]

lsmod | grep uvc

代码语言:javascript
复制
uvcvideo               94208  0
videobuf2_vmalloc      20480  1 uvcvideo
videobuf2_v4l2         24576  1 uvcvideo
videobuf2_common       45056  2 videobuf2_v4l2,uvcvideo
videodev              200704  3 videobuf2_v4l2,uvcvideo,videobuf2_common
media                  53248  4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common

sudo lsusb -v |grep Camera

代码语言:javascript
复制
iProduct                1 Lenovo EasyCamera
iConfiguration          4 USB Camera
iFunction               5 Lenovo EasyCamera
iInterface              5 Lenovo EasyCamera
wTerminalType      0x0201 Camera Sensor
wTerminalType      0x0201 Camera Sensor

journalctl -b0 | grep uvc

代码语言:javascript
复制
May 06 17:01:53 eyebies-VirtualBox kernel: uvcvideo: Found UVC 1.00 device Webcam C170 (046d:082b)
May 06 17:01:54 eyebies-VirtualBox kernel: uvcvideo 1-2:1.0: Entity type for entity Processing 2 was not initialized!
May 06 17:01:54 eyebies-VirtualBox kernel: uvcvideo 1-2:1.0: Entity type for entity Extension 6 was not initialized!
May 06 17:01:54 eyebies-VirtualBox kernel: uvcvideo 1-2:1.0: Entity type for entity Camera 1 was not initialized!
May 06 17:01:54 eyebies-VirtualBox kernel: uvcvideo: Found UVC 1.00 device Lenovo EasyCamera (174f:14e8)
May 06 17:01:54 eyebies-VirtualBox kernel: uvcvideo 1-3:1.0: Entity type for entity Realtek Extended Controls Unit was not initialized!
May 06 17:01:54 eyebies-VirtualBox kernel: uvcvideo 1-3:1.0: Entity type for entity Extension 4 was not initialized!
May 06 17:01:54 eyebies-VirtualBox kernel: uvcvideo 1-3:1.0: Entity type for entity Processing 2 was not initialized!
May 06 17:01:54 eyebies-VirtualBox kernel: uvcvideo 1-3:1.0: Entity type for entity Camera 1 was not initialized!
May 06 17:01:54 eyebies-VirtualBox kernel: usbcore: registered new interface driver uvcvideo
May 06 18:55:00 eyebies-VirtualBox sudo[8787]:  eyebies : TTY=pts/3 ; PWD=/home/eyebies ; USER=root ; COMMAND=/sbin/modprobe uvcvideo

Cheese

代码语言:javascript
复制
Failed to allocate required memory.: gstv4l2src.c(658): gst_v4l2src_decide_allocation (): /GstCameraBin:camerabin/GstWrapperCameraBinSrc:camera_source/GstBin:bin18/GstV4l2Src:v4l2src1:
Buffer pool activation failed

相关职位

  1. 集成摄像头升级到18.04后无法工作
  2. Ubuntu18.04没有检测到我的集成摄像头
EN

回答 1

Ask Ubuntu用户

发布于 2020-05-07 13:31:38

我重新安装了扩展包,选择了xHCI USB控制器而不是。两个网络摄像头(集成和USB)工作!

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1236150

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档