| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | |
| 3 | <!-- |
| 4 | EXAMPLE: A valid configuration that contains every configuration option |
| 5 | |
| 6 | NB: /ezstream/metadata/program is commented out so that this configuration |
| 7 | can work without scripting. |
| 8 | --> |
| 9 | |
| 10 | <!-- Ezstream configuration root element --> |
| 11 | <ezstream> |
| 12 | |
| 13 | <!-- |
| 14 | Server configuration |
| 15 | --> |
| 16 | <servers> |
| 17 | <server> |
| 18 | <!-- Identifying name (default: "default") --> |
| 19 | <name>Test Server</name> |
| 20 | |
| 21 | <!-- |
| 22 | Transport protocol: |
| 23 | HTTP (default), HTTPS (implies <tls>required</tls>), ICY, RoarAudio |
| 24 | --> |
| 25 | <protocol>HTTP</protocol> |
| 26 | <!-- Server address --> |
| 27 | <hostname>127.0.0.1</hostname> |
| 28 | <!-- Server port (default: 8000) --> |
| 29 | <port>8000</port> |
| 30 | |
| 31 | <!-- Login user (default: "source") --> |
| 32 | <user>source</user> |
| 33 | <!-- Login password (check file permissions, or everyone can see this) --> |
| 34 | <password>hackme</password> |
| 35 | |
| 36 | <!-- |
| 37 | Configure TLS requirement: none, may, required (default: "may") |
| 38 | |
| 39 | For compatibility reasons, the default configuration and this example |
| 40 | is "may". THIS IS INSECURE. It allows a MitM to intercept the |
| 41 | password and tamper with the stream. It is recommended to set this to |
| 42 | "required" when configuring TLS to secure streaming over untrusted |
| 43 | networks. |
| 44 | --> |
| 45 | <tls>May</tls> |
| 46 | |
| 47 | <!-- |
| 48 | Configure allowed cipher suites for TLS other than the libshout |
| 49 | default. |
| 50 | See openssl(1)/ciphers(1) for details. |
| 51 | --> |
| 52 | <tls_cipher_suite>HIGH:!RSA:!SHA:!DH:!aNULL:!eNULL:!TLSv1</tls_cipher_suite> |
| 53 | |
| 54 | <!-- |
| 55 | Directory to use for server certificate verification in "hash format". |
| 56 | See openssl(1)/verify(1) for details. |
| 57 | |
| 58 | One of the <ca_dir /> or <ca_file /> settings must be enabled for |
| 59 | certificate verification to succeed. |
| 60 | --> |
| 61 | <!-- <ca_dir>/etc/ssl/certs</ca_dir> --> |
| 62 | |
| 63 | <!-- |
| 64 | CA bundle for both server certificate verification and building the |
| 65 | client certificate chain. |
| 66 | |
| 67 | One of the <ca_dir /> or <ca_file /> settings must be enabled for |
| 68 | certificate verification to succeed. |
| 69 | --> |
| 70 | <!-- <ca_file>/etc/ssl/certs/ca-certificates.crt</ca_file> --> |
| 71 | |
| 72 | <!-- |
| 73 | X.503 client certificate, in PEM format, containing both certificate |
| 74 | (with public key) and private key in the same file, for |
| 75 | authentication. |
| 76 | --> |
| 77 | <!-- <client_cert>/etc/ssl/private/ezstream.crt</client_cert> --> |
| 78 | |
| 79 | <!-- Number of reconnection attempts, before giving up (default: 0) --> |
| 80 | <reconnect_attempts>20</reconnect_attempts> |
| 81 | </server> |
| 82 | </servers> |
| 83 | |
| 84 | <!-- |
| 85 | Stream configuration |
| 86 | --> |
| 87 | <streams> |
| 88 | <stream> |
| 89 | <!-- |
| 90 | Identifying name (default: "default") |
| 91 | |
| 92 | NB: Only the "default" stream is supported at this point. |
| 93 | --> |
| 94 | <!-- <name>default</name> --> |
| 95 | |
| 96 | <!-- Mount point on server --> |
| 97 | <mountpoint>/stream.ogg</mountpoint> |
| 98 | |
| 99 | <!-- Name of the intake entry to use (default: "default") --> |
| 100 | <intake>Test Input</intake> |
| 101 | |
| 102 | <!-- Name of the server entry to use (default: "default") --> |
| 103 | <server>Test Server</server> |
| 104 | |
| 105 | <!-- |
| 106 | Setting to allow stream to be listed in public YP directory |
| 107 | (default: no) |
| 108 | --> |
| 109 | <public>No</public> |
| 110 | |
| 111 | <!-- Stream format: Ogg, MP3, WebM, Matroska --> |
| 112 | <format>Ogg</format> |
| 113 | |
| 114 | <!-- Encoder name (defined below) to use for (re)encoding --> |
| 115 | <encoder>OggEnc-Q1.5</encoder> |
| 116 | |
| 117 | <!-- Various other informational settings --> |
| 118 | <stream_name>Test Stream</stream_name> |
| 119 | <stream_url>http://localhost:8000/</stream_url> |
| 120 | <stream_genre>Beeps</stream_genre> |
| 121 | <stream_description>Test tones and noise</stream_description> |
| 122 | <stream_quality>1.5</stream_quality> |
| 123 | <stream_bitrate>16</stream_bitrate> |
| 124 | <stream_samplerate>44100</stream_samplerate> |
| 125 | <stream_channels>2</stream_channels> |
| 126 | </stream> |
| 127 | </streams> |
| 128 | |
| 129 | <!-- |
| 130 | Intake configuration |
| 131 | --> |
| 132 | <intakes> |
| 133 | <intake> |
| 134 | <!-- Identifying name (default: "default") --> |
| 135 | <name>Test Input</name> |
| 136 | |
| 137 | <!-- |
| 138 | Media type: autodetect, file, playlist, program, stdin |
| 139 | (default: autodetect) |
| 140 | --> |
| 141 | <type>playlist</type> |
| 142 | |
| 143 | <!-- Input file, program name, or "stdin" keyword (deprecated) --> |
| 144 | <filename>playlist.m3u</filename> |
| 145 | |
| 146 | <!-- Setting to shuffle playlists --> |
| 147 | <shuffle>Yes</shuffle> |
| 148 | |
| 149 | <!-- Setting whether to stream intake indefinitely or only once --> |
| 150 | <stream_once>Yes</stream_once> |
| 151 | </intake> |
| 152 | </intakes> |
| 153 | |
| 154 | <!-- |
| 155 | Metadata configuration |
| 156 | --> |
| 157 | <metadata> |
| 158 | <!-- Program to query for metadata instead of from media files --> |
| 159 | <!-- <program>meta.sh</program> --> |
| 160 | |
| 161 | <!-- Metadata format --> |
| 162 | <format_str>@a@ - @t@</format_str> |
| 163 | |
| 164 | <!-- Interval for additional metadata refreshes (default: -1 (none)) --> |
| 165 | <refresh_interval>-1</refresh_interval> |
| 166 | |
| 167 | <!-- Setting to clean up extraneous whitespace (default: no) --> |
| 168 | <normalize_strings>Yes</normalize_strings> |
| 169 | |
| 170 | <!-- Setting to suppress all metadata udpates (default: no) --> |
| 171 | <no_updates>Yes</no_updates> |
| 172 | </metadata> |
| 173 | |
| 174 | <!-- |
| 175 | Decoder configurations |
| 176 | --> |
| 177 | <decoders> |
| 178 | <decoder> |
| 179 | <!-- Decoder name --> |
| 180 | <name>OggDec</name> |
| 181 | <!-- Program and options --> |
| 182 | <program>oggdec -R -b 16 -e 1 -s 1 -o - @T@</program> |
| 183 | <!-- File extensions to use this decoder for --> |
| 184 | <file_ext>.ogg</file_ext> |
| 185 | <file_ext>.oga</file_ext> |
| 186 | </decoder> |
| 187 | |
| 188 | <decoder> |
| 189 | <name>MadPlay</name> |
| 190 | <program>madplay -b 16 -R 44100 -S -o raw:- @T@</program> |
| 191 | <file_ext>.mp3</file_ext> |
| 192 | </decoder> |
| 193 | |
| 194 | <decoder> |
| 195 | <name>Flac</name> |
| 196 | <program>flac -s -d --force-raw-format --sign=signed --endian=little -o - @T@</program> |
| 197 | <file_ext>.flac</file_ext> |
| 198 | </decoder> |
| 199 | |
| 200 | <decoder> |
| 201 | <name>AAC</name> |
| 202 | <program>faad -d -f 2 -w @T@</program> |
| 203 | <file_ext>.m4a</file_ext> |
| 204 | </decoder> |
| 205 | </decoders> |
| 206 | |
| 207 | <!-- |
| 208 | Encoder configurations |
| 209 | --> |
| 210 | <encoders> |
| 211 | <encoder> |
| 212 | <!-- Encoder name --> |
| 213 | <name>OggEnc-Q1.5</name> |
| 214 | <!-- Output stream format --> |
| 215 | <format>Ogg</format> |
| 216 | <!-- Program and options --> |
| 217 | <program>oggenc -r -B 16 -C 2 -R 44100 --raw-endianness 0 -q 1.5 -t @M@ -</program> |
| 218 | </encoder> |
| 219 | |
| 220 | <encoder> |
| 221 | <name>Opus-VBR96</name> |
| 222 | <format>Ogg</format> |
| 223 | <program>opusenc --vbr --bitrate 96 --title @t@ --artist @a@ --raw --raw-rate 44100 - -</program> |
| 224 | </encoder> |
| 225 | |
| 226 | <encoder> |
| 227 | <name>Lame-CBR128</name> |
| 228 | <format>MP3</format> |
| 229 | <program>lame --preset cbr 128 -r -s 44.1 --bitwidth 16 - -</program> |
| 230 | </encoder> |
| 231 | </encoders> |
| 232 | |
| 233 | </ezstream> |