fix(playout): explicit ogg vorbis icecast encoder

This commit is contained in:
jo 2023-03-01 15:58:44 +01:00 committed by Kyle Robbertze
parent 7f81915eb4
commit ac8917e3fc
2 changed files with 6 additions and 6 deletions

View File

@ -9,10 +9,10 @@
32: "-0.1", 48: "-0.1", 64: "0", 96: "0.2", 128: "0.4",
160: "0.5", 192: "0.6", 224: "0.7", 256: "0.8", 320: "0.9",
} -%}
%vorbis(
%ogg(%vorbis(
quality={{ quality_mapping[audio.bitrate] }},
channels={{ 2 if audio.channels == "stereo" else 1 }}
)
))
{%- elif audio.format == "mp3" -%}
%mp3(

View File

@ -85,10 +85,10 @@
url="https://libretime.org",
on_connect=make_ouput_on_connect_handler("1"),
on_error=make_ouput_on_error_handler("1"),
%vorbis(
%ogg(%vorbis(
quality=0.8,
channels=2
),
)),
output_icecast_1_source,
)
@ -205,10 +205,10 @@
url="",
on_connect=make_ouput_on_connect_handler("1"),
on_error=make_ouput_on_error_handler("1"),
%vorbis(
%ogg(%vorbis(
quality=0.8,
channels=2
),
)),
output_icecast_1_source,
)