Jeff Breidenbach
2016-12-18 03:02:41 UTC
I'm interested in taking and downloading continuous automatic
camera shots, as quickly as possible. Camera is Sony A7R-ii
and no memory card. Works great with today's gphoto2 from
github.
Throughput is about 0.3 shots per seconds using gphoto2
--capture-image-and-download. Due to pipelining, throughput
much higher (over 1 hertz) with gphoto2 --capture-tethered and
mashing the shutter release. I want the high throughput but not the
physical button pressing.
I suspect that libgphoto2/samples/sample-trigger-capture.c is
exactly what I am looking for. However it fails with the following
message. Looking for guidance.
$ ./sample-trigger-capture
loop is at 1482029726.742791
loop is at 1482029726.750857
Reading PTP event failed: Timeout reading from or writing to the port (-10)
loop is at 1482029727.059034
triggering capture 1
Reading PTP event failed: Timeout reading from or writing to the port (-10)
Reading PTP event failed: Timeout reading from or writing to the port (-10)
Reading PTP event failed: Timeout reading from or writing to the port (-10)
done triggering
loop is at 1482029728.542823
loop is at 1482029728.550838
loop is at 1482029728.558757
Reading PTP event failed: Timeout reading from or writing to the port (-10)
loop is at 1482029728.863078
loop is at 1482029729.086873
triggering capture 2
Reading PTP event failed: Timeout reading from or writing to the port (-10)
done triggering
loop is at 1482029729.636847
triggering capture 3
Reading PTP event failed: Timeout reading from or writing to the port (-10)
Reading PTP event failed: Timeout reading from or writing to the port (-10)
done triggering
loop is at 1482029730.773895
loop is at 1482029730.966827
loop is at 1482029730.974719
Reading PTP event failed: Timeout reading from or writing to the port (-10)
File / / capt0000.jpg added to queue.
starting download 1 (queuelength = 1)
camera readfile of / / capt0000.jpg at offset 0
You need to specify a folder starting with /store_xxxxxxxxx/
*** Contexterror ***
You need to specify a folder starting with /store_xxxxxxxxx/
'gp_filesystem_read_file (camera->fs, folder, file, type, offset, buf,
size, context)' failed: -6
gp_camera_file_read failed: -6
camera shots, as quickly as possible. Camera is Sony A7R-ii
and no memory card. Works great with today's gphoto2 from
github.
Throughput is about 0.3 shots per seconds using gphoto2
--capture-image-and-download. Due to pipelining, throughput
much higher (over 1 hertz) with gphoto2 --capture-tethered and
mashing the shutter release. I want the high throughput but not the
physical button pressing.
I suspect that libgphoto2/samples/sample-trigger-capture.c is
exactly what I am looking for. However it fails with the following
message. Looking for guidance.
$ ./sample-trigger-capture
loop is at 1482029726.742791
loop is at 1482029726.750857
Reading PTP event failed: Timeout reading from or writing to the port (-10)
loop is at 1482029727.059034
triggering capture 1
Reading PTP event failed: Timeout reading from or writing to the port (-10)
Reading PTP event failed: Timeout reading from or writing to the port (-10)
Reading PTP event failed: Timeout reading from or writing to the port (-10)
done triggering
loop is at 1482029728.542823
loop is at 1482029728.550838
loop is at 1482029728.558757
Reading PTP event failed: Timeout reading from or writing to the port (-10)
loop is at 1482029728.863078
loop is at 1482029729.086873
triggering capture 2
Reading PTP event failed: Timeout reading from or writing to the port (-10)
done triggering
loop is at 1482029729.636847
triggering capture 3
Reading PTP event failed: Timeout reading from or writing to the port (-10)
Reading PTP event failed: Timeout reading from or writing to the port (-10)
done triggering
loop is at 1482029730.773895
loop is at 1482029730.966827
loop is at 1482029730.974719
Reading PTP event failed: Timeout reading from or writing to the port (-10)
File / / capt0000.jpg added to queue.
starting download 1 (queuelength = 1)
camera readfile of / / capt0000.jpg at offset 0
You need to specify a folder starting with /store_xxxxxxxxx/
*** Contexterror ***
You need to specify a folder starting with /store_xxxxxxxxx/
'gp_filesystem_read_file (camera->fs, folder, file, type, offset, buf,
size, context)' failed: -6
gp_camera_file_read failed: -6