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( ...@@ -75,35 +75,38 @@ def stream_to_icecast(
# TODO Refactor all outgoing stream formats this way # TODO Refactor all outgoing stream formats this way
let stereo = (int_of_string(channels) >= 2) 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 == "mp3" then%include "outgoing_streams/mp3.liq" end
if encoding == "ogg" then%include "outgoing_streams/ogg.liq" end if encoding == "ogg" then%include "outgoing_streams/ogg.liq" end
log( log(
"Icecast output format: #{encoding} #{bitrate}" "Icecast output format: #{encoding} #{bitrate} - #{format}"
) )
# Liquidsoap cannot handle one output definition for mono and stereo # Liquidsoap cannot handle one output definition for mono and stereo
# FIXME should be working since Liquidsoap 2 # FIXME should be working since Liquidsoap 2
output_icecast_mono = # output_icecast_mono =
output.icecast( # output.icecast(
id=id, # id=id,
host=host, # host=host,
port=port, # port=port,
password=pass, # password=pass,
mount=mount_point, # mount=mount_point,
fallible=true, # fallible=true,
url=url, # url=url,
description=description, # description=description,
name=name, # name=name,
genre=genre, # genre=genre,
user=user_ref(), # user=user_ref(),
on_error=on_error, # on_error=on_error,
on_connect=on_connect, # on_connect=on_connect,
send_icy_metadata=true, # send_icy_metadata=true,
format, # format,
source() # source()
) # )
output_icecast_stereo = output_icecast_stereo =
output.icecast( output.icecast(
id=id, id=id,
...@@ -123,7 +126,8 @@ def stream_to_icecast( ...@@ -123,7 +126,8 @@ def stream_to_icecast(
format, format,
source() source()
) )
ignore(output_icecast_mono)
# ignore(output_icecast_mono)
ignore(output_icecast_stereo) ignore(output_icecast_stereo)
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment