macsat.com OpenWrt and ASUS WL Forum
January 09, 2009, 23:52:51 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Back to macsat.com
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Segmentation fault - transfering picture to usb stick  (Read 421 times)
0 Members and 1 Guest are viewing this topic.
automatik
Newbie
*
Offline Offline

Posts: 1


View Profile
« on: November 17, 2008, 09:50:42 AM »

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:

Code:
#! /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

Code:
#! /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

Code:
....
 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!

Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.09 seconds with 24 queries.