diff --git a/icedreammusic/liquidsoap/settings.liq b/icedreammusic/liquidsoap/settings.liq index 1a6a960..9c1a782 100644 --- a/icedreammusic/liquidsoap/settings.liq +++ b/icedreammusic/liquidsoap/settings.liq @@ -6,3 +6,7 @@ internal_icecast_password=environment.get(default="source", "INTERNAL_ICECAST_PA rektfm_username=environment.get("REKTNETWORK_USERNAME") rektfm_password=environment.get("REKTNETWORK_PASSWORD") + +streaminginternet_username=environment.get("STREAMINGINTERNET_USERNAME") +streaminginternet_password=environment.get("STREAMINGINTERNET_PASSWORD") +streaminginternet_channel=environment.get("STREAMINGINTERNET_CHANNEL") diff --git a/icedreammusic/liquidsoap/stream.liq b/icedreammusic/liquidsoap/stream.liq index 5b69f8b..9a9646a 100644 --- a/icedreammusic/liquidsoap/stream.liq +++ b/icedreammusic/liquidsoap/stream.liq @@ -164,3 +164,30 @@ if null.defined(rektfm_username) and null.defined(rektfm_password) then # a_vorbis, )) end + +# streaminginternet +if null.defined(streaminginternet_username) and null.defined(streaminginternet_password) and null.defined(streaminginternet_channel) then + setup_harbor_stream_api(output.icecast( + id="out_a_streaminginternet", + fallible=true, + mount="#{null.get(streaminginternet_channel)}/master_signal", + port=61120, + host="publish.streaminginter.net", + user=null.get(streaminginternet_username), + name=null.get(stream_name), + description=null.get(stream_description), + password=null.get(streaminginternet_password), + start=true, + %ffmpeg( + format="ogg", + %audio( + codec="libvorbis", + flags=2, # CODEC_FLAG_QSCALE (enables VBR mode based on qscale aka global_quality) + global_quality=1180., # gets divided by FF_QP2LAMBDA=118 + ), + ), + a, + # %ffmpeg(format="ogg", %audio.copy), + # a_vorbis, + )) +end