Skip to content
Snippets Groups Projects
Verified Commit 4e9895b0 authored by Ole Binder's avatar Ole Binder
Browse files

Chore: change default encoding for icecast

parent 2eceae99
No related branches found
No related tags found
1 merge request!17Yaml configuration file
......@@ -75,35 +75,38 @@ def stream_to_icecast(
# TODO Refactor all outgoing stream formats this way
let stereo = (int_of_string(channels) >= 2)
let format = %mp3(bitrate = 128, stereo = true)
let format = %vorbis(stereo = true)
# let format = %mp3(bitrate = 128, stereo = true)
# FIXME: the format is never overwritten, it is alwas mp3
if encoding == "mp3" then%include "outgoing_streams/mp3.liq" end
if encoding == "ogg" then%include "outgoing_streams/ogg.liq" end
log(
"Icecast output format: #{encoding} #{bitrate}"
"Icecast output format: #{encoding} #{bitrate} - #{format}"
)
# Liquidsoap cannot handle one output definition for mono and stereo
# FIXME should be working since Liquidsoap 2
output_icecast_mono =
output.icecast(
id=id,
host=host,
port=port,
password=pass,
mount=mount_point,
fallible=true,
url=url,
description=description,
name=name,
genre=genre,
user=user_ref(),
on_error=on_error,
on_connect=on_connect,
send_icy_metadata=true,
format,
source()
)
# output_icecast_mono =
# output.icecast(
# id=id,
# host=host,
# port=port,
# password=pass,
# mount=mount_point,
# fallible=true,
# url=url,
# description=description,
# name=name,
# genre=genre,
# user=user_ref(),
# on_error=on_error,
# on_connect=on_connect,
# send_icy_metadata=true,
# format,
# source()
# )
output_icecast_stereo =
output.icecast(
id=id,
......@@ -123,7 +126,8 @@ def stream_to_icecast(
format,
source()
)
ignore(output_icecast_mono)
# ignore(output_icecast_mono)
ignore(output_icecast_stereo)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment