Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0.0-beta3
-
Fix Version/s: 1.0.0-beta3
-
Component/s: Liquidsoap, Web Site
-
Labels:None
-
Environment:any
Description
The example present in http://savonet.sourceforge.net/doc-svn/cookbook.html Transcoding section will not work - the bitrate variable must be set inside %format(bitrate=xx) not icecast(..., bitrate=xx)
# Input the stream,
# from an Icecast server or any other source
url = "http://streaming.example.com:8000/your-stream.ogg"
input = mksafe(input.http(url))
# First transcoder: MP3 32 kbps
output.icecast(%mp3,
mount="/your-stream-32.mp3", bitrate=32,
samplerate = 22050, stereo = false,
host="streaming.example.com", port=8000, password="xxx",
input)
# Second transcoder : MP3 128 kbps
output.icecast(%mp3,
mount="/your-stream-128.mp3", bitrate=128,
host="streaming.example.com", port=8000, password="xxx",
input)
{code}