在虚拟盒中从客户机访问网络摄像头时出现问题

在虚拟盒中从客户机访问网络摄像头时出现问题

Cheese 无法播放网络摄像头的视频

  • 主机 - 20.04
  • 客人 - 18.04
  • VirtualBox-6.1.6_Ubuntu r137129

网络摄像头

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

尝试过:

  1. 安装来宾添加
  2. 更新和升级
  3. 将用户添加到 vboxgroup
  4. 安装 guvcview、ffmpeg、cheese
  5. sudo apt-get install build-essential linux-headers-``uname -r `

来自客人的日志

dmesg|grep uvcvideo

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

/dev/video0  /dev/video1  /dev/video2  /dev/video3

lsusb

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

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

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

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

奶酪

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. Ubuntu 18.04 无法检测到我的集成网络摄像头

答案1

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

相关内容