Webカメラから画像をキャプチャ

Webカメラから画像をキャプチャ

Linuxでは、Webカメラで画像をキャプチャしたいと思います。それでインターネットで検索してみると、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 <[email protected]>
 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を見つけましたが、まだ問題を解決できませんでした。

[root@localhost ~]# lsusb
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[root@localhost ~]# 

私はVMWare Workstation 9でFedoraを使用しています。これが問題なのかと思います。

ベストアンサー1

Webカメラから画像をキャプチャすることをお勧めしますチーズ

チーズが問題を解決できない場合は、少なくとも問題を簡単にデバッグするのに役立ちます。 Cheeseの機能:ウェブカメラから画像をキャプチャします。これを妨げる何千もの他の機能はありません。

おすすめ記事