I want to capture a image through webcam in Linux.So I searched on the Internet and found out it's can be done using mplayer or vlc.Following is the command for capturing image by mplayer and its corresponding error.[root@localhost ~]# mplayer -vo png -frames 1 tv://MPlayer SVN-r31628-4.4.4 (C) 2000-2010 MPlayer Teammplayer: could not connect to socketmplayer: No such file or directoryFailed 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 directoryv4l2: ioctl set mute failed: Bad file descriptorv4l2: 0 frames successfully processed, 0 frames dropped.Exiting... (End of file)[root@localhost ~]# Please help me in solving this error.I searched on the net and found out about v4l2, but still can't solve the problem.[root@localhost ~]# lsusbBus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB HubBus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual MouseBus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub[root@localhost ~]# I am using Fedora in VMWare Workstation 9. I wonder if that is the problem.
Capturing image from webcam
linux;camera;multimedia