Streaming from Allstarlink
Streaming from Allstarlink to Broadcastify using ezstrem
https://wiki.allstarlink.org/wiki/Stream_Node_Audio_to_Broadcastify
https://allstarlink.github.io/adv-topics/broadcastify/
Install Software and Packages
Log into your node and type the following commands.
sudo -s
cd /usr/src
git clone https://gitlab.xiph.org/xiph/ezstream.git
cd ezstream
git checkout master
wget https://gitlab.xiph.org/xiph/ezstream/uploads/ba768fa1349c65b60affd496cf4282ed/ezstream-1.0.2.patch
patch src/stream.c ezstream-1.0.2.patch
apt-get update
apt-get install check libshout-dev libtagc0-dev lame
./autogen.sh
./configure
make
make install
Update rpt.conf
Edit /etc/asterisk/rpt.conf. Add the following line above duplex of the node that you want to broadcast.
outstreamcmd = /bin/sh,-c,/usr/bin/lame --preset cbr 16 -r -m m -s 8 --bitwidth 16 - - | /usr/local/bin/ezstream -qvc /etc/ezstream.xml
After these changes have been made, you will need to restart asterisk.
Streaming should start immediately after asterisk is restarted.
If you run into any problems, you can add 2>/tmp/ezstreamlog.txt to the end of the outstream command. This will write errors to /tmp/ezstreamlog.txt.
This is the contents of ezstream.xml
You will need to add / edit your passwords etc. for Broadcastify. Place this file in the /etc directory.
<ezstream>
<url>http://audio3.broadcastify.com:80/mountpoint-provided-by-broadcastify</url>
<sourcepassword>feed-specific-password-not-same-as-website-login</sourcepassword>
<format>MP3</format>
<filename>stdin</filename>
<stream_once>1</stream_once>
<reconnect_tries>0</reconnect_tries>
<svrinfoname>Description </svrinfoname>
<svrinfourl>http://www.radioreference.com/</svrinfourl>
<svrinfogenre>Amateur Radio</svrinfogenre>
<svrinfodescription>Description</svrinfodescription>
<svrinfobitrate>16</svrinfobitrate>
<svrinfochannels>1</svrinfochannels>
<svrinfosamplerate>22050</svrinfosamplerate>
<svrinfopublic>1</svrinfopublic>
</ezstream>
Embed Feed in a Web Page
To embed the feed insert this code into any Web page, and replace XXXX with your assigned domain key.Don't have a domain key yet? Apply for one here.
73's
Comments
Post a Comment