Web lists-archives.com

[Spca50x-devs] Getting a Logilink / PIXART camera to work




Hi,

I am currently trying to get a Logilink Camera 
http://www.logilink.org/showproduct/UA0023.htm
to work. Some of this mail is a bit verbose, 
but that's also because it took me quite a while 
to understand the current state of v4l and v4l2 
of the webcam drivers, so this is also a kind of wrap-up ;-)

The camera shows in lsusb as "093a:2600 Pixart Imaging, Inc."
and was recognized as "USB SPCA5XX camera" by the old gspca 01.00.18
shipped with Ubuntu hardy gspca-source_01.00.18-2 and 01.00.20
from http://mxhaard.free.fr/spca50x/Download/gspcav1-20071224.tar.gz

Both drivers provide an unusably dark image, and the changelog 
at http://mxhaard.free.fr/news.html sais:
 Release 01.00.17
        Added basic support vor Pixart PAC7311 based webcams :-), Thomas Kaiser & Joerg Schummer
        make:
        0x093a:0x2600, 0x093a:0x2601, 0x093a:0x2603, 0x093a:0x2608, 0x093a:0x260e, 0x093a:0x260f
        This was a hard, exhausting and very long journey to get this chip working
        The support is not so good: Bad picture quality and not all controls are working, but we have at least something

Then I tried gspcav2-2.0.4 from http://moinejf.free.fr/
In Ekiga with v4l2 plugin I get a green image, and I am not sure
which v4l2 application would work with this. Skype detected the camera,
but testing in the options/video devices is freezing the window.

Then I tried with LD_PRELOAD v4l1-compat-0.6/v4l1-compat.so obtained from
http://sourceforge.net/mailarchive/message.php?msg_name=484C594A.3040908%40hhs.nl
and also found Hans' Blog http://hansdegoede.livejournal.com/
and the place for libv4l snapshots: http://people.atrpms.net/~hdegoede/

But with both Ekiga (v4l plugin) and camorama (0.19 unpatched) I get 
v4l1-compat: error dequeuing buf: Input/output error.

I could imagine that mplayer as a swiss-army knife could be used for debugging, if someone can tell me
which options / resolutions / formats *might* work, these ones don't:

	mplayer -vo x11 tv:// -tv  driver=v4l:device=/dev/video0:width=640:height=480:outfmt=rgb24:noaudio -flip
	mplayer -vo x11 tv:// -tv driver=v4l2:device=/dev/video0:width=640:height=480:outfmt=rgb24:noaudio -flip

where outfmt=help would show formats supported by mplayer.

So currently I am looking for a route to get any decent image 
for this camera, and then see which video-conferencing I can use :-)

Is there anything I can try to debug / fix my problems ?
Would the easiest way be fixing brightness and other controls
in gspcav1, or would going gspcav2 be the way to go ?

Yours,
Steffen

	TV file format detected.
	Selected driver: v4l
	 name: Video 4 Linux input
	 author: Alex Beregszaszi
	 comment: under development
	=================================================================
	 WARNING: YOU ARE USING V4L DEMUXER WITH V4L2 DRIVERS!!!
	 As the V4L1 compatibility layer is broken, this may not work.
	 If you encounter any problems, use driver=v4l2 instead.
	 Bugreports on driver=v4l with v4l2 drivers will be ignored.
	=================================================================
	Selected device: Typhoon
	 Capabilites: capture 
	 Device type: 1
	 Supported sizes: 48x32 => 640x480
	 Inputs: 1
	  0: pac7311:  (tuner:0, norm:pal)
	Using input 'pac7311'
	Selected input hasn't got a tuner!
	Unable to map memory for buffers: Invalid argument
	MPlayer interrupted by signal 11 in module: demux_open


	Playing tv://.
	TV file format detected.
	Selected driver: v4l2
	 name: Video 4 Linux 2 input
	 author: Martin Olschewski <olschewski@xxxxxxxxxxxxxxxx>
	 comment: first try, more to come ;-)
	Selected device: Typhoon
	 Capabilites:  video capture  read/write  streaming
	 supported norms:
	 inputs: 0 = pac7311;
	 Current input: 0
	 Current format: unknown (0x4745504a)
	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: ioctl set mute failed: Invalid argument
	v4l2: ioctl set Brightness 16 failed: Invalid argument
	FPS not specified in the header or invalid, use the -fps option.
	No stream found.
	v4l2: ioctl set mute failed: Invalid argument
	v4l2: 0 frames successfully processed, 0 frames dropped.

gspcav1-01.00.20:
Jun 29 22:54:24 samson kernel: [  962.509360] usb 2-1: configuration #1 chosen from 1 choice
Jun 29 22:54:24 samson kernel: [  480.977794] /tmp/gspcav1-20071224/gspca_core.c: USB SPCA5XX camera found. (PAC7311)
Jun 29 22:54:24 samson kernel: [  480.977800] /tmp/gspcav1-20071224/gspca_core.c: [spca5xx_probe:4275] Camera type JPEG 
Jun 29 22:54:24 samson kernel: [  480.984817] /tmp/gspcav1-20071224/gspca_core.c: [spca5xx_getcapability:1249] maxw 640 maxh 480 minw 160 minh 120
Jun 29 22:54:24 samson kernel: [  480.985073] usbcore: registered new interface driver gspca
Jun 29 22:54:24 samson kernel: [  480.985227] /tmp/gspcav1-20071224/gspca_core.c: gspca driver 01.00.20 registered
Jun 29 22:54:24 samson kernel: [  481.033572] /tmp/gspcav1-20071224/gspca_core.c: [spca5xx_set_light_freq:1932] Sensor currently not support light frequency banding filters.
Jun 29 22:54:24 samson kernel: [  481.033645] /tmp/gspcav1-20071224/gspca_core.c: [gspca_set_isoc_ep:945] ISO EndPoint found 0x85 AlternateSet 8

gspcav2-2.0.4:
Jun 29 23:18:09 samson kernel: [ 1513.957926] usbcore: registered new interface driver pac7311
Jun 29 23:18:09 samson kernel: [ 1513.957941] pac7311: v0.2.13 registered
Jun 29 23:18:14 samson kernel: [ 1514.088149] usb 2-1: new full speed USB device using uhci_hcd and address 8
Jun 29 23:18:15 samson kernel: [ 1514.093362] usb 2-1: configuration #1 chosen from 1 choice
Jun 29 23:18:15 samson kernel: [ 1514.100173] gspca: probing 093a:2600
Jun 29 23:18:15 samson kernel: [ 1514.121839] gspca: probe ok


### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
	driver                  : "pac7311"
	card                    : "Typhoon"
	bus_info                : "0000:00:1d.1"
	version                 : 2.0.4
	capabilities            : 0x5000001 [VIDEO_CAPTURE,READWRITE,STREAMING]

standards

inputs
    VIDIOC_ENUMINPUT(0)
	index                   : 0
	name                    : "pac7311"
	type                    : CAMERA
	audioset                : 0
	tuner                   : 0
	std                     : 0x0 []
	status                  : 0x0 []

video capture
    VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
	index                   : 0
	type                    : VIDEO_CAPTURE
	flags                   : 1
	description             : "JPEG"
	pixelformat             : 0x4745504a [JPEG]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
	type                    : VIDEO_CAPTURE
	fmt.pix.width           : 320
	fmt.pix.height          : 240
	fmt.pix.pixelformat     : 0x4745504a [JPEG]
	fmt.pix.field           : NONE
	fmt.pix.bytesperline    : 320
	fmt.pix.sizeimage       : 76800
	fmt.pix.colorspace      : SRGB
	fmt.pix.priv            : 0

controls
    VIDIOC_QUERYCTRL(BASE+0)
	id                      : 9963776
	type                    : INTEGER
	name                    : "Brightness"
	minimum                 : 0
	maximum                 : 32
	step                    : 1
	default_value           : 16
	flags                   : 0
    VIDIOC_QUERYCTRL(BASE+1)
	id                      : 9963777
	type                    : INTEGER
	name                    : "Contrast"
	minimum                 : 0
	maximum                 : 255
	step                    : 1
	default_value           : 127
	flags                   : 0
    VIDIOC_QUERYCTRL(BASE+2)
	id                      : 9963778
	type                    : INTEGER
	name                    : "Color"
	minimum                 : 0
	maximum                 : 255
	step                    : 1
	default_value           : 127
	flags                   : 0
    VIDIOC_QUERYCTRL(BASE+18)
	id                      : 9963794
	type                    : BOOLEAN
	name                    : "Auto Gain"
	minimum                 : 0
	maximum                 : 1
	step                    : 1
	default_value           : 1
	flags                   : 0

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
	name                    : "Typhoon"
	type                    : 0x1 [CAPTURE]
	channels                : 1
	audios                  : 0
	maxwidth                : 640
	maxheight               : 480
	minwidth                : 48
	minheight               : 32

channels
    VIDIOCGCHAN(0)
	channel                 : 0
	name                    : "pac7311"
	tuners                  : 0
	flags                   : 0x0 []
	type                    : CAMERA
	norm                    : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
	brightness              : 32768
	hue                     : 0
	colour                  : 32639
	contrast                : 32639
	whiteness               : 0
	depth                   : 8
	palette                 : unknown

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
    VIDIOCGWIN
	x                       : 0
	y                       : 0
	width                   : 320
	height                  : 240
	chromakey               : 0
	flags                   : 0









Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs