网络摄像头图像较暗且粗糙

网络摄像头图像较暗且粗糙

我有一台笔记本电脑,运行 Ubuntu 18.04 已经有一段时间了,它有一个内置的网络摄像头,一直以来都运行良好。几个月来我都没有用过相机,今天当我启动 OBS 时,图像最初显示正常,但几秒钟后就变得非常暗和粗糙,好像应用了滤镜一样。奶酪看起来也一样。我尝试过重新启动、重新加载 uvcvideo 模块、调整 guvcview 中的设置以及通过其他几个工具,但它看起来到处都一样,而且实际上没有什么可以修复它。我唯一看到变化的时候是当我关闭“曝光,自动优先”并重新打开时 - 它会淡出到正常视图,但一两秒后又变暗了。

我想不出我最近做了什么更改会导致这种情况,所以我猜是最近更新了一些东西,搞乱了它,但到目前为止,在网上搜索还没有找到任何线索,不知道那是什么或如何修复它。我很感激任何见解。

lsusb输出:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 1e7d:2cee ROCCAT 
Bus 001 Device 004: ID 8087:0025 Intel Corp. 
Bus 001 Device 006: ID 04f2:b649 Chicony Electronics Co., Ltd 
Bus 001 Device 002: ID 0d8c:0005 C-Media Electronics, Inc. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

sudo lsmod | grep video输出:

uvcvideo               86016  0
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
videobuf2_v4l2         24576  1 uvcvideo
videobuf2_core         40960  2 videobuf2_v4l2,uvcvideo
videodev              184320  3 videobuf2_core,videobuf2_v4l2,uvcvideo
media                  40960  2 videodev,uvcvideo
video                  45056  1 i915

编辑:发布此帖后,我立即将笔记本电脑移到另一个房间并重新启动 guvcview... 问题就解决了。我感到很困惑,因为我所做的唯一一件事就是运行上述命令... 这里还有一些输出,这次来自dmesg | grep video,为简洁起见,重复的消息被删减了:

[    3.977130] Linux video capture interface: v2.00
[    4.028284] uvcvideo: Found UVC 1.00 device Chicony USB2.0 Camera (04f2:b649)
[    4.032604] uvcvideo 1-4:1.0: Entity type for entity Extension 3 was not initialized!
[    4.032607] uvcvideo 1-4:1.0: Entity type for entity Processing 2 was not initialized!
[    4.032608] uvcvideo 1-4:1.0: Entity type for entity Camera 1 was not initialized!
[    4.032916] usbcore: registered new interface driver uvcvideo
[  825.512696] uvcvideo: Failed to query (SET_CUR) UVC control 10 on unit 2: -32 (exp. 2).
[  825.516505] uvcvideo: Failed to query (SET_CUR) UVC control 10 on unit 2: -32 (exp. 2).
...
[  896.441307] uvcvideo: Failed to query (SET_CUR) UVC control 10 on unit 2: -32 (exp. 2).
[  896.445849] uvcvideo: Failed to query (SET_CUR) UVC control 10 on unit 2: -32 (exp. 2).
[ 1575.232905] uvcvideo: Failed to resubmit video URB (-19).
[ 1575.236928] uvcvideo: Failed to resubmit video URB (-19).
[ 1575.240902] uvcvideo: Failed to resubmit video URB (-19).
[ 1575.244903] uvcvideo: Failed to resubmit video URB (-19).
[ 1575.248904] uvcvideo: Failed to resubmit video URB (-19).
[ 1612.760969] uvcvideo: Found UVC 1.00 device Chicony USB2.0 Camera (04f2:b649)
[ 1612.765552] uvcvideo 1-4:1.0: Entity type for entity Extension 3 was not initialized!
[ 1612.765558] uvcvideo 1-4:1.0: Entity type for entity Processing 2 was not initialized!
[ 1612.765561] uvcvideo 1-4:1.0: Entity type for entity Camera 1 was not initialized!
[ 2804.103537] uvcvideo: Failed to query (SET_CUR) UVC control 10 on unit 2: -32 (exp. 2).
[ 2804.106589] uvcvideo: Failed to query (SET_CUR) UVC control 10 on unit 2: -32 (exp. 2).
...
[ 3024.013832] uvcvideo: Failed to query (SET_CUR) UVC control 10 on unit 2: -32 (exp. 2).
[ 3086.971099] uvcvideo: Failed to query (SET_CUR) UVC control 10 on unit 2: -32 (exp. 2).
[ 3705.754061] usbcore: deregistering interface driver uvcvideo
[ 3705.842181] uvcvideo: Found UVC 1.00 device Chicony USB2.0 Camera (04f2:b649)
[ 3705.846558] uvcvideo 1-4:1.0: Entity type for entity Extension 3 was not initialized!
[ 3705.846559] uvcvideo 1-4:1.0: Entity type for entity Processing 2 was not initialized!
[ 3705.846560] uvcvideo 1-4:1.0: Entity type for entity Camera 1 was not initialized!
[ 3705.846791] usbcore: registered new interface driver uvcvideo

我仍然不明白到底发生了什么,以及将来如何避免这个问题。

相关内容