Skip to contentSkip to conversation

xawtv 'webcam' & uvcvideo webcam: ioctl error

DISCUSSION Colin Brace 2 participants 4 messages Nov 3, 2008 – Nov 4, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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

Signature · 9 lines
 Colin Brace
 Amsterdam
 http://www.lim.nl


--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
#1 lore raw
Quoted 22 lines · Colin Brace

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
Quoted 1 line

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

Quoted 3 lines

TIA

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#2 lore raw
Quoted 6 lines · Hans de Goede

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?

Signature · 8 lines
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:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
#3 lore raw
Quoted 10 lines · Colin Brace
Quoted 4 lines · Hans de Goede

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:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list