1
0
Fork 0

Add stream name and description to fixed encoder metadata.

liquidsoap-2.2
Icedream 2022-03-13 07:26:05 +01:00
parent 27b005f477
commit cf7f4f642c
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
1 changed files with 9 additions and 4 deletions

View File

@ -22,15 +22,20 @@ set("sandbox", "disabled")
s = input.http(id="input_ice_main", max_buffer=4., "http://127.0.0.1:61120/main") s = input.http(id="input_ice_main", max_buffer=4., "http://127.0.0.1:61120/main")
# Split audio off to be handled specially # Split audio off to be handled specially
a = drop_video(id="main", s) a = drop_video(s)
a = setup_harbor_metadata_api(a)
a = mksafe_soft(a) a = mksafe_soft(a)
output.dummy(a) output.dummy(a)
def append_encoder_meta(m) = def append_encoder_meta(m) =
[("encoder", "Liquidsoap #{liquidsoap.version}")] [
("encoder", "Liquidsoap #{liquidsoap.version}"),
("stream_name", stream_name),
("stream_description", stream_description),
]
end end
a = map_metadata(append_encoder_meta, a) a = map_metadata(id="main", append_encoder_meta, a)
a = setup_harbor_metadata_api(a)
internal_icecast=output.icecast( internal_icecast=output.icecast(
fallible=true, fallible=true,