diff --git a/python_apps/pypo/scripts/liquidsoap.cfg b/python_apps/pypo/scripts/liquidsoap.cfg index 360ee107f..98436d03a 100644 --- a/python_apps/pypo/scripts/liquidsoap.cfg +++ b/python_apps/pypo/scripts/liquidsoap.cfg @@ -36,3 +36,11 @@ icecast_genre = "genre" output_sound_device = false output_icecast_vorbis = true output_icecast_mp3 = false + + +#audio stream metadata for vorbis/ogg is disabled by default +#due to a large number of client media players that disconnect +#when the metadata changes to that of a new track. Some versions of +#mplayer and VLC have this problem. Enable this option at your +#own risk! +output_icecast_vorbis_metadata = false diff --git a/python_apps/pypo/scripts/ls_script.liq b/python_apps/pypo/scripts/ls_script.liq index 416e0b420..85ffd1a58 100644 --- a/python_apps/pypo/scripts/ls_script.liq +++ b/python_apps/pypo/scripts/ls_script.liq @@ -52,34 +52,38 @@ s = map_metadata(append_title, s) if output_sound_device then - out_device = out(s) + out_device = out(s) end if output_icecast_mp3 then - out_mp3 = output.icecast(%mp3, - host = icecast_host, port = icecast_port, - password = icecast_pass, mount = mount_point_mp3, - fallible = true, - restart = true, - restart_delay = 5, - url = icecast_url, - description = icecast_description, - genre = icecast_genre, - s) + out_mp3 = output.icecast(%mp3, + host = icecast_host, port = icecast_port, + password = icecast_pass, mount = mount_point_mp3, + fallible = true, + restart = true, + restart_delay = 5, + url = icecast_url, + description = icecast_description, + genre = icecast_genre, + s) end 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 - ogg_s = add(normalize=false, [amplify(0.00001, noise()),s]) - out_vorbis = output.icecast(%vorbis, - host = icecast_host, port = icecast_port, - password = icecast_pass, mount = mount_point_vorbis, - fallible = true, - restart = true, - restart_delay = 5, - url = icecast_url, - description = icecast_description, - genre = icecast_genre, - ogg_s) + if output_icecast_vorbis_metadata then + s = add(normalize=false, [amplify(0.00001, noise()),s]) + end + + out_vorbis = output.icecast(%vorbis, + host = icecast_host, port = icecast_port, + password = icecast_pass, mount = mount_point_vorbis, + fallible = true, + restart = true, + restart_delay = 5, + url = icecast_url, + description = icecast_description, + genre = icecast_genre, + s) end