I have icecast source, liquidsoap (transcode to 128 and 64kbps) and
"forward" to another Icecast + Shoutcast v2
Here is the script:
-----------------------
#!/usr/bin/liquidsoap
stationName = "xxxx"
stationDescription = "xxxx"
stationGenre = "xxxx"
stationUrl = 'xxxx
stationSource = "xxxx:9020/"
shoutcastPassword128 = "xxxx"
shoutcastPassword64 = "xxxx"
icecastPassword128 = "xxxx"
icecastPassword64 = "xxxx"
icecastMP128 = "xxxx"
icecastMP64 = "xxxx"
# set the path and permissions for the logfile
set("log.file.path","./log/xxxx.log")
set("log.file.perms",755)
set("log.unix_timestamps",true)
relay = mksafe(input.http(stationSource))
source = fallback(track_sensitive=false,[relay])
shoutcastHost = "xxxx"
shoutcastPort = 8000
icecastHost = "xxxx"
icecastPort = 9000
#########
# shoutcast server to broadcast to
output.shoutcast(%mp3(bitrate=128,samplerate=44100,stereo=true),
name = stationName,
#description = stationDescription,
url = stationUrl,
genre = stationGenre,
host = shoutcastHost,
port = shoutcastPort,
password = shoutcastPassword128,
source)
output.shoutcast(%mp3(bitrate=64,samplerate=44100,stereo=true),
name = stationName,
#description = stationDescription,
url = stationUrl,
genre = stationGenre,
host = shoutcastHost,
port = shoutcastPort,
password = shoutcastPassword64,
source)
# icecast server to broadcast to
output.icecast(%mp3(bitrate=128,samplerate=44100,stereo=true),
name = stationName,
description = stationDescription,
url = stationUrl,
genre = stationGenre,
host = icecastHost,
port = icecastPort,
mount = icecastMP128,
password = icecastPassword128,
source)
output.icecast(%aac(channels=2, samplerate=44100, bitrate=64, adts=true),
name = stationName,
description = stationDescription,
url = stationUrl,
genre = stationGenre,
host = icecastHost,
port = icecastPort,
mount = icecastMP64,
password = icecastPassword64,
source)
-----------------------
One of the source streams is transcoded and published successfully.
Next 2 I have tried, are successfully published to Shoutcast, but
icecast drop message:
strange error flushing buffer ...
--
My sites:
Amazing Smooth and Jazz <http://smoothandjazz.com>, Blues
<http://blues.amazingradios.com>, 80's <http://80.amazingradios.com/>,
Rock <http://rock.amazingradios.com/>
------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users