forked from charlie-foxtrot/RTLSDR-Airband
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmixers.conf
141 lines (140 loc) · 2.66 KB
/
mixers.conf
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
# This config file demonstrates the usage of mixers.
# First, two mixers are defined:
#
# - mixer1: sends the mixed stream to Icecast and saves it to a file
# - mixer2: sends the mixed stream to Icecast
#
# Two dongles are used, both in AM, multichannel mode:
#
# - dongle 1: 3 channels:
# - channel 1 goes to mixer1 (center, volume decreased to 30%)
# - channel 2 goes to mixer1 (full left)
# - channel 3 goes to mixer2 (85% right)
#
# - dongle 2: 2 channels:
# - channel 1 goes to mixer1 (full right)
# - channel 2 goes to mixer2 (85% left, volume set to 200%)
#
# Refer to https://github.com/charlie-foxtrot/RTLSDR-Airband/wiki
# for description of keywords and config syntax.
mixers: {
mixer1: {
outputs: (
{
type = "icecast";
server = "icecast.server.example.org";
port = 8080;
mountpoint = "mixer1.mp3";
name = "VOLMET + Approach + Director"
genre = "ATC";
username = "source";
password = "mypassword";
},
{
type = "file";
directory = "/home/pi/recordings";
filename_template = "mixer1";
}
);
},
mixer2: {
outputs: (
{
type = "icecast";
server = "icecast.server.example.org";
port = 8080;
mountpoint = "mixer2.mp3";
name = "Ground + Delivery"
genre = "ATC";
username = "source";
password = "mypassword";
}
);
}
};
devices:
({
type = "rtlsdr";
index = 0;
gain = 25;
centerfreq = 121.2;
correction = 81;
channels:
(
# VOLMET
{
freq = 120.875;
# VOLMET/ATIS/AWOS channels often transmit continuously.
# Auto squelch does not perform well in such cases, so it's best to set the
# squelch threshold manually. squelch_threshold defines an absolute signal
# level (in dBFS).
squelch_threshold = -40;
outputs: (
{
type = "mixer";
name = "mixer1";
ampfactor = 0.3;
}
);
},
# Approach
{
freq = 121.8;
outputs: (
{
type = "mixer";
name = "mixer1";
balance = -1.0;
}
);
},
# Director
{
freq = 121.925;
outputs: (
{
type = "mixer";
name = "mixer2";
balance = 0.85;
}
);
}
);
},
{
type = "rtlsdr";
index = 1;
gain = 33;
centerfreq = 131.2;
correction = 48;
channels:
(
# Ground
{
freq = 130.925;
# Another way of tweaking the squelch is to specify custom SNR threshold (in dB)
squelch_snr_threshold = 5.0;
;
outputs: (
{
type = "mixer";
name = "mixer1";
balance = 1.0;
}
);
},
# Delivery
{
freq = 131.4;
outputs: (
{
type = "mixer";
name = "mixer2";
balance = -0.85;
ampfactor = 2.0;
}
);
}
);
}
);