D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] quickcam woes

 

David Johnson wrote:

> Try the 'testquickcam' program included with the source. It'll try
> and grab a single frame from the camera which it'll save as pic.ppm
> (IIRC). That'll tell you whether you're having a driver issue or a
> xawtv/V4L issue.

I straced the programs as they failed:

============================= -r option =====================

[ blah blah blah ]

write(1, "Version:        $Id: testquickca"..., 76Version:        $Id: 
testquickcam.c,v 1.3 2004/07/28 10:13:12 tuukkat Exp $
) = 76
mmap2(NULL, 241664, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40161000
read(3, 0x40161008, 241056)             = -1 ENOMEM (Cannot allocate memory)
write(1, " *** read() test ***\n", 21 *** read() test ***
)  = 21
write(1, "Read length: -1\n", 16Read length: -1
)       = 16

[ blah blah blah ]

============================= -m option =====================

[ blah blah blah ]

write(1, "Version:        $Id: testquickca"..., 76Version:        $Id: 
testquickcam.c,v 1.3 2004/07/28 10:13:12 tuukkat Exp $
) = 76
ioctl(3, VIDIOCMCAPTURE, 0xbffff7c0)    = 0
ioctl(3, VIDIOCSYNC, 0xbffff7bc)        = -1 ENOMEM (Cannot allocate memory)
write(1, "Error in VIDIOCSYNC\n", 20Error in VIDIOCSYNC
)   = 20
write(1, " *** mmap() test ***\n", 21 *** mmap() test ***
)  = 21
write(1, "Read length: 321408\n", 20Read length: 321408
)   = 20

[ blah blah blah ]

Steve

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe. FAQ: www.dcglug.org.uk/linux_adm/list-faq.html