Hi,

I'm also using the program 'webcam' to upload images to a web-server.

Am Montag, 16. Januar 2006 21:16 schrieb ian douglas:
> Okay, we're partially solved.
>
> After browsing back into November, someone reported a non-functioning
> camera plugged into their USB hub and someone else suggested they don't
> plug it into the hub. I tried this myself, and I got a photo uploaded to
> my web server - yay. Except the image is a solid gray color, no actual
> snapshot was taken. Then, it started printing this line over and over:
> compare: max=0,avg=0
> compare: max=0,avg=0
> compare: max=0,avg=0
> compare: max=0,avg=0

This output you get if you set the trigger value in your '.webcamrc' to a none 
zero value AND the grabbed images are exactly equal!

>
> So I stopped the process with CTRL-C and ran it again and got this:
>
> $ webcam
> reading config file: /home/id/.webcamrc
> ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=4): Invalid
> argument
> ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=7): Invalid
> argument
> ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=13): Invalid
> argument
> ftp: lost connection
> ftp: connected to www.w98.us
> video4linux webcam v1.5 - (c) 1998-2002 Gerd Knorr
> grabber config:
>    size 640x480 [12 bit YUV 4:2:0 (planar)]
>    input Webcam, norm pal, jpeg quality 75
>    rotate=0, top=0, left=0, bottom=480, right=640
> ftp config [ftp]:
>    (snipped)
>    uploading.jpg => webcam.jpg
> ftp: connected to www.w98.us
> ftp: read error: Input/output error
>
> It seems that the input/output error doesn't stop it from actually
> uploading the photo, but every image it uploads is just solid gray.
>
> Any ideas? I've tried NTSC mode in the .webcamrc file too but that
> didn't help.
>

It seems that the problem is not with the program 'webcam'. I think it is a 
driver problem...!
My output of 'webcam' for a local transfer looks like the following:

$ webcam webcam.local.weather
reading config file: webcam.local.weather
ioctl: VIDIOCMCAPTURE(0,fmt=4,size=160x120): Invalid argument
ioctl: VIDIOCMCAPTURE(0,fmt=7,size=160x120): Invalid argument
ioctl: VIDIOCMCAPTURE(0,fmt=13,size=160x120): Invalid argument
video4linux webcam v1.5 - (c) 1998-2002 Gerd Knorr
grabber config:
  size 640x480 [12 bit YUV 4:2:0 (planar)]
  input Webcam, norm pal, jpeg quality 90
  rotate=0, top=0, left=0, bottom=480, right=640
write config [local]:
  local transfer ./uploading.jpg => ./webcam.jpg
17.01.2006/12:35:50
17.01.2006/12:35:55
17.01.2006/12:36:01
(and so on...)

I hope this helps to get a little closer to the problem...! ;-)

Greetings,
Marc

_______________________________________________
pwc mailing list
[email protected]
http://lists.saillard.org/mailman/listinfo/pwc

Reply via email to