pwc
[Top] [All Lists]

[pwc] Re: quickcam 4000 pro - seg faults

To:
Subject: [pwc] Re: quickcam 4000 pro - seg faults
From: morten <>
Date: Fri, 21 Oct 2005 19:52:01 +0200
Some more bait....

I have continued my tests - regarding my previous post.

<snip>
> The setting: kernel 2.6.11 and pwc 10.0.7a
<snip>
It is the same with the very latest snapshot (form 21/10-05)

<snip>
> The problem:
> When I resize the xawtv window the image turns black and after a wait I
> get garbage. It is highly colored horisontal lines and you can see the
> some kind of reaction when you move your hand in front of the camera.
<snip>

When I, using XawTV, try to grab a frame, it fails, but succeeds in
resetting the camera to show the correct video stream.

I started digging in /etc/syslog, and I got this when I connect the
camera
Oct 21 19:25:52 localhost kernel: usb 2-2: new full speed USB device
using uhci_hcd and address 4
Oct 21 19:25:52 localhost kernel: pwc Logitech QuickCam 4000 Pro USB
webcam detected.
Oct 21 19:25:52 localhost kernel: pwc Registered as /dev/video0.
<snip> 
... a lot of usb audio and udev stuff 
<snip>

Apparently, pwc detect the camera. The usb audio is installed as a
device as well. And even guesses that it is a phillips usb camera.

During error, or rather, just after having resized the window I get the
following:
Oct 21 19:43:13 localhost kernel: pwc ioctl(VIDIOC_S_FMT)
Oct 21 19:43:13 localhost kernel: pwc Try to change format to:
width=2048 height=1572 fps=15 compression=0 snapshot=0
Oct 21 19:43:13 localhost kernel: pwc set_video_mode(2048x1572 @ 15,
palette 15).
Oct 21 19:43:13 localhost kernel: pwc VIDEO_PALETTE_ not RAW: going
beyond view_max.
Oct 21 19:43:13 localhost kernel: pwc Could not find suitable size.
Oct 21 19:43:13 localhost kernel: pwc pwc_set_video_mode attempt 1
failed.
Oct 21 19:43:13 localhost kernel: pwc set_video_mode(320x240 @ 15,
palette 15).
Oct 21 19:43:13 localhost kernel: pwc decode_size = 3.
Oct 21 19:43:13 localhost kernel: pwc Using alternate setting 3.
Oct 21 19:43:13 localhost kernel: pwc frame_size=29520, vframes=15,
vsize=3, vsnapshot=0, vbandlength=492
Oct 21 19:43:13 localhost kernel: pwc leaving VIDIOC_S_FMT, return=-34

XawTv writes this while it fails to grab an image while the camera is
having problems
ioctl:VIDIOC_S_FMT(type=VIDEO_CAPTURE;fmt.pix.width=2048;fmt.pix.height=1572;fmt.pix.pixelformat=0x00000000
 
[....];fmt.pix.field=ANY;fmt.pix.bytesperline=0;fmt.pix.sizeimage=115200;fmt.pix.colorspace=unknown;fmt.pix.priv=0):
 Numerical result out of range
no way to get: 2048x1572 24 bit TrueColor (BE: rgb)

Bascily, it seem that XawTv tries to put the camera in a mode that it
isn't capable of.

So why it that bad? Should pwc just say 'no, can't do that' and leave it
to xawtv to handle that? 

More importantly: What should I do avoid this errors (and still use the
camera)? Does pwc rely on a library or other external program/kernel
module that I need to update?

regards 
Morten



_______________________________________________
pwc mailing list

http://lists.saillard.org/mailman/listinfo/pwc

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU