This is a simple Ubuntu upstart script that runs some utilities to pipe audio from a Livewire network to an instance of Icecast.
- Livewire is a protocol used in the broadcast industry to stream CD quality audio over a network.
- Small Ubuntu VM on your Livewire network, I used 14.04, you can prolly get away with 1 core if you run server edition
> apt-get install libav-tools ezstream dvbstream
libav-tools
for avconv utility, make sure it's installed with MP3 supportezstream
for streaming to icecastdvbstream
for the dumptrp utility
- Use ftp://ftp.zephyr.com/pub/Axia/Tools/sdpgen.htm to get the multicast IP for your channel number
- The line "c=IN IP4 239.192.0.203" has the ip you need
- Edit stream.conf with your specific conversion/ip details
- Edit ezstream.xml with your icecast details
- If you are on Ubuntu 16.04, go to the directions below
- Copy stream.conf to /etc/init/Unless you are running 16.04 in which case checkout the directions below
> start stream
- ???
- Profit!
For Ubuntu 16.04 the init system was switch from Upstart to Systemd. As such you will need to use the example
livewire-streamer.service
Systemd unit file instead of the upstart conf file.
- Copy the
livewire-stream.service
to/etc/systemd/system/
> systemctl daemon-reload
> systemctl enable livewire-streamer.service
> systemctl start livewire-streamer.service
- ???
- Profit!
Your streaming process should be up and running, this can be checked with systemctl status livewire-streamer.service
avconv -f s24be -ar 48k -ac 2 -i - -f mp3 -b:a 320K -
This portion of the command transcodes the audio-f mp3
Change that to the format you want to stream / output, Check avconv -formats for output codecs-b:a 320K
Change 320K to the bit rate you want to stream
- If the stream upstart job doesn't stay running check /var/log/upstart/stream for errors