检测到我的计算机上的集成网络摄像头(/dev/video0
存在,并且当客户端应用程序开始使用它时,网络摄像头指示灯会亮起(例如,cheese、ffplay 等)。大多数应用程序都会发送有关网络摄像头未发送任何数据的错误。
我能找到的大多数帖子似乎都表明禁用硬件访问网络摄像头的锁定键导致了问题(在大多数笔记本电脑上为Fn+ F8)在我的情况下,键盘上没有这样的键。
硬件故障并非不可能,但考虑到笔记本电脑的处理非常小心,硬件故障的可能性似乎很小。
Hardware: Lenovo Ideapad 15
OS: Ubuntu 20.04
$ uname -r
5.19.0-45-generic
$ v4l2-ctl --list-device
Integrated Camera: Integrated C (usb-0000:05:00.3-3):
/dev/video0
/dev/video1
/dev/media0
$ ls -l /dev/video*
crw-rw----+ 1 root video 81, 0 Jun 25 18:09 /dev/video0
crw-rw----+ 1 root video 81, 1 Jun 25 18:09 /dev/video1
$ ffplay /dev/video0
ffplay version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2003-2021 the FFmpeg developers
built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
nan : 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
$ fswebcam
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
Adjusting resolution from 384x288 to 352x288.
--- Capturing frame...
Timed out waiting for frame!
No frames captured.