[Spca50x-devs] Flexcam 100 camera works with spcaview but not sane programs
- Date: Wed, 5 Apr 2006 22:59:49 -0500
- From: "Mike Laughton" <mike.laughton@xxxxxxxxx>
- Subject: [Spca50x-devs] Flexcam 100 camera works with spcaview but not sane programs
My wife sent away for a freebie PC camera that I've been trying to get
working in Fedora Core 4 (camera and environment details below).
Using spca5xx and spcaview I got everything working quite well (very
impressed with the whole thing, in fact). But my ultimate goal is to
access the camera through sane-enabled applications like scanimage and
xsane-gimp. This is possible, right?
Unfortunately, whenever I use any of the sane applications with this
camera I get a fatal error of "sane_start: Invalid argument". Looking
at /var/log/messages I see "VIDIOCMCAPTURE: invalid format (1)". In
short, I'm stuck -- I don't know where to go from here. Anyone have
any ideas?
Below is everything I know of that might be helpful. If you need
more, just say the word. Eternally grateful toward anyone who can
help...
Thanks,
Mike
Problem Details Follow:
## scanimage output ##
$ scanimage -L
device `v4l:/dev/video0' is a Noname Flexcam 100 Camera virtual device
$ scanimage -d v4l:/dev/video0
scanimage: sane_start: Invalid argument
## Camera ##
Description: Acuvue Advance (?) mail-in offer USB PC camera (my words)
Recognized as "Flexcam 100 Camera"
## My Environment ##
Kernel: 2.6.15-1.1833_FC4
OS: Fedora Core 4
CPU: Intel(R) Pentium(R) 4 Mobile CPU 2.00GHz
Driver version: spca5xx-20060402.tar.gz
Viewer version: spcaview-20051127.tar.gz
gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)
## Modules ##
$ lsmod | grep spca
spca5xx 682384 0
videodev 9665 1 spca5xx
## Kernel Messages (after unsuccessful execution of "scanimage" command) ##
$ tail /var/log/messages
... snip ...
Apr 5 21:43:41 kernel:
/home/mike/Download/spca5xx-20060402/drivers/usb/spca561.h:
[spca561_init:469] Find spca561 USB Product ID 561
Apr 5 21:43:41 kernel:
/home/mike/Download/spca5xx-20060402/drivers/usb/spca561.h:
[spca561_init:469] Find spca561 USB Product ID 561
Apr 5 21:43:42 kernel:
/home/mike/Download/spca5xx-20060402/drivers/usb/spca5xx.c:
VIDIOCMCAPTURE: invalid format (1)
## Device Permissions ##
$ ls -la /dev | grep video
lrwxrwxrwx 1 root root 6 Apr 5 12:24 video -> video0
crw------- 1 mike root 81, 0 Apr 5 12:24 video0
## sane versions ##
$ rpm -qa | grep sane
libsane-hpaio-0.9.8-3.2
sane-backends-debuginfo-1.0.17-0.fc4.1
xsane-0.95-3
sane-frontends-1.0.13-2
xsane-gimp-0.95-3
sane-backends-1.0.17-0.fc4.1
sane-backends-devel-1.0.17-0.fc4.1
## USB Device Listing ##
$ cat /proc/bus/usb/devices
... snip ...
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=04fc ProdID=0561 Rev= 0.00
S: Manufacturer=Sunplus Technology Co., Ltd.
S: Product=Generic Digital camera
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=spca5xx
E: Ad=81(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms
I: If#= 0 Alt= 1 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=spca5xx
E: Ad=81(I) Atr=01(Isoc) MxPS= 128 Ivl=1ms
I: If#= 0 Alt= 2 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=spca5xx
E: Ad=81(I) Atr=01(Isoc) MxPS= 880 Ivl=1ms
I: If#= 0 Alt= 3 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=spca5xx
E: Ad=81(I) Atr=01(Isoc) MxPS= 512 Ivl=1ms
I: If#= 0 Alt= 4 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=spca5xx
E: Ad=81(I) Atr=01(Isoc) MxPS= 640 Ivl=1ms
I: If#= 0 Alt= 5 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=spca5xx
E: Ad=81(I) Atr=01(Isoc) MxPS= 768 Ivl=1ms
I: If#= 0 Alt= 6 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=spca5xx
E: Ad=81(I) Atr=01(Isoc) MxPS= 896 Ivl=1ms
I: If#= 0 Alt= 7 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=spca5xx
E: Ad=81(I) Atr=01(Isoc) MxPS=1023 Ivl=1ms
I: If#= 0 Alt= 8 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=spca5xx
E: Ad=81(I) Atr=01(Isoc) MxPS= 544 Ivl=1ms
I: If#= 0 Alt= 9 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=spca5xx
E: Ad=81(I) Atr=01(Isoc) MxPS= 656 Ivl=1ms
I: If#= 0 Alt=10 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=spca5xx
E: Ad=81(I) Atr=01(Isoc) MxPS= 704 Ivl=1ms
I: If#= 0 Alt=11 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=spca5xx
E: Ad=81(I) Atr=01(Isoc) MxPS= 864 Ivl=1ms
I: If#= 0 Alt=12 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=spca5xx
E: Ad=81(I) Atr=01(Isoc) MxPS= 960 Ivl=1ms
I: If#= 0 Alt=13 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=spca5xx
E: Ad=81(I) Atr=01(Isoc) MxPS= 845 Ivl=1ms
... snip ...
## Complete spcaview output ##
$ ./spcaview
Spcaview version: 1.1.4 date: 27:11:2005 (C) mxhaard@xxxxxxxx
Initializing SDL.
SDL initialized.
bpp 3 format 15
Using video device /dev/video0.
Initializing v4l.
**************** PROBING CAMERA *********************
Camera found: Flexcam 100 Camera
Bridge found: SPCA561
Bridge find SPCA561 number 9
StreamId: GBRG Camera
Bridge find SPCA561 number 9
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
VIDIOCGPICT
brightnes=1920 hue=54715 color=1 contrast=38464 whiteness=52988
depth=12 palette=15
VIDIOCSPICT
brightness=1920 hue=54715 color=1 contrast=38464 whiteness=52988
depth=24 palette=15
Used 165083ms for 1320 images => 125ms/image 7fps.
Quiting SDL.
Decoded frames:1320 Average decode time: 3.000000
unmapping
closing
closed
Destroy Picture thread ...
Quiting....
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs