![USB 摄像头 Genus Eye 312 在 motion 4.3.1 和 ffplay 中无法工作](https://linux22.com/image/1068544/USB%20%E6%91%84%E5%83%8F%E5%A4%B4%20Genus%20Eye%20312%20%E5%9C%A8%20motion%204.3.1%20%E5%92%8C%20ffplay%20%E4%B8%AD%E6%97%A0%E6%B3%95%E5%B7%A5%E4%BD%9C.png)
我的笔记本电脑上安装了 Ubuntu 20.04 LTS。我安装了 motion 4.3.1,可以很好地与笔记本电脑集成摄像头配合使用。但是使用外部 USB 摄像头 Genuis Eye 312(供应商 ID 093a Pixart inc.)时,它无法正常工作。据我所知,没有正确的编解码器和像素格式。有什么方法可以让这款相机在运动中工作吗?
这是我在终端得到的信息:
$ ffplay /dev/video0
ffplay version 4.2.2-1ubuntu1 Copyright © 2003-2019 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-3ubuntu1)
configuration: --prefix=/usr --extra-version=1ubuntu1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
[video4linux2,v4l2 @ 0x7fbeac000bc0] Cannot find a proper format for codec ‘none’ (id 0), pixel format ‘none’ (id -1)
Assertion *codec_id != AV_CODEC_ID_NONE failed at src/libavdevice/v4l2.c:815
Aborted (core dumped)
joso@joso-Aspire-ES1-433:~$ /) v4+ to run.