You can grab it from here: http://savonet.sourceforge.net/
It's probably the best toolkit you can have for streaming, and it's capabilities far outstrip that of just being a relay, but you can discover those uses for yourself.
Alrighty, lets get started.
On DEBIAN-BASED systems:
Ubuntu allows you to install using aptitude:
Code: Select all
sudo apt-get update
sudo apt-get install liquidsoap
This should install all that you need. Some codecs, such as AAC+, may need further installation steps (see here: http://savonet.sourceforge.net/doc-svn/ ... rmats.html)
For RHEL/FEDORA and others:
You're going to need to build the software and codecs from source. See this for more information: http://savonet.sourceforge.net/download.html
Alrighty, now that we're installed, lets get started.
Setting up the script:
We need to have the script file put in the install folder of Liquidsoap. This is usually either /etc/liquidsoap, /etc/init.d/liquidsoap or /var/log/liquidsoap. In your terminal, change to that directory, and type the following:
Code: Select all
touch transcoder.liq
nano transcoder.liq
Code: Select all
url = "<SOURCE STREAM>"
input = mksafe(input.http(url))
output.shoutcast(
%aacplus(channels=2, bitrate=<BITRATE>),
host="<DESTIP>", port=<DESTPORT>, password="<PASSWORD>",
input)
This will relay in AAC+ audio, which is a lot better than MP3 for low bandwidth. Good bitrates to use here are 96, 64 and 32.
Now, save the file, and quit to the terminal. You can now run the following command:
Now you have a running relay up! This will run in daemon mode as a background application. If you aren't comfortable with editing files outside of home, you can place the file elsewhere (i.e /home/user/) and use the following command:sudo /etc/init.d/liquidsoap start
Code: Select all
liquidsoap -d /path/to/filename.liq
There you have it, a working transcoder!