Hello,

I am trying make the number of channels to my output configurable and am running following line from the command-line

liquidsoap 'xxx = 2; output.icecast(%vorbis(channels=xxx), host = "localhost", port = 8000, user= "source", password = "hackme", mount="test.mp3", sine())'

This returns the error "variables are forbidden in encoding formats."

I guess the way to get around this is as follows:

if xxx == 1 then
   output.icecast(%vorbis(channels=1), host = "localhost", port = 8000, user= "source", password = "hackme", mount="test.mp3", sine())'
elsif xxx == 2 then
   output.icecast(%vorbis(channels=2), host = "localhost", port = 8000, user= "source", password = "hackme", mount="test.mp3", sine())'
end


Is this the correct way or this a way to go back to the first method? :)


Martin
--
Open source radio in the cloud. Get yours now! ---> http://airtime.pro

Martin Konecny
Software Developer, Sourcefabric
martin.konecny@sourcefabric.org

720 Bathurst St. Suite 203
M5S 2R4, Toronto, ON, Canada
+1 (416) 892-8420 (Cell)
Skype: martin.konecny15

http://www.sourcefabric.org
http://www.twitter.com/Sourcefabric