Skip to content

Interval still recording

Tomohiko Ozawa edited this page Oct 1, 2016 · 4 revisions

Interval still recording

This is so called Time-lapse shooting procedure, which captures still images continuously in the fixed interval. You can start Interval still recording by #start_interval_recording and then stop by #stop_interval_recording. You need to set shoot mode by #change_function_to_shoot('intervalstill') before shooting.

cam = SonyCameraRemoteAPI::Camera.new
cam.change_function_to_shoot 'intervalstill'
cam.start_interval_recording
sleep 5
filenames = cam.stop_interval_recording transfer: true, prefix: 'TEST', dir: 'images'

Note that transfer is disabled by default, due to the large file size. Keyword arguments prefix and dir are also available as well as Continuous shooting.

The one of the important parameter is Interval Time, that is referred as :IntervalTime. For example, you can set interval time to 2 seconds by:

cam.set_parameter :IntervalTime, '2'