Add stream name and description to fixed encoder metadata.
parent
27b005f477
commit
cf7f4f642c
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue