CC-2215: Add ability to enable metadata for ogg streams
-done
This commit is contained in:
parent
48af794cfa
commit
3eafdeef5d
|
@ -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
|
||||
|
|
|
@ -69,9 +69,13 @@ if output_icecast_mp3 then
|
|||
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])
|
||||
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,
|
||||
|
@ -81,5 +85,5 @@ if output_icecast_vorbis then
|
|||
url = icecast_url,
|
||||
description = icecast_description,
|
||||
genre = icecast_genre,
|
||||
ogg_s)
|
||||
s)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue