engine.ini 6.67 KB
Newer Older
1
2
3
###################
# engine Settings #
###################
4
5
6
7
8
9
10

[database]
db_user="engine"
db_name="engine"
db_pass="engine"
db_host="localhost"

11
[monitoring]
12
13
# how often should i check the diskspace. defaults to 600s = 10m
diskspace_check_interval=20
14
15
16
# under which value should i start sending admin mails. possible values k, M, G, T or no metric prefix. defaults to 2G
diskspace_warning_value=1G
# under which value should i stop recording. defaults to 200M
17
diskspace_critical_value=100M
18
19

[mail]
20
21
mail_server=""
mail_server_port=""
22
23
mail_user=""
mail_pass=""
24
# if you want to send multiple adminmails, make them space separated
25
admin_mail="gogo@servus.at gottfried@servus.at"
26
#
27
from_mail="monitor@aura.py"
28
29
# The beginning of the subject. With that you can easily apply filter rules
mailsubject_prefix="[AURA]"
30

31
32
33
[dataurls]
calendarurl="http://localhost:8000/api/v1/playout"
importerurl="http://localhost:8008/api/v1/groups/_public/playlists/"
34
35
# how often should the calendar be fetched in seconds (This determines the time of the last change before a specific show)
fetching_frequency=3600
36
37
38
39
40
41
42
43
44

#######################
# LiquidSoap Settings #
#######################

# all these settings here require a restart of the liquidsoap server

[liquidsoap]
# the user and group under which this software will run
45
46
47
daemongroup="gg"
daemonuser="gg"

48
49
50
51
52
53
54
55
[socket]
socketdir="/home/gg/PycharmProjects/engine/modules/liquidsoap"

[logging]
logdir="/var/log/aura"
# possible values: debug, info, warning, error, critical
loglevel="info"

56
57
58
59
60
61
62
# track_sensitive => fallback_folder track sensitivity
# max_blank => maximum time of blank from source (float)
# min_noise => minimum duration of noise on source to switch back over (float)
# threshold => power in dB under which the stream is considered silent (float)
fallback_max_blank="5."
fallback_min_noise="0."
fallback_threshold="-40."
63

64
[soundcard]
65
66
67
68
69
70
# choose your weapon
# if you are starving for pain in the ass choose alsa
# if you don't care about latency choose pulseaudio
# if you want low latency and a bit of experimenting, choose jack
soundsystem="jack"

71
# you can define up to 5 inputs and outputs
72
# it is tested with
73
74
#  - ALSA with ONE input and ONE output
#  - pulseaudio with ONE input and ONE output (should work with multiple ins/outs)
75
76
77
78
#  - jack with multiple inputs and outputs
#
# with alsa you have to write the devicenames like hw:0
# with pulse and jack => an non empty value means it is used
79
# devices with empty string are ignored and not used
80
input_device_0="y"
81
input_device_1=""
82
83
84
input_device_2=""
input_device_3=""
input_device_4=""
85
86
# same same, but different
output_device_0="y"
87
88
89
output_device_1=""
output_device_2=""
output_device_3=""
90
91
output_device_4=""

92
93
# if you are using alsa, you most probably have to tweak these values
# out of the box you will hear alot of cracklings and artifacts
94

95
# alsa_buffer => int
96
alsa_buffer=""
97
# alsa_buffer_length => int
98
alsa_buffer_length=""
99
# alsa_periods => int
100
alsa_periods=""
101
# frame_duration => double
102
frame_duration=""
103
104
105
# frame_size => int
frame_size=""

106
107
108
109
110
111
112
113
#####################
# Recorder Settings #
#####################

# you can define up to 5 recorder types.
# aac, flac, mp3, ogg, opus and wav is supported

[recording]
114
# flac example
115
# enable this recorder. everything else than 'y' is considered as disabled
116
rec_0="n"
117
# first set a folder
118
rec_0_folder="/var/audio/rec/flac"
119
120
121
# after how many minutes the recording will be cut
rec_0_duration="30"
# file (or encoding-) type
122
rec_0_encoding="flac"
123
124
125
126
127
# bitrate (with encoding types without bitrate like flac or wav it is substituted. 32 => very poor quality. 320 => very high quality)
rec_0_bitrate="128"
# channels: everything else than 2 is considered as mono
rec_0_channels="2"

128
# aac example
129
rec_1="n"
130
rec_1_folder="/var/audio/rec/aac"
131
rec_1_duration="30"
132
rec_1_encoding="aac"
133
134
135
136
rec_1_bitrate="64"
rec_1_channels="2"

# mp3 example
137
rec_2="y"
138
139
rec_2_folder="/var/audio/rec/mp3"
rec_2_duration="30"
140
rec_2_encoding="mp3"
141
rec_2_bitrate="32"
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
rec_2_channels="2"

# ogg example
rec_3="n"
rec_3_folder="/var/audio/rec/ogg"
rec_3_duration="30"
rec_3_encoding="ogg"
rec_3_bitrate="320"
rec_3_channels="2"

# opus example
rec_4="n"
rec_4_folder="/var/audio/rec/opus"
rec_4_duration="30"
rec_4_encoding="opus"
rec_4_bitrate="32"
rec_4_channels="2"

# wav example
#rec_4="n"
#rec_4_folder="/var/audio/rec/wav"
#rec_4_duration="30"
#rec_4_filetype="wav"
#rec_4_bitrate="320"
#rec_4_channels="2"

168
169
170
171
###################
# Stream Settings #
###################

172
173
# You can define up to outgoing 5 streams
# aac, flac, mp3, ogg and opus is supported
174

175
[stream]
176
# defines enabled or not
177
stream_0="y"
178
179
# possible values: aac, flac, mp3, ogg, opus (depending on what liquidsoap-plugins you installed)
stream_0_encoding="aac"
180
# bitrate (with encoding types without bitrate like flac or ogg it is substituted. 32 => very poor quality. 320 => very high quality)
181
stream_0_bitrate="128"
182
# how many channels? everything else than 2 is considered as mono
183
stream_0_channels="2"
184
# to where we are streaming..?
185
stream_0_host="localhost"
186
# and which port?
187
stream_0_port="8888"
188
# the name of the mountpoint
189
stream_0_mountpoint="aura-test-0.aac"
190
# username
191
stream_0_user="source"
192
# and the password
193
stream_0_password="source"
194
# stream url
195
stream_0_url="http://www.fro.at"
196
# the name of the stream
197
stream_0_name="AURA Test Stream 0"
198
# the genre of the stream
199
stream_0_genre="mixed"
200
# description of the stream
201
stream_0_description="Test Stream 0"
202

203
stream_1="n"
204
stream_1_encoding="flac"
205
stream_1_bitrate="128"
206
stream_1_channels="2"
207

208
stream_1_host="localhost"
209
stream_1_port="8888"
210
stream_1_mountpoint="aura-test-1.flac"
211
stream_1_user="source"
212
stream_1_password="source"
213
214

stream_1_url="http://www.fro.at"
215
stream_1_name="AURA Test Stream 1"
216
stream_1_genre="mixed"
217
stream_1_description="Test Stream 1"
218

219
stream_2="n"
220
stream_2_encoding="mp3"
221
stream_2_bitrate="64"
222
stream_2_channels="2"
223

224
stream_2_host="localhost"
225
stream_2_port="8888"
226
stream_2_mountpoint="aura-test-2.mp3"
227
stream_2_user="source"
228
stream_2_password="source"
229
230

stream_2_url="http://www.fro.at"
231
stream_2_name="AURA Test Stream 2"
232
stream_2_genre="mixed"
233
234
stream_2_description="Test Stream 2"

235
stream_3="n"
236
237
238
239
240
stream_3_encoding="ogg"
stream_3_bitrate="64"
stream_3_channels="2"

stream_3_host="localhost"
241
stream_3_port="8888"
242
243
244
245
246
247
248
249
250
stream_3_mountpoint="aura-test-3.ogg"
stream_3_user="source"
stream_3_password="source"

stream_3_url="http://www.fro.at"
stream_3_name="AURA Test Stream 3"
stream_3_genre="mixed"
stream_3_description="Test Stream 3"

251
stream_4="n"
252
253
254
255
256
stream_4_encoding="opus"
stream_4_bitrate="64"
stream_4_channels="2"

stream_4_host="localhost"
257
stream_4_port="8888"
258
259
260
261
262
263
264
265
stream_4_mountpoint="aura-test-4.opus"
stream_4_user="source"
stream_4_password="source"

stream_4_url="http://www.fro.at"
stream_4_name="AURA Test Stream 3"
stream_4_genre="mixed"
stream_4_description="Test Stream 3"