[go: up one dir, main page]

Menu

[r115]: / trunk / avrecord.cfg  Maximize  Restore  History

Download this file

148 lines (109 with data), 3.5 kB

  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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
// avrecord configuration file //
paths:
{
//path for logfile
log_file = "/etc/avrecord/avrecord.log";
//output directory where generated movies will be saved
output_dir = "/home";
//name template for output movies
filename = "movie-%Y-%m-%d_%H-%M.avi";
};
video:
{
//video device file
device = "/dev/video0";
//device inputs (set on initialization)
inputs:
{
};
//choosen input
input = 1;
//standarts supported by device (set on initialization)
standards:
{
};
//choosen standart
standard = "";
//device controls (set on initialization)
controls:
{
};
//captured image width
width = 640;
//captured image heigh
height = 480;
//video codecs (see ffmpeg -formats for details)
codecs = [];
//choosen video codec
codec = "msmpeg4";
//bits per second
bitrate = 2500000;
//quantizer value for variable bitrate: 0 for constant bitrate, 2-31 for variable with different quality (2 -- is the best, 31 -- is the worst)
var_bitrate = 2;
};
audio:
{
//codec name (see ffmpeg -formats for details)
codec = "mp2";
//samples per second
sample_rate = 44100;
//bits per second
bitrate = 96000;
//number of audio channel
channels = 1;
//desired buffer length (in frames; 0 means auto)
buffer_length = 0;
//each audio sample will be multiplied on this value
amplification_level = 20;
};
switches:
{
//if true, do motion detection
detect_motion = true;
//if true, do noise detection
detect_noise = false;
//if true, record only when motion (or noise, if correspondig flag is set) is detected
record_on_motion = true;
//if true, record only when noise (or motion, if correspondig flag is set) is detected
record_on_noise = false;
//if true, print number of motion pixels to the image
print_diffs = true;
//if true, print sound noise level
print_level = false;
//if true, print current date to the image
print_date = true;
};
detection:
{
//time of no_motion that is required for starting new movie file
min_gap = 300; //seconds
//movie duratioin that is required for starting new movie file
min_record_time = 30; //minutes
//when there's no motion, continue recordig during this time
post_motion_offset = 30; //seconds
//number of frames to write before the one on wich motion (or noise) was detected
latency = 8; //value: 2 or grater
//step in frames between the two compared ones
frames_step = 5; //value: from 1 or grater
//when detecting a motion, difference between two pixels is compared with this value
noise_level = 2;
//a motion is detected when number of differing pixels is grater than this value
threshold = 25;
//check each n-th pixel for difference
pixel_step = 1;
//how many times to erode captured image to remove a noise
noise_reduction_level = 1;
//function for sound noise level calculation: 0 - linear (default), 1 - 2pwr root, 2 - 4pwr root, 3 - 8pwr root, 4 - 2pwr, 5 - 4pwr, 6 - 8pwr
snd_noise_level_func = 0;
//sound noise is detected when noise level calculated with the "noise_level_function" is grater than this value (0 - 1000)
snd_noise_threshold = 250;
};
schedule:
{
//defines time, when recording will be started
start_time = ""; //"dd.mm.yyyy-hh:mm:ss"
//defines time, when recording will be finished
end_time = ""; //"dd.mm.yyyy-hh:mm:ss"
//array of timestamp pairs. If not empty, record only when current time is between any pair.
schedule = ""; //"hh:mm:ss-hh:mm:ss;hh:mm:ss-hh:mm:ss;..."
};