mixers.conf 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. # This config file demonstrates the usage of mixers.
  2. # First, two mixers are defined:
  3. #
  4. # - mixer1: sends the mixed stream to Icecast and saves it to a file
  5. # - mixer2: sends the mixed stream to Icecast
  6. #
  7. # Two dongles are used, both in AM, multichannel mode:
  8. #
  9. # - dongle 1: 3 channels:
  10. # - channel 1 goes to mixer1 (center, volume decreased to 30%)
  11. # - channel 2 goes to mixer1 (full left)
  12. # - channel 3 goes to mixer2 (85% right)
  13. #
  14. # - dongle 2: 2 channels:
  15. # - channel 1 goes to mixer1 (full right)
  16. # - channel 2 goes to mixer2 (85% left, volume set to 200%)
  17. #
  18. # Refer to https://github.com/charlie-foxtrot/RTLSDR-Airband/wiki
  19. # for description of keywords and config syntax.
  20. mixers: {
  21. mixer1: {
  22. outputs: (
  23. {
  24. type = "icecast";
  25. server = "icecast.server.example.org";
  26. port = 8080;
  27. mountpoint = "mixer1.mp3";
  28. name = "VOLMET + Approach + Director"
  29. genre = "ATC";
  30. username = "source";
  31. password = "mypassword";
  32. },
  33. {
  34. type = "file";
  35. directory = "/home/pi/recordings";
  36. filename_template = "mixer1";
  37. }
  38. );
  39. },
  40. mixer2: {
  41. outputs: (
  42. {
  43. type = "icecast";
  44. server = "icecast.server.example.org";
  45. port = 8080;
  46. mountpoint = "mixer2.mp3";
  47. name = "Ground + Delivery"
  48. genre = "ATC";
  49. username = "source";
  50. password = "mypassword";
  51. }
  52. );
  53. }
  54. };
  55. devices:
  56. ({
  57. type = "rtlsdr";
  58. index = 0;
  59. gain = 25;
  60. centerfreq = 121.2;
  61. correction = 81;
  62. channels:
  63. (
  64. # VOLMET
  65. {
  66. freq = 120.875;
  67. # VOLMET/ATIS/AWOS channels often transmit continuously.
  68. # Auto squelch does not perform well in such cases, so it's best to set the
  69. # squelch threshold manually. squelch_threshold defines an absolute signal
  70. # level (in dBFS).
  71. squelch_threshold = -40;
  72. lowpass = 5;
  73. highpass = 5;
  74. outputs: (
  75. {
  76. type = "mixer";
  77. name = "mixer1";
  78. ampfactor = 0.3;
  79. }
  80. );
  81. },
  82. # Approach
  83. {
  84. freq = 121.8;
  85. outputs: (
  86. {
  87. type = "mixer";
  88. name = "mixer1";
  89. balance = -1.0;
  90. }
  91. );
  92. },
  93. # Director
  94. {
  95. freq = 121.925;
  96. outputs: (
  97. {
  98. type = "mixer";
  99. name = "mixer2";
  100. balance = 0.85;
  101. }
  102. );
  103. }
  104. );
  105. },
  106. {
  107. type = "rtlsdr";
  108. index = 1;
  109. gain = 33;
  110. centerfreq = 131.2;
  111. correction = 48;
  112. channels:
  113. (
  114. # Ground
  115. {
  116. freq = 130.925;
  117. # Another way of tweaking the squelch is to specify custom SNR threshold (in dB)
  118. squelch_snr_threshold = 5.0;
  119. outputs: (
  120. {
  121. type = "mixer";
  122. name = "mixer1";
  123. balance = 1.0;
  124. }
  125. );
  126. },
  127. # Delivery
  128. {
  129. freq = 131.4;
  130. outputs: (
  131. {
  132. type = "mixer";
  133. name = "mixer2";
  134. balance = -0.85;
  135. ampfactor = 2.0;
  136. }
  137. );
  138. }
  139. );
  140. }
  141. );