blob: f2c6b423f08e1dd79cfbfa78b95440c0a48f0907 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#!/bin/sh -x
dir=`mktemp -d /tmp/camera.XXXXXX`
cd $dir
echo -n "Attach Sony SLT and press return: "
read dummy
set -x -v
echo "*** standard actions"
gphoto2 -l
gphoto2 -L
gphoto2 --summary
echo "*** single capture"
gphoto2 --set-config imagequality=0 --capture-image-and-download
rm capt0000.jpg
gphoto2 --set-config imagequality=2 --capture-image-and-download
rm capt0000.jpg capt0000.arw
echo "single capture done, press return"
read dummy
echo "*** interval capture"
gphoto2 --set-config imagequality=0 --capture-image-and-download -F 3 -I 5
rm capt000*.*
gphoto2 --set-config imagequality=2 --capture-image-and-download -F 3 -I 5
rm capt000*.*
echo "*** timing capture"
rm capt000*.*
time gphoto2 --set-config imagequality=0 --capture-image-and-download
rm capt0000.jpg
echo "*** trigger movie"
gphoto2 --set-config movie=1 --wait-event=10s --set-config movie=0
echo "*** capture and wait_event - jpg/sdram - 10s"
gphoto2 --set-config imagequality=0
gphoto2 --wait-event-and-download=10s
gphoto2 --set-config imagequality=2
gphoto2 --wait-event-and-download=10s
echo "*** config "
gphoto2 --list-config
gphoto2 --list-all-config
gphoto2 --get-config iso
gphoto2 --set-config iso=200
gphoto2 --get-config iso
gphoto2 --set-config iso="Auto ISO"
echo "*** DONE"
echo rm -rf $dir
|