Hi all,
as first time poster I hope I am doing it in the right forum.
I am trying to acquire picture from Creative cam and save it to usb stick however I am getting Segmentation fault, and I ma not sure why.
I am running OpenWRT White Russian RC5 (openwrt-brcm-2.4-jffs2-4MB) on Linksys wrtsl54gs with usb hub connected to the routers's port and creative cam and usb stick connected to the hub. I am using spca5xx_lite to drive webcam, and can successfully mount usb stick ("mydrive").
If i instruct webcam to save image with the same name on the usb stick everything works fine. What I mean is that I can save and overwrite SpcaPict.jpg image using:
#! /bin/sh
ln -fs /dev/v4l/video0 /dev/video0
cd /tmp/mydrive
spcacat -d /dev/video0 -g -f jpg -p 1000 -o
However if I try to save each individual image, ( i.e. no overwriting) using
#! /bin/sh
ln -fs /dev/v4l/video0 /dev/video0
cd /tmp/mydrive
spcacat -d /dev/video0 -g -f jpg -p 1000
I get segmentation fault
....
grabbing method READ asked
VIDIOCSWIN height 288 width 352
Waiting .... for Incoming Events. CTrl_c to stop !!!!
picture jpeg 11:17:2008-08:48:17-P0000.jpg
Segmentation fault
Any help would be greatly appreciated!