conttime.lua: script to test continuous shooting speed

  • 0 Replies
  • 610 Views
*

Offline reyalp

  • ******
  • 11084
conttime.lua: script to test continuous shooting speed
« on: 25 / November / 2016, 23:01:23 »
Advertisements
Here's a script to test shooting speed using "hold half, click shoot" method or Canon continuous. It uses the same technique as rawopint.lua, fixedint.lua and the various chdkptp shooting commands.

This script can be used to measure the maximum realistic shooting rate under different settings, SD cards, etc.

The shutter speed is fixed at 1/128, to ensure that the contribution of shutter speed doesn't vary between runs.

Review should be turned off in Canon settings, and ISO should not be AUTO since different ISO settings have different processing overhead.

Options
shots - number of shots to shoot
interval - interval between shots. The script will attempt to wait in the shoot hook (usb remote hook) to maintain this interval. If the interval is lower than the camera can sustain, the script will shoot as fast as possible
Use continuous mode - Shoot by holding the shutter down. The camera must have continuous mode enabled in the Canon UI, or it will exit with an error. If not checked, the script will hold down half shoot and click full for each shot.

Output is logged to conttime.csv in the root of the SD card.

Log columns
date - Camera date and time
exp - Camera image number
shot_ready_tick - the tick count when the camera was ready to shoot (in the remote hook)
ready_time - difference between the previous shot_ready_tick and the current. 0 for the first shot. Effectively, the time it took for the camera to be ready to shoot again.
wait_time - how long the camera waited in addition to ready_time to maintain the interval. This is how much "spare time" there at the selected interval. Negative real shooting rate is lower than the interval. 0 for the first shot.
shot_tick - the tick count at which the exposure was started (when the remote hook was allowed to continue)
raw_tick - the tick count when the raw hook was ready, meaning the exposure was complete and the sensor was read out, but before the jpeg was created and written.
raw_time - the time between shot_tick and raw_tick
info - information about the camera and settings, only logged on the first shot

Each time the script is run, a header row and a row for each shot is appended to the log. The log is only written after shooting is done, so it should not affect the shooting rate.

The main value of interest is ready_time, since this shows the approximate shooting rate the camera is able to sustain. If you set and interval, wait_time shows how much "headroom" you have while still maintaining the interval. Subtracting raw_time from ready_time can give you an idea of the jpeg processing + saving overhead.

Sample output from D10 in continuous and "hold half/click full"
Code: [Select]
date exp shot_ready_tick ready_time wait_time shot_tick raw_tick raw_time info
11/25/2016 19:25:36 591 742570 0 0 742570 743180 610 platform:d10-100a-1.5.0-4706 Oct 16 2016 15:58:11 shots:5 interval:0 cont=true
11/25/2016 19:25:37 592 743490 920 -920 743490 744100 610
11/25/2016 19:25:38 593 744410 920 -920 744410 745020 610
11/25/2016 19:25:38 594 745320 910 -910 745320 745920 600
11/25/2016 19:25:39 595 746230 910 -910 746230 746840 610
date exp shot_ready_tick ready_time wait_time shot_tick raw_tick raw_time info
11/25/2016 19:25:50 596 757170 0 0 757170 757770 600 platform:d10-100a-1.5.0-4706 Oct 16 2016 15:58:11 shots:5 interval:0 cont=false
11/25/2016 19:25:51 597 758160 990 -990 758160 758770 610
11/25/2016 19:25:52 598 759160 1000 -1000 759160 759770 610
11/25/2016 19:25:53 599 760150 990 -990 760150 760740 590
11/25/2016 19:25:54 600 761140 990 -990 761140 761740 600
Don't forget what the H stands for.

 

Related Topics