CC-2590 : Make bitrate for liquidsoap and show-recorder adjustable from the config file

This commit is contained in:
Naomi Aro 2011-07-26 16:21:20 +02:00
parent 1366b159f2
commit f0bf7c00c3
4 changed files with 58 additions and 38 deletions

View file

@ -10,6 +10,10 @@ output_icecast_vorbis = true
output_icecast_mp3 = false
output_shoutcast = false
output_bitrate = 128
output_samplerate = 44100
output_stereo = true
###########################################
# Logging settings #
###########################################
@ -23,7 +27,7 @@ icecast_host = "127.0.0.1"
icecast_port = 8000
icecast_pass = "hackme"
# Icecast mountpoint names
# Icecast mountpoint names
mount_point_mp3 = "airtime.mp3"
mount_point_vorbis = "airtime.ogg"

View file

@ -57,7 +57,9 @@ if output_sound_device then
end
if output_icecast_mp3 then
ignore(output.icecast(%mp3,
#%mp3(bitrate=32, samplerate=22050, stereo=false)
ignore(output.icecast(%mp3(bitrate=output_bitrate, samplerate=output_samplerate, stereo=output_stereo),
host = icecast_host,
port = icecast_port,
password = icecast_pass,
@ -74,7 +76,7 @@ end
if output_icecast_vorbis then
if output_icecast_vorbis_metadata then
ignore(output.icecast(%vorbis,
ignore(output.icecast(%vorbis(bitrate=output_bitrate, samplerate=output_samplerate, stereo=output_stereo),
host = icecast_host,
port = icecast_port,
password = icecast_pass,
@ -91,7 +93,7 @@ if output_icecast_vorbis then
#remove metadata from ogg source and merge tracks to fix bug
#with vlc and mplayer disconnecting at the end of every track
s = add(normalize=false, [amplify(0.00001, noise()),s])
ignore(output.icecast(%vorbis,
ignore(output.icecast(%vorbis(bitrate=output_bitrate, samplerate=output_samplerate, stereo=output_stereo),
host = icecast_host,
port = icecast_port,
password = icecast_pass,
@ -108,7 +110,7 @@ if output_icecast_vorbis then
end
if output_shoutcast then
ignore(output.shoutcast(%mp3,
ignore(output.shoutcast(%mp3(bitrate=output_bitrate, samplerate=output_samplerate, stereo=output_stereo),
host = shoutcast_host,
port = shoutcast_port,
password = shoutcast_pass,