root@slitaz:~# export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
root@slitaz:~# mplayer tv:// -tv driver=v4l2:width=320:height=240:device=/dev/video0 -vo x11
# tazpkg get-install linux-video
# tazpkg get-install libv4l
# tazpkg get-install v4l-dvb
# tazpkg get-install usbutils
root@slitaz:~# lsusb | grep -i logitech
Bus 003 Device 002: ID 046d:08f0 Logitech, Inc. QuickCam Messenger
Bus 004 Device 002: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser
root@slitaz:~# tazhw detect-usb
Detected USB devices Kernel modules
================================================================================
Camera
sh: gspca_stv06xx: unknown operand
! Missing module: snd-usb-audio
gspca_stv06xx
quickcam_messenger
sed: unmatched '/'
================================================================================
root@slitaz:~# modprobe gspca_stv06xx
root@slitaz:~# modprobe snd-usb-audio
root@slitaz:~# lsmod | head
Module Size Used by Not tainted
snd_usb_audio 69944 0
gspca_stv06xx 20920 0
gspca_main 21112 1 gspca_stv06xx
videodev 32080 1 gspca_main
v4l1_compat 11120 1 videodev
i2c_core 17468 1 videodev
snd_usb_lib 13192 1 snd_usb_audio
snd_rawmidi 16920 1 snd_usb_lib
snd_seq_device 5544 1 snd_rawmidi
root@slitaz:~# dmesg | tail -12
STV06xx: Configuring camera
STV06xx: st6422 sensor detected
STV06xx: Initializing camera
input: STV06xx as /devices/pci0000:00/0000:00:1a.0/usb3/3-2/input/input3
gspca: video0 created
gspca: found int in endpoint: 0x82, buffer_len=1, interval=16
STV06xx: Probing for a stv06xx device
gspca: probing 046d:08f0
STV06xx: Probing for a stv06xx device
gspca: probing 046d:08f0
usbcore: registered new interface driver STV06xx
STV06xx: registered
root@slitaz:~# ls -l /dev/video*
crw-rw---- 1 root video 81, 0 Jun 29 22:35 /dev/video0
root@slitaz:~#
root@slitaz:~# export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
root@slitaz:~# tazhw setup webcam
COMMAND OPTIONS: webcam
installing pkg: hal-info
[..]
Installation of : mplayer-svn-30817
================================================================================
Copying mplayer-svn-30817... [ OK ]
Extracting mplayer-svn-30817... 6328 blocks
Extracting the pseudo fs... (lzma) 20478 blocks
Installing mplayer-svn... [ OK ]
Removing all tmp files... [ OK ]
================================================================================
mplayer-svn (30817) is installed.
root@slitaz:~# Creating config file: /root/.mplayer/config
MPlayer SVN-r30817-4.4.1 (C) 2000-2010 MPlayer Team
MMX supported but disabled
MMX2 supported but disabled
SSE supported but disabled
SSE2 supported but disabled
Playing tv://.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski
comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: Camera
Capabilites: video capture read/write streaming
supported norms:
inputs: 0 = STV06xx;
Current input: 0
Current format: RGB24
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: Cannot get fps
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 320x240 => 320x240 Planar YV12
[swscaler @ 0x8e7df10]No accelerated colorspace conversion found from yuv420p to bgra.
[swscaler @ 0x8e7df10]using unscaled yuv420p -> bgra special converter
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Audio: no sound
Starting playback...
libv4l2: error dequeuing buf: Invalid argument
v4l2: ioctl set mute failed: Invalid argument
v4l2: 170 frames successfully processed, 253 frames dropped.
Exiting... (Quit)
root@slitaz:~#
----
http://forum.slitaz.org/index.php/discussion/207/webcam-support-in-slitaz%3A-howto
http://cateee.net/lkddb/web-lkddb/USB_GSPCA.html
CONFIG_USB_GSPCA: GSPCA based webcams
General informations
The Linux kernel configuration item CONFIG_USB_GSPCA:
* prompt: GSPCA based webcams
* type: tristate
* depends on: CONFIG_VIDEO_V4L2
* defined in drivers/media/video/gspca/Kconfig
* found in Linux Kernels: from 2.6.27 release still available on 2.6.34 release
* module created: gspca_main
[..]
http://lxr.linux.no/#linux+v2.6.30.6/Documentation/video4linux/gspca.txt
LXR linux/Documentation/video4linux/gspca.txt History Print
1List of the webcams known by gspca.
2
3The modules are:
4 gspca_main main driver
5 gspca_xxxx subdriver module with xxxx as follows
6
7xxxx vend:prod
.