You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`cache_dir` (string) - Directory to store cached normalized files - default: ".cache"
118
120
-`cache_ttl_minutes` (int) - Cache time-to-live in minutes (files older than this are deleted, 0 = no cleanup) - default: 10
121
+
-`icecast_source_port` (int) - Port for Icecast source client connections (0 = disabled) - default: 0
119
122
120
123
**Note:** Audio normalization is always enabled for consistent stream quality. All songs are automatically normalized to the standard bitrate and sample rate. Command-line arguments take precedence over config file values.
121
124
125
+
### Icecast Source Input (Live Audio)
126
+
127
+
GoStream supports accepting live audio from DJ applications and other sources via the **Icecast protocol**. This allows you to stream live audio without pre-recorded files.
128
+
129
+
#### Enabling Icecast Source Input
130
+
131
+
Add to your config file:
132
+
133
+
```json
134
+
{
135
+
"port": 8090,
136
+
"icecast_source_port": 8001
137
+
}
138
+
```
139
+
140
+
Or use command-line flag:
141
+
142
+
```bash
143
+
./gostream -icecast-source-port 8001
144
+
```
145
+
146
+
#### Connecting a Source
147
+
148
+
Use any Icecast-compatible source client to push audio to your server:
149
+
150
+
```bash
151
+
# Example with curl and ffmpeg
152
+
ffmpeg -i input.mp3 -f mp3 -b:a 128k - | \
153
+
curl -X SOURCE \
154
+
-H "Content-Type: audio/mpeg" \
155
+
--data-binary @- \
156
+
http://localhost:8001/
157
+
```
158
+
159
+
#### Features
160
+
161
+
- Accept audio from DJ apps, ffmpeg, OBS Studio, and standard Icecast source clients
162
+
- Automatic failover to file playlist when source disconnects
163
+
- Broadcast live audio to all connected listeners
164
+
- Full HTTP compatibility
165
+
166
+
For detailed setup instructions and examples, see [ICECAST_SOURCE_GUIDE.md](release/ICECAST_SOURCE_GUIDE.md).
167
+
168
+
#### Testing Icecast Connection
169
+
170
+
Use the provided test scripts to verify your setup:
0 commit comments