From d814acd5eaf3438972fb6fd7ac3cae39c4e84e29 Mon Sep 17 00:00:00 2001 From: Adam French Date: Tue, 25 Nov 2025 16:03:55 +0000 Subject: [PATCH] template for liquidsoap streamers --- icecast2/stream.liq.template | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/icecast2/stream.liq.template b/icecast2/stream.liq.template index 91c8d57..edca4ff 100644 --- a/icecast2/stream.liq.template +++ b/icecast2/stream.liq.template @@ -1,13 +1,24 @@ -# Microphone input -mic = input.pulseaudio() +[general] +duration = 0 # 0 = run forever +bufferSecs = 5 # buffer size in seconds +reconnect = yes # reconnect on failure +reconnectDelay = 5 -# Icecast output -output.icecast( - %mp3, - host = "$ICECAST_HOST", - port = "$ICECAST_PORT", - password = "$ICECAST_SOURCE_PASSWORD", - mount = "$ICECAST_MOUNT", - name = "Live DJ stream", - mic -) +[input] +device = pulse # PulseAudio input +sampleRate = 44100 # in Hz +bitsPerSample = 16 +channel = 2 + +[icecast2-0] +bitrateMode = cbr +bitrate = 128 # kbps +format = mp3 +server = ${ICECAST_HOST} +port = ${ICECAST_PORT} +password = ${ICECAST_SOURCE_PASSWORD} +mountPoint = ${ICECAST_MOUNT} +name = "Live DJ stream" +description = "Live microphone stream" +genre = "Various" +public = yes