From: Marcus M. <ma...@re...> - 2008-09-11 22:03:22
|
On Thu, Sep 11, 2008 at 03:00:11PM -0700, SCOTT BROWN wrote: > Hi, > > I have a Canon PowerShot A640 and I have found an error while capturing > images with gphoto. If I put gphoto into a loop taking only 2 pictures and > I check what files are listed using the gphoto --list-files command there > always ends up being 3 pictures taken instead of two. For some reason an > error appears during the second shot. It doesn't matter if you take 50 > pictures in a loop or 2, there always is one extra picture. Here is a mock > script file; > > --------------------------------------------------------------------------------------------------------------------------------------- > #myscript.txt > > #!/bin/sh > > i=0 > > while [ $i -lt 2 ] > do > gphoto2 --capture-image > if [ "$?" -ne "1" ]; then > echo "Picture taken sucessfully" > i=`expr $i + 1` > else > echo "Picture unsuccessfull" > fi > done > -------------------------------------------------------------------------------------------------------------------------------------------------- > > Here is the displayed output when the program is ran: > > root@gumstix-custom-verdex:~$ > ./test.txt > New file is in location /store_00010001/IMG_0001.JPG on the > camera > Picture taken > sucessfully This was one call. > ERROR: Could not > capture. > *** Error (-10: 'Timeout reading from or writing to the port') > *** > Picture > unsuccessfull This was the second ... it actually captured an image, but did not report success. --debug output would be helpful here. --debug --debug-logfile=xx$i.log or so. > New file is in location /store_00010001/DCIM/100CANON/IMG_0002.JPG on the > camera > Picture taken > sucessfully Third call. Ciao, Marcus |