Web lists-archives.org

[Spca50x-devs] Trouble with Intel Pro PC Web




Hello,

I'm having trouble getting my Intel Pro PC Camera (0733:0430) working.

I'm running Ubuntu 5.10 with kernel 2.6.12-10-386. I installed version
0.57.11 (20060402) of the spca5xx driver according to the GCC version
3.4 workaround at http://ubuntuforums.org/showthread.php?t=75284
(compiling spca5xx driver with GCC 4.0 instead of 3.4 caused my
machine to lock up)

Here's what shows up in /var/log/kern.log when I plug the camera in:
-------------snip-------------
/[...]/spca5xx.c: USB SPCA5XX camera found. Type Intel PC Camera Pro (SPCA505)
/[...]/spca5xx.c: [spca5xx_probe:8301] Camera type YYUV
/[...]/spca5xx.c: [spca50x_set_packet_size:1642] set real packet size: 0, alt=0
-------------/snip-------------

v4l(2?) seems to be running OK:
-------------snip-------------
$ lsmod | grep videodev
videodev                9344  1 spca5xx
-------------/snip-------------

The only webcam app that runs OK is gqcam. If I try to change any of
its settings (eg resolution, palette) I get lots of output like this:
-------------snip-------------
ioctl (VIDIOCSPICT): Invalid argument
ioctl (VIDIOCSWIN): Invalid argument
-------------/snip-------------

When I _don't_ try to change any settings, gqcam runs fine at 160x120
and only uses these ioctls, according to strace: FIONREAD, VIDIOCGCAP,
VIDIOCGWIN, and VIDIOCGPICT.

It seems to be the "set" ioctls (eg VIDIOCSWIN, and VIDIOCSPICT) that
are causing the trouble with motion, camorama, and the spca* tools.

When I run this code, I get an error on the VIDIOCSPICT:
-------------snip-------------
if (ioctl (vd->fd, VIDIOCGPICT, &vd->videopict) < 0)
 exit_fatal ("Couldnt get videopict params with VIDIOCGPICT");
if (ioctl (vd->fd, VIDIOCSPICT, &vd->videopict) < 0)
 exit_fatal ("Couldnt set videopict params with VIDIOCSPICT");
-------------/snip-------------

Here is the output I get from spcaserv:
-------------snip-------------
Spcaview version: 1.1.5 date: 12:12:2005 (C) mxhaard@xxxxxxxx
video /dev/video0
Camera found: Intel PC Camera Pro
VIDIOCGPICT brightnes=65280 hue=0 color=0 contrast=0
whiteness=0depth=24 palette=4
Bridge found: SPCA505
is_spca SPCA505
quality 0 autoexpo 1 Timeframe 0
StreamId: 2  Camera
try palette 21 depth 8
Couldnt set palette first try 21
Damned second try fail
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
Available  palette 4
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
skip size 640 x 480
skip size 384 x 288
VIDIOCSWIN reject width 352  height 288
VIDIOCSWIN reject width 320  height 240
VIDIOCSWIN reject width 192  height 144
VIDIOCSWIN reject width 176  height 144
VIDIOCSWIN reject width 160  height 120
Damned no match found Fatal errors !!
Format asked 15 check -1
Couldnt set videopict params with VIDIOCSPICT
-------------/snip-------------

spcaview manages to display a garbled greenish image and prints this:
-------------snip-------------
Spcaview version: 1.1.5 date: 12:12:2005 (C) mxhaard@xxxxxxxx
Initializing SDL.
SDL initialized.
bpp 3 format 15
Using video device /dev/video0.
Initializing v4l.
**************** PROBING CAMERA *********************
Camera found: Intel PC Camera Pro
Bridge found: SPCA505
Bridge find SPCA505 number 0
StreamId: YYUV Camera
quality 0 autoexpo 1 Timeframe 0
Bridge find SPCA505 number 0
Available Resolutions width 640  heigth 480 native
Available Resolutions width 352  heigth 288 native
Available Resolutions width 320  heigth 240 native *
Available Resolutions width 176  heigth 144 native
Available Resolutions width 160  heigth 120 native
*****************************************************
grabbing method default MMAP asked
VIDIOCGMBUF size 2457616  frames 2  offets[0]=0 offsets[1]=1228808
cmcapture: Invalid argument
cmcapture: Invalid argument
VIDIOCGPICT
brightnes=48640 hue=0 color=0 contrast=0 whiteness=0
depth=24 palette=4
Couldnt get videopict params with VIDIOCSPICT
: Invalid argument

cmcapture: Invalid argument
cmcapture err -1
cmcapture: Invalid argument
cmcapture err -1
[ ^ lots more of these]

Used 5747ms for 76 images => 75ms/image 13fps.
Quiting SDL.
Decoded frames:76 Average decode time: 4.000000
unmapping
closing
closed
Destroy Picture thread ...
Quiting....
-------------/snip-------------

Thanks for the hard work you've done on this project, Michel et al,

-Tyler


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs