public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* xawtv 'webcam' & uvcvideo webcam: ioctl error
@ 2008-11-03 16:30 Colin Brace
  2008-11-03 19:02 ` Hans de Goede
  0 siblings, 1 reply; 4+ messages in thread
From: Colin Brace @ 2008-11-03 16:30 UTC (permalink / raw)
  To: video4linux-list

Hi all,

I am trying to get the 'webcam' utility of xwatv working with my uvcvide 
webcam, a Creative Optia. My Fedora 9 system recognizes the webcam fine; 
here is the dmesg line:

uvcvideo: Found UVC 1.00 device Live! Cam Optia (041e:4057)

The webcam works with apps like Skype.

I'd like to configure it to upload images periodically to my website 
using the xawtv 'webcam' utility. I create ~/.webcamrc as indicated in 
the man page, but when I run it, it return an error message:

$ webcam
reading config file: /home/colin/.webcamrc
video4linux webcam v1.5 - (c) 1998-2002 Gerd Knorr
grabber config:
  size 320x240 [16 bit YUV 4:2:2 (packed, YUYV)]
  input Camera 1, norm (null), jpeg quality 75
  rotate=0, top=0, left=0, bottom=240, right=320
write config [ftp]:
  local transfer ~/Desktop/uploading.jpeg => ~/Desktop/webcam.jpeg
ioctl: VIDIOC_DQBUF(index=0;type=VIDEO_CAPTURE;bytesused=0;flags=0x0 
[];field=ANY;;timecode.type=0;timecode.flags=0;timecode.frames=0;timecode.seconds=0;timecode.minutes=0;timecode.hours=0;timecode.userbits="";sequence=0;memory=unknown): 
Invalid argument
capturing image failed

Any ideas what is going wrong here?

TIA

-- 
  Colin Brace
  Amsterdam
  http://www.lim.nl


--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: xawtv 'webcam' & uvcvideo webcam: ioctl error
  2008-11-03 16:30 xawtv 'webcam' & uvcvideo webcam: ioctl error Colin Brace
@ 2008-11-03 19:02 ` Hans de Goede
  2008-11-03 21:00   ` [patch] " Colin Brace
  0 siblings, 1 reply; 4+ messages in thread
From: Hans de Goede @ 2008-11-03 19:02 UTC (permalink / raw)
  To: Colin Brace; +Cc: video4linux-list

Colin Brace wrote:
> Hi all,
> 
> I am trying to get the 'webcam' utility of xwatv working with my uvcvide 
> webcam, a Creative Optia. My Fedora 9 system recognizes the webcam fine; 
> here is the dmesg line:
> 
> uvcvideo: Found UVC 1.00 device Live! Cam Optia (041e:4057)
> 
> The webcam works with apps like Skype.
> 
> I'd like to configure it to upload images periodically to my website 
> using the xawtv 'webcam' utility. I create ~/.webcamrc as indicated in 
> the man page, but when I run it, it return an error message:
> 
> $ webcam
> reading config file: /home/colin/.webcamrc
> video4linux webcam v1.5 - (c) 1998-2002 Gerd Knorr
> grabber config:
>  size 320x240 [16 bit YUV 4:2:2 (packed, YUYV)]
>  input Camera 1, norm (null), jpeg quality 75
>  rotate=0, top=0, left=0, bottom=240, right=320
> write config [ftp]:
>  local transfer ~/Desktop/uploading.jpeg => ~/Desktop/webcam.jpeg
> ioctl: VIDIOC_DQBUF(index=0;type=VIDEO_CAPTURE;bytesused=0;flags=0x0 
> [];field=ANY;;timecode.type=0;timecode.flags=0;timecode.frames=0;timecode.seconds=0;timecode.minutes=0;timecode.hours=0;timecode.userbits="";sequence=0;memory=unknown): 
> Invalid argument
> capturing image failed
> 
> Any ideas what is going wrong here?

I think I do, xawtv contains a few v4l2 handling bugs. This patch fixes them 
and most likely fixes your issue:
http://cvs.fedoraproject.org/viewvc/devel/xawtv/xawtv-3.95-fixes.patch?revision=1.1

Regards,

Hans


> 
> TIA
> 

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch] xawtv 'webcam' & uvcvideo webcam: ioctl error
  2008-11-03 19:02 ` Hans de Goede
@ 2008-11-03 21:00   ` Colin Brace
  2008-11-04  8:25     ` Hans de Goede
  0 siblings, 1 reply; 4+ messages in thread
From: Colin Brace @ 2008-11-03 21:00 UTC (permalink / raw)
  To: video4linux-list



Hans de Goede wrote:
> 
> I think I do, xawtv contains a few v4l2 handling bugs. This patch fixes
> them 
> and most likely fixes your issue:
> http://cvs.fedoraproject.org/viewvc/devel/xawtv/xawtv-3.95-fixes.patch?revision=1.1
> 

Thanks, Hans. I downloaded and applied that patch to the source. However
when I go to compile it, 'make' returns an error:

[...]
console/fs.h:2:20: error: FSlib.h: No such file or directory
In file included from console/fbtv.c:44:
console/fs.h:6: error: expected specifier-qualifier-list before
‘FSXFontInfoHeader’
console/fs.h:58: error: expected declaration specifiers or ‘...’ before
‘FSXCharInfo’
console/fs.h:62: error: expected ‘)’ before ‘*’ token
console/fbtv.c: In function ‘text_out’:
console/fbtv.c:339: error: ‘struct fs_font’ has no member named ‘height’
console/fbtv.c:340: error: ‘struct fs_font’ has no member named ‘fontHeader’
console/fbtv.c:341: warning: pointer targets in passing argument 4 of
‘fs_puts’ differ in signedness
console/fbtv.c: In function ‘text_width’:
console/fbtv.c:347: warning: pointer targets in passing argument 2 of
‘fs_textwidth’ differ in signedness
console/fbtv.c: In function ‘do_capture’:
console/fbtv.c:405: error: ‘struct fs_font’ has no member named ‘height’
console/fbtv.c:406: error: ‘struct fs_font’ has no member named ‘height’
console/fbtv.c:443: error: ‘struct fs_font’ has no member named ‘height’
console/fbtv.c:444: error: ‘struct fs_font’ has no member named ‘height’
console/fbtv.c: In function ‘main’:
console/fbtv.c:755: error: ‘struct fs_font’ has no member named ‘height’
console/fbtv.c:773: error: ‘struct fs_font’ has no member named ‘width’
console/fbtv.c:813: warning: pointer targets in assignment differ in
signedness
make: *** [console/fbtv.o] Error 1

It looks like a file called fslib.h is missing. Neither yum nor Google turn
up a package by this name, although there are a couple of references on the
Web to this file. Any idea what I am missing?


-- 
View this message in context: http://n2.nabble.com/xawtv-%27webcam%27---uvcvideo-webcam%3A-ioctl-error-tp1450204p1451395.html
Sent from the video4linux-list mailing list archive at Nabble.com.


--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch] xawtv 'webcam' & uvcvideo webcam: ioctl error
  2008-11-03 21:00   ` [patch] " Colin Brace
@ 2008-11-04  8:25     ` Hans de Goede
  0 siblings, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2008-11-04  8:25 UTC (permalink / raw)
  To: Colin Brace; +Cc: video4linux-list

Colin Brace wrote:
> 
> Hans de Goede wrote:
>> I think I do, xawtv contains a few v4l2 handling bugs. This patch fixes
>> them 
>> and most likely fixes your issue:
>> http://cvs.fedoraproject.org/viewvc/devel/xawtv/xawtv-3.95-fixes.patch?revision=1.1
>>
> 
> Thanks, Hans. I downloaded and applied that patch to the source. However
> when I go to compile it, 'make' returns an error:
> 

Well these errors are completely unrelated from the patch I've send you. xawtv 
has been unmaintained upstream for a while, so you want to start with the 
sources as provided by your distro, not with an pristine upstream tarbal.

Regards,

Hans

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-11-04  8:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-03 16:30 xawtv 'webcam' & uvcvideo webcam: ioctl error Colin Brace
2008-11-03 19:02 ` Hans de Goede
2008-11-03 21:00   ` [patch] " Colin Brace
2008-11-04  8:25     ` Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox