Saturday, January 9, 2010

Webcam AND Slackware


# Lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 1c4f:3000 SiGma Micro Micro USB Web Camera
Bus 004 Device 003: ID 04f3:0210 Elan Microelectronics Corp. AM-400 Hama Optical Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 

Now let us see if the webcam is compatible:  
Access this link and look inside for SiGma Micro, and see if it is compatible with the driver. 
Download and install the driver: linux-uvc-20080604_2.6.24.5_smp-i486-1alien.tgz 
# chmod 777 /dev/video0 
# modprobe uvcvideo 
# lsmod | grep uvcvideo  
# echo "modprobe uvcvideo">> / etc / rc.d / rc.local
Viewing a webcam with MPlayer


 # mplayer -cache 128 -tv driver=v4l2:width=640:height=480:outfmt=i420  -vo xv tv://


Capture and encode in a resized mpeg4 video named movie.avi:


# mencoder -tv driver=v4l2:fps=15:height=480:width=640 -ovc lavc -lavcopts vcodec=mpeg4 -vf scale=640:480 -o movie.avi tv://
  

2 comments:

پژمان مقدم said...

امروز این یادداشت تون به داد من رسید.
ممنون

charlos john said...

I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. Reid