Discussion:
[Gphoto-user] --folder and --filename flags not working
chrisdopuch
2014-05-08 23:51:52 UTC
Permalink
Hello,

I am using a Canon DSLR EOS D6 with a Beaglebone Black running Angstrom
Linux.

Whenever I use the --filename or --folder flags with gphoto2 it seems to
have no effect on the image. Here are some sample inputs and outputs:

***@beaglebone:~# gphoto2 --filename="capt%y%m%d%H%M%S.jpg"
--folder="/store_00020001/DCIM/100CANON" --capture-image
New file is in location /capt0000.jpg on the camera

Of course, I can never find this photo "capt0000.jpg" on the camera. I am
trying to capture the image and simply have it write to the SD card.

***@beaglebone:~# gphoto2 --filename="capt%y%m%d%H%M%S.jpg"
--folder="/store_00020001/DCIM/100CANON" --capture-image-and-download
New file is in location /capt0000.jpg on the camera
Saving file as capt140508184231.jpg
Deleting file /capt0000.jpg on the camera
Deleting 'capt0000.jpg' from folder '/'...

Using the capture and download method properly names the file, but the
--folder option seems to have no effect. I have tried using a slash after
the name of the folder as well, makes no difference.

***@beaglebone:~# gphoto2 --filename="capt%y%m%d%H%M%S.jpg"
--folder="~/images/" --capture-image-and-download
New file is in location /capt0000.jpg on the camera
Saving file as capt140508184523.jpg
Deleting file /capt0000.jpg on the camera
Deleting 'capt0000.jpg' from folder '/'...

Attempts to do this with a local directory also seem to have no effect.

I have also tried setting the default image name in ~/.gphoto/settings :

gphoto2=model=Canon EOS 6D
gphoto2=port=usb:001,002
libgphoto=cached-images=2
gphoto2=filename="capt%y%m%d%H%M%S.jpg"

... to no avail.

Any ideas anyone?



--
View this message in context: http://gphoto-software.10949.n7.nabble.com/folder-and-filename-flags-not-working-tp14330.html
Sent from the gphoto-user mailing list archive at Nabble.com.
Marcus Meissner
2014-05-09 06:40:13 UTC
Permalink
Post by chrisdopuch
Hello,
I am using a Canon DSLR EOS D6 with a Beaglebone Black running Angstrom
Linux.
Whenever I use the --filename or --folder flags with gphoto2 it seems to
The --filename option are for the downloaded file, not for the on camera files.

--folder is for the on-camera folder.
Post by chrisdopuch
--folder="/store_00020001/DCIM/100CANON" --capture-image
New file is in location /capt0000.jpg on the camera
Of course, I can never find this photo "capt0000.jpg" on the camera. I am
trying to capture the image and simply have it write to the SD card.
The camera is in a mode where it captures images to its SDRAM
and they get immediately downloaded to libgphoto2 memory.
Post by chrisdopuch
--folder="/store_00020001/DCIM/100CANON" --capture-image-and-download
New file is in location /capt0000.jpg on the camera
Saving file as capt140508184231.jpg
Deleting file /capt0000.jpg on the camera
Deleting 'capt0000.jpg' from folder '/'...
Using the capture and download method properly names the file, but the
--folder option seems to have no effect. I have tried using a slash after
the name of the folder as well, makes no difference.
--folder="~/images/" --capture-image-and-download
New file is in location /capt0000.jpg on the camera
Saving file as capt140508184523.jpg
Deleting file /capt0000.jpg on the camera
Deleting 'capt0000.jpg' from folder '/'...
Attempts to do this with a local directory also seem to have no effect.
gphoto2=model=Canon EOS 6D
gphoto2=port=usb:001,002
libgphoto=cached-images=2
gphoto2=filename="capt%y%m%d%H%M%S.jpg"
... to no avail.
Any ideas anyone?
If you want to keep the images on the sd card, change the "capturetarget"
config option to "Memory card".


gphoto2 --get-config capturetarget
gphoto2 --set-config capturetarget=1

--filename will however not define the name on the camera as said, the camera
will still call it IMG_4242.JPG for Canon.

Also, the folder where the images are stored on card is controlled by the camera, --folder
will have no effect on it.

Ciao, Marcus

Loading...