System information

Using scripts in Axis Camera/Video products
Axis Communications AB provides NO support for application development of any kind. The information
here is provided "as is", and there is no guarantee that any of the examples shown will work in your
particular application.
Revision 1.02 October 2002 15
%M (minute)
%S (second).
These correspond to the date and time the file was created.
Also supported is %i, which specifies the file number, and which also can be followed by a
number specifying how many digits are allowed.
The default format is snapshot_%y%m%d_%H%M%S_%i4.
3.4.1.3 Examples
The first example shows how to take one (1) image with camera one (1). The resulting image
will be of the size 352x288 (the resolution and other attributes depend on the product). The
image will be stored in /tmp/SNAP/ and named snapshot.
bufferd -start -buffername SNAP -snapshot -pre 1 -format snapshot
-uri ftp://axis-cgi/jpg/1/352x288.jpg
The next example can be used in a PHP3-script, and is equivalent to the example above.
function shoot() {
$command = "bufferd -start -buffername SNAP";
$command .= " -snapshot -pre 1";
$command .= " -format snapshot";
$command .= " -uri ftp://axis-cgi/jpg/1/352x288.jpg ";
system($command);
}
The following example creates a buffer that saves its images to the directory /tmp/ALARM/,
where the files are named according to the creation time. The captured images in this case will
be 176x144 and are captured every two (2) seconds by the first camera. Five (5) images before
and two (2) images after the buffer is stopped are saved.
bufferd -start -buffername ALARM -uri ftp://axis-cgi/jpg/1/176x144.jpg
-pre 5 -post 2 -postdelay 2000
This example shows how to stop the buffer started above.
bufferd -stop ALARM
This example resets (i.e. stops buffering and clears the directory) the buffer specified in the last
example.
bufferd -reset ALARM
Let's say a method of buffering images is required, and when an arbitrary event occurs, an alarm
is read. The images taken will be handled and the buffering should then continue. The following
example illustrates the steps to take (using the examples above):
bufferd -start -buffername ALARM -uri ftp://axis-cgi/jpg/1/176x144.jpg
-pre 5 -post 2 -postdelay 2000