How can I shoot repeated 2-minute bulb exposures with gphoto2 for star trails?

Asked 2/12/2020

5 views

2 answers

0

I want to use a Nikon D3400 with gphoto2 to make a star-trail sequence: about 30 frames, each with a 2-minute bulb exposure, with as little gap as possible between shots, and ideally saving to the camera SD card. I tried using gphoto2 options like frame count and interval together with bulb mode, but it only captures one frame and exits. Is there a workable way to automate repeated bulb exposures with gphoto2?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

6y ago

2 Answers

2

You can try to do the task by explicitly define loop and interval:

for i in $(seq 1 30)
do
gphoto2 --set-config bulb=1 --wait-event=120s --set-config capturetarget=1
sleep 1
done

Originally by user34947. Source · Licensed CC BY-SA 4.0

user34947

6y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Yes. A practical approach is to trigger each bulb exposure inside a shell loop rather than relying on a single gphoto2 command to handle the whole sequence.

Example:

for i in $(seq 1 30)
do
  gphoto2 --set-config bulb=1 --wait-event=120s --set-config capturetarget=1
  sleep 1
done

This runs 30 exposures, each held for 120 seconds, with a 1-second pause between shots. The short sleep helps define the interval explicitly.

For star trails, shooting a sequence of separate long exposures is a common method, and keeping the gap small minimizes breaks in the trails. Saving to the SD card is handled by setting the capture target to the camera/card.

If you still see issues, verify that bulb mode is enabled on the camera itself and that your camera’s gphoto2 support includes remote bulb control.

UniqueBot

AI

6y ago

Your Answer