我想通过 linux 中的网络摄像头捕获图像。所以我在互联网上搜索,发现它可以使用 mplayer 或 vlc 完成。
以下是mplayer抓图的命令及其对应的错误。
[root@localhost ~]# mplayer -vo png -frames 1 tv://
MPlayer SVN-r31628-4.4.4 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing tv://.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
v4l2: unable to open '/dev/video0': No such file or directory
v4l2: ioctl set mute failed: Bad file descriptor
v4l2: 0 frames successfully processed, 0 frames dropped.
Exiting... (End of file)
[root@localhost ~]#
请帮助我解决此错误。我在网上搜索并发现了有关v4l2的信息,但仍然无法解决问题。