2021-02-28 17:04:41 +00:00
|
|
|
set("log.stdout", true)
|
|
|
|
set("log.file", false)
|
|
|
|
|
|
|
|
set("log.level", 4)
|
|
|
|
|
|
|
|
set("server.telnet", true)
|
|
|
|
set("server.telnet.bind_addr", "127.0.0.1")
|
|
|
|
set("server.telnet.port", 21337)
|
|
|
|
|
|
|
|
set("init.allow_root",true)
|
|
|
|
set("frame.video.width", 1920)
|
|
|
|
set("frame.video.height", 1080)
|
2022-03-08 07:56:59 +00:00
|
|
|
set("audio.converter.samplerate.libsamplerate.quality", "best")
|
|
|
|
set("audio.converter.samplerate.native.quality","linear")
|
|
|
|
set("sandbox", "disabled")
|
2021-02-28 17:04:41 +00:00
|
|
|
|
|
|
|
%include "settings.liq"
|
|
|
|
%include "metadata_api.liq"
|
2022-03-08 07:56:59 +00:00
|
|
|
%include "stream_api.liq"
|
2021-02-28 17:04:41 +00:00
|
|
|
%include "silent_fallback.liq"
|
|
|
|
|
2022-03-08 07:56:59 +00:00
|
|
|
s = input.http(id="input_ice_main", max_buffer=4., "http://127.0.0.1:61120/main")
|
2021-02-28 17:04:41 +00:00
|
|
|
|
|
|
|
# Split audio off to be handled specially
|
|
|
|
a = drop_video(s)
|
|
|
|
a = mksafe_soft(a)
|
|
|
|
a = setup_harbor_metadata_api(a)
|
2021-03-07 21:21:01 +00:00
|
|
|
output.dummy(a)
|
2022-03-08 07:56:59 +00:00
|
|
|
|
|
|
|
# encoded lossless stream
|
|
|
|
a_flac = ffmpeg.encode.audio(
|
|
|
|
%ffmpeg(%audio(codec="flac")),
|
|
|
|
a)
|
|
|
|
|
|
|
|
internal_icecast=output.icecast(
|
|
|
|
fallible=true,
|
|
|
|
port=61120,
|
|
|
|
host="127.0.0.1",
|
2022-03-09 08:42:59 +00:00
|
|
|
user=internal_icecast_username,
|
|
|
|
password=internal_icecast_password,
|
|
|
|
name=stream_name)
|
2022-03-08 07:56:59 +00:00
|
|
|
setup_harbor_stream_api(internal_icecast(
|
|
|
|
id="out_a_int",
|
|
|
|
%ffmpeg(format="ogg", %audio.copy),
|
2021-03-07 21:21:01 +00:00
|
|
|
mount="/outa/flac",
|
2022-03-08 07:56:59 +00:00
|
|
|
a_flac))
|
|
|
|
|
|
|
|
# REKT.fm
|
2022-03-09 08:42:59 +00:00
|
|
|
if string.length(rektfm_username) > 0 and string.length(rektfm_password) > 0 then
|
|
|
|
setup_harbor_stream_api(output.icecast(
|
|
|
|
id="out_a_rekt",
|
|
|
|
#%ogg(%flac),
|
|
|
|
%ffmpeg(format="ogg", %audio.copy),
|
|
|
|
fallible=true,
|
|
|
|
mount="rekt",
|
2022-03-09 12:26:10 +00:00
|
|
|
port=60000,
|
2022-03-09 08:42:59 +00:00
|
|
|
#host="stream.rekt.network",
|
|
|
|
host="stream.rekt.fm",
|
|
|
|
user=rektfm_username,
|
|
|
|
name=stream_name,
|
|
|
|
password=rektfm_password,
|
|
|
|
start=false,
|
|
|
|
a_flac))
|
|
|
|
end
|