The recent version of the 2.4.26-ts9 kernel code already has spca5xx
code, so I built the modules videodev.o and spca5xx.o and transfer the
modules to the ARM system. I had a glitch in the compilation, but I
forced the use of kernel code's version of videodev.h.
I cannot get any program to work, though I can get part of a JPEG
image if I just cat /dev/video0 to a file (not satisfactory, but a start).
I have tried videodog.c, spcacat and the like. I am using the Labtec
Webcam Pro (which works correctly under an x86 system).
What am I doing wrong?
The following is just an example of one of my failures:
$ uname -a
Linux ts7200 2.4.26-ts9 #1 Mon Mar 6 09:11:57 MST 2006 armv4l unknown
$ insmod videodev
Using /lib/modules/2.4.26-ts9/kernel/drivers/media/video/videodev.o
Linux video capture interface: v1.00
$ insmod spca5xx
Using /lib/modules/2.4.26-ts9/kernel/drivers/usb/spca5xx/spca5xx.o
usb.c: registered new driver spca5xx
spca_core.c: USB SPCA5XX camera found. Type Labtec Webcam Pro Zc0302 +
Hdcs2020
spca_core.c: spca5xx driver 00.57.06LE registered
$ mknod /dev/video0 c 81 0
$ chmod a+rw /dev/video0
$ ./spcacat -N 1 -o
Spcaview version: 1.1.5 date: 12:12:2005 (C)
video /dev/video0
Camera found: Labtec Webcam Pro
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768
whiteness=0depth=8 palette=21
Bridge found: ZC301-2
is_spca SPCA505
is_spca SPCA506
is_spca SPCA501
is_spca SPCA508
is_spca SPCA504
is_spca SPCA500
is_spca SPCA504B
is_spca SPCA533
is_spca SPCA504C
is_spca SPCA561
is_spca SPCA536
is_spca SN9C102
is_spca ZR364XX
is_spca ZC301-2
wrong spca5xx device
StreamId: 0 Camera
try palette 21 depth 8
Available palette 21
try palette 15 depth 12
Couldnt set palette first try 15
Damned second try fail
try palette 4 depth 24
Couldnt set palette first try 4
Damned second try fail
try palette 3 depth 16
Couldnt set palette first try 3
Damned second try fail
try palette 5 depth 32
Couldnt set palette first try 5
Damned second try fail
probe size in
Available Resolutions width 640 heigth 480
Available Resolutions width 384 heigth 288
Available Resolutions width 352 heigth 288
Available Resolutions width 320 heigth 240
Available Resolutions width 192 heigth 144
Available Respca_core.c: VIDIOCMCAPTURE: invalid format (15)
solutions width 176 heigth 144
cmcapture: Invalid argument
Format asked 15 check -1
Couldnt set videopict params with VIDIOCSPICT
$
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|