feat(playout): enable vorbis metadata per icecast output
Use new jinja template system to tweak the streams per output.
This commit is contained in:
parent
00b5c08647
commit
a71606d39c
4 changed files with 11 additions and 33 deletions
|
@ -8,9 +8,6 @@ input_main_port = {{ config.stream.inputs.main.port }}
|
|||
input_show_mount = {{ config.stream.inputs.show.mount | quote }}
|
||||
input_show_port = {{ config.stream.inputs.show.port }}
|
||||
|
||||
# Outputs
|
||||
icecast_vorbis_metadata = {{ icecast_vorbis_metadata | lower }}
|
||||
|
||||
# Settings
|
||||
auth_path = {{ paths.auth_filepath | quote }}
|
||||
|
||||
|
|
|
@ -53,6 +53,12 @@ output_icecast_{{ output_id }}_source = s
|
|||
output_icecast_{{ output_id }}_source = mean(s)
|
||||
{% endif -%}
|
||||
|
||||
{#- Add per output stream modifications. -#}
|
||||
{% if output.audio.format == "ogg" and not output.audio.enable_metadata -%}
|
||||
# Disable ogg metadata
|
||||
output_icecast_{{ output_id }}_source = add(normalize=false, [amplify(0.00001, noise()), output_icecast_{{ output_id }}_source])
|
||||
{% endif -%}
|
||||
|
||||
output.icecast(
|
||||
id="icecast:{{ output_id }}",
|
||||
host={{ output.host | quote }},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue