blob: 54a871aace3ced032c915d4206b3dec6e2f288b9 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
dir=`mktemp -d /tmp/camera.XXXXXX`
cd $dir
echo -n "Attach Canon EOS 1000D and press return: "
read dummy
set -x -v
echo "*** standard actions"
gphoto2 -l
gphoto2 -L
gphoto2 --summary
echo "*** single capture"
gphoto2 --set-config capturetarget=0
gphoto2 --set-config imageformat=0 --capture-image-and-download
rm capt0000.jpg
gphoto2 --set-config imageformat=6 --capture-image-and-download
rm capt0000.jpg capt0000.cr2
gphoto2 --set-config capturetarget=1
gphoto2 --set-config imageformat=0 --capture-image-and-download
gphoto2 --set-config imageformat=6 --capture-image-and-download
echo "single capture done, press return"
read dummy
echo "*** trigger capture"
gphoto2 --set-config capturetarget=0
gphoto2 --set-config imageformat=0 --trigger-capture --wait-event-and-download=5s
gphoto2 --set-config imageformat=0 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=10s
rm capt0000.jpg
gphoto2 --set-config imageformat=6 --trigger-capture --wait-event-and-download=5s
gphoto2 --set-config imageformat=6 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=10s
rm capt0000.jpg capt0000.cr2
gphoto2 --set-config capturetarget=1
gphoto2 --set-config imageformat=0 --trigger-capture --wait-event-and-download=5s
gphoto2 --set-config imageformat=0 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=10s
gphoto2 --set-config imageformat=6 --trigger-capture --wait-event-and-download=5s
gphoto2 --set-config imageformat=6 --trigger-capture --trigger-capture --trigger-capture --wait-event-and-download=10s
echo "trigger capture done, press return"
read dummy
echo "*** interval capture"
gphoto2 --set-config capturetarget=0
gphoto2 --set-config imageformat=0 --capture-image-and-download -F 3 -I 5
rm capt000*.*
gphoto2 --set-config imageformat=6 --capture-image-and-download -F 3 -I 5
rm capt000*.*
gphoto2 --set-config capturetarget=1
gphoto2 --set-config imageformat=0 --capture-image-and-download -F 3 -I 5
gphoto2 --set-config imageformat=6 --capture-image-and-download -F 3 -I 5
gphoto2 --set-config imageformat=0
echo "*** timing capture"
gphoto2 --set-config capturetarget=0
rm capt000*.*
time gphoto2 --set-config imageformat=0 --capture-image-and-download
rm capt0000.jpg
gphoto2 --set-config capturetarget=1
time gphoto2 --set-config imageformat=0 --capture-image-and-download
echo "*** testing preview"
rm capture_preview.jpg || true
gphoto2 --capture-preview
gwenview capture_preview.jpg
rm capture_preview.jpg || true
gphoto2 --set-config capturetarget=0
gphoto2 --capture-preview --capture-image-and-download --capture-preview --capture-image-and-download
rm capt0*.*
gwenview capture_preview.jpg
gphoto2 --set-config capturetarget=1
gphoto2 --capture-preview --capture-image-and-download --capture-preview --capture-image-and-download
gwenview capture_preview.jpg
rm capture_preview.jpg
rm movie.mjpg || true
gphoto2 --capture-movie=10s
rm movie.mjpg
echo "*** capture and wait_event - jpg/sdram - 10s"
gphoto2 --set-config capturetarget=0
gphoto2 --set-config imageformat=0
gphoto2 --wait-event-and-download=10s
gphoto2 --set-config imageformat=6
gphoto2 --wait-event-and-download=10s
echo "*** capture and wait_event - jpg/card - 50 events"
gphoto2 --set-config capturetarget=1
gphoto2 --set-config imageformat=0
gphoto2 --wait-event-and-download=100
gphoto2 --set-config imageformat=6
gphoto2 --wait-event-and-download=100
echo "*** config "
gphoto2 --list-config
gphoto2 --list-all-config
gphoto2 --set-config ownername="Markus Meissner"
gphoto2 --get-config ownername|grep Markus.Meissner
gphoto2 --set-config ownername="Marcus Meissner"
gphoto2 --get-config ownername|grep Marcus.Meissner
echo "*** DONE"
echo rm -rf $dir
|