lwille / node-gphoto2

A Node.js wrapper for libgphoto2
MIT License
296 stars 91 forks source link

Unsure of how to take burst images #103

Closed sadiqawos closed 3 years ago

sadiqawos commented 6 years ago

I'm trying to take a burst of images with just a single takePicture call. Is there any config parameter I can pass in, or do I need to do this in some sort of loop ?

lwille commented 6 years ago

Hi! I never tried, but depending on your camera you might want to look into eosremoterelease setting or something like that. I'd recommend playing with gphoto2 to see if the library / your camera supports burst mode at all.

Resource: http://gphoto-software.10949.n7.nabble.com/Burst-mode-with-libgphoto2-td4160.html

sadiqawos commented 6 years ago

Thanks! I'll give this a try later tonight and report back

Nic2012 commented 6 years ago

It works on a Nikon D700 by the follwong code:

    camera.setConfigValue('capturetarget', 1, function (err) {
        camera.setConfigValue('burstnumber', '2', function (err) {
            if (!err) {
                camera.takePicture({download: false}, function (err, path) {
                    console.log('takePicture', path);
                });
            }
        });
    });

Camera fires 2 shoots immediataley and stores them in camera: takePicture /store_00010001/DCIM/167ND700/_IMG0889.JPG

lwille commented 3 years ago

This issue looks solved / question answered; closing for inactivity. Feel free to reopen/comment though.