View unanswered posts | View active topics It is currently Tue Jan 16, 2018 5:10 pm



Reply to topic  [ 1 post ] 
 Liquidsoap Transcoder Relays 
Author Message
Member
User avatar

Joined: Wed Feb 08, 2012 9:43 pm
Posts: 37
Location: Australia
Medals: 14
RadioBot Owner (2) Feature Requester (5)
Helper (1) Longevity (6)
IRCBot Version I Use: v5
IRCBot Platform: Linux/Ubuntu
Post Liquidsoap Transcoder Relays
Alright. I previously posted on how to use Radiobot as a transcoder relay, but I found a much more efficient method that uses a different program: LiquidSoap.

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:
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:
touch transcoder.liq
nano transcoder.liq


Now that we have nano open, type the following:

Code:
url = "<SOURCE STREAM>"
input = mksafe(input.http(url))

output.shoutcast(
  %aacplus(channels=2, bitrate=<BITRATE>),
  host="<DESTIP>", port=<DESTPORT>, password="<PASSWORD>",
  input)


where <SOURCE STREAM> is your existing shoutcast server you want to relay, <BITRATE> is the desired transcoded bitrate, <DESTPORT> is the port of the destination Shoutcast server, <DESTIP is the destination IP and <PASSWORD> is the destination server password.

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:

Quote:
sudo /etc/init.d/liquidsoap start


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:

Code:
liquidsoap -d /path/to/filename.liq


The program will run in daemon mode from the script you specified.

There you have it, a working transcoder!

_________________
http://fillydelphiaradio.net/
The best P0N-3 Music

Image


Sat Feb 08, 2014 12:52 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.