[Icecast] multiple mounts each varying bitrates

Paul Martin pm at nowster.me.uk
Sun Sep 30 16:55:53 UTC 2018


On Thu, Sep 27, 2018 at 11:56:04PM -0400, David Mehler wrote:
> If anyone is running an Icecast server that serves at least 3 separate
> streams each with it's own bitrate can I get a look at your config?

A live config for liquidsoap. The telnet server is used to update live
metadata.

#!/usr/bin/liquidsoap

# Enable telnet server
set("server.telnet",true)
set("log.file.path","/tmp/liquid.log")
set("frame.audio.samplerate",48000)

source = input.alsa()
source = server.insert_metadata(id="ID", source)

ice_host = "127.0.0.1"
ice_pass = "xxxxxxxxxxx"

station = "My station"

output.icecast(
 %ogg(%flac(samplerate=48000,compression=5)),
 host = ice_host,
 port = 8000,
 password = ice_pass,
 mount = "medium.flac",
 name = "My Station FLAC",
 icy_metadata = "true",
 url="",
 encoding="UTF-8",
 description = station,
 source
)

output.icecast(
 %ogg(%vorbis(quality=0.0, samplerate=48000)),
 host = ice_host,
 port = 8000,
 password = ice_pass,
 mount = "medium.ogg",
 name = "My Station Vorbis",
 icy_metadata = "true",
 description = station,
 url="",
 encoding="UTF-8",
 source
)

output.icecast(
 %ogg(%vorbis(quality=0.9, samplerate=48000)),
 host = ice_host,
 port = 8000,
 password = ice_pass,
 mount = "high.ogg",
 name = "My Station Vorbis High",
 icy_metadata = "true",
 description = station,
 url="",
 encoding="UTF-8",
 source
)

output.icecast(
 %ogg(%opus(bitrate=128, samplerate=48000, application="audio",complexity=5)),
 host = ice_host,
 port = 8000,
 password = ice_pass,
 mount = "medium.opus",
 name = "My Station Opus",
 icy_metadata = "true",
 description = station,
 url="",
 encoding="UTF-8",
 source
)

#output.icecast(
# %ogg(%opus(bitrate=48, samplerate=48000, application="audio",complexity=8)),
# host = ice_host,
# port = 8000,
# password = ice_pass,
# mount = "low.opus",
# name = "My Station Opus Low",
# icy_metadata = "true",
# description = station,
# url="",
# encoding="UTF-8",
# source
#)

output.icecast(
 %mp3(bitrate=128, samplerate=48000),
 host = ice_host,
 port = 8000,
 password = ice_pass,
 mount = "medium.mp3",
 name = "My Station MP3",
 icy_metadata = "true",
 description = station,
 url="",
 encoding="UTF-8",
 source
)

output.icecast(
 %fdkaac(bitrate=128, samplerate=48000, afterburner=true,
  aot="mpeg4_aac_lc", transmux="adts", sbr_mode=false),
 host = ice_host,
 port = 8000,
 password = ice_pass,
 mount = "medium.aac",
 name = "My Station AAC",
 icy_metadata = "true",
 description = station,
 url="",
 encoding="UTF-8",
 source
)

output.icecast(
 %fdkaac(bitrate=64, samplerate=48000, afterburner=true,
  aot="mpeg4_he_aac", transmux="adts", sbr_mode=true),
 host = ice_host,
 port = 8000,
 password = ice_pass,
 mount = "low.aac",
 name = "My Station AAC Low",
 icy_metadata = "true",
 description = station,
 url="",
 encoding="UTF-8",
 source
)


-- 
Paul Martin <pm at nowster.me.uk>



More information about the Icecast mailing list