CC-2082: OGG stream dies after every song when using MPlayer

-Fixed all issues related to OGG streams, including mplayer being confused because the silence
mp3 file sent was too silent (no data was being sent because the file was too quiet)
-silent mp3 file is no longer used, inaudible white noise is generated instead
This commit is contained in:
martin 2011-03-21 16:50:20 -04:00
parent 60649cba8a
commit 73238f92af
2 changed files with 2 additions and 3 deletions

Binary file not shown.

View file

@ -24,7 +24,7 @@ server.register(namespace="vars", "show_name", fun (s) -> begin show_name := s s
server.register(namespace="vars", "station_name", fun (s) -> begin station_name := s s end) server.register(namespace="vars", "station_name", fun (s) -> begin station_name := s s end)
default = audio_to_stereo(single("/opt/pypo/bin/files/sleeper_03.mp3")) default = amplify(0.00001, noise())
default = rewrite_metadata([("artist","Airtime"), ("title", "offline")],default) default = rewrite_metadata([("artist","Airtime"), ("title", "offline")],default)
s = fallback(track_sensitive=false, [queue, default]) s = fallback(track_sensitive=false, [queue, default])
@ -71,8 +71,7 @@ end
if output_icecast_vorbis then if output_icecast_vorbis then
#remove metadata from ogg source and merge tracks to fix bug #remove metadata from ogg source and merge tracks to fix bug
#with vlc and mplayer disconnecting at the end of every track #with vlc and mplayer disconnecting at the end of every track
#silence = add(normalize=false,[blank(), audio_to_stereo(single("/opt/pypo/bin/files/sleeper_03.mp3"))]) ogg_s = add(normalize=false, [amplify(0.00001, noise()),s])
ogg_s = add(normalize=false,[blank(),s])
out_vorbis = output.icecast(%vorbis, out_vorbis = output.icecast(%vorbis,
host = icecast_host, port = icecast_port, host = icecast_host, port = icecast_port,
password = icecast_pass, mount = mount_point_vorbis, password = icecast_pass, mount = mount_point_vorbis,