[arm-allstar] broadcastify setup
David McGough
kb4fxc at inttek.net
Tue Mar 5 10:58:31 EST 2024
Don,
Here are the basic scripts I use.
....First download this launcher script for ezstream (from the bash shell
....prompt):
cd /usr/local/bin
/bin/rm -f ezstream-launch ezstream-launch-2023-10-30
wget https://hamvoip.org/downloads/ezstream-launch-2023-10-30
chmod 755 ezstream-launch-2023-10-30
ln -s ezstream-launch-2023-10-30 ezstream-launch
....Customize the "ezstream-launch" script, if needed.
....Make sure the "screen" command is installed, if not already:
pacman -Sy screen
....Make sure "nptee" is setup for the rpt.conf outstreamcmd, for example:
;rpt.conf
[1234]
outstreamcmd=/usr/local/bin/nptee,pipe1
....Here is the scripting I use in /etc/rc.local, near the bottom of the
....file:
### rc.local
/usr/local/etc/rc.allstar
##
## ADD these commands:
###
screen -dmS ezstream
screen -S ezstream -X stuff 'ezstream-launch pipe1\n'
###
## Done
exit 0
### End of rc.local
....Then, restart. Note that if you need to see the output of the
ezstream-launch script, just connect to that "screen" session:
screen -r ezstream
....To exit from the screen session, without closing it, type: <ctrl>a d
("control-a" then "d"). To stop the ezstream-launch script from
running, when inside the screen session, type <ctrl>c ("control-c"). To
exit the screen session, CLOSING IT, type: <ctrl>d ("control-d").
73, David K4FXC
On Mon, 4 Mar 2024, Don Sayler wrote:
> Hi David.
>
> Yup, I am. It's pretty weird, I had this working a year or two ago, where
> the stream would start when the node started. It doesn't now, I have to
> manually start it from the command line. It stops 15-20 minutes after I
> drop Putty. I suspect that's because Ezstream is running on a disconnected
> user.
>
> Am I correct in my assumption that the outstreamcmd setting in rpt.conf is
> all that's needed? Or is there something else?
>
> I'm open to any ideas you have.
> Thanks.
>
>
> On Mon, Mar 4, 2024, 9:43 PM David McGough <kb4fxc at inttek.net> wrote:
>
> >
> > Don,
> >
> > Are you still having issues with ezstream? I help maintain several
> > streams to Broadcastify and haven't had any recent problems.
> >
> > Note that I fixed a longstanding bug in the ezstream software some months
> > ago, so the software will now properly terminate, if the input stream (via
> > STDIN) in closed. The older code would just hang forever, requiring
> > forcibly killing the ezstream application, so this is no longer the case.
> >
> > ...However, I didn't have to change any scripting related to this update.
> >
> > I can send you a copy of my scripts, if needed?
> >
> >
> > 73, David K4FXC
> >
> >
> >
> >
> >
> > On Fri, 1 Mar 2024, Don Sayler via ARM-allstar wrote:
> >
> > > Hi Gerry.
> >
> > I'll give it a try. And now we're offline again.
> >
> > On Fri, Mar 1, 2024 at 2:07â¯PM Gerry Filby via ARM-allstar <
> > arm-allstar at hamvoip.org> wrote:
> >
> > > I took a look at one of our configs and we don't have the line
> > > <reconnect_tries> - maybe try removing that line and see if it makes a
> > > difference ?
> > >
> > > Best,
> > > Gerry.
> > >
> > >
> > > Don Sayler via ARM-allstar wrote on 3/1/24 12:18â¯PM:
> > > > BTW, Broadcastify says they're not getting our stream.
> > > >
> > > > On Fri, Mar 1, 2024, 10:05 AM Don Sayler <don.sayler at gmail.com> wrote:
> > > >
> > > >> Hi All.
> > > >>
> > > >> I had this working some time ago, and then we stopped using it and the
> > > >> feed was deleted from the Broadcastify server.
> > > >> I set up a new one, and reconfigured our end. But we still show as
> > > >> offline. Here is my xml...
> > > >>
> > > >> <ezstream>
> > > >> <url>http://audio9.broadcastify.com:80/[mount id]</url>
> > > >> <sourcepassword>[pw]</sourcepassword>
> > > >> <format>MP3</format>
> > > >> <filename>stdin</filename>
> > > >> <stream_once>1</stream_once>
> > > >> <reconnect_tries>0</reconnect_tries>
> > > >> <svrinfoname>K7LWH Repeater System</svrinfoname>
> > > >> <svrinfourl>http://www.radioreference.com/</svrinfourl>
> > > >> <svrinfogenre>Amateur Radio</svrinfogenre>
> > > >> <svrinfodescription>Kirkland WA USA</svrinfodescription>
> > > >> <svrinfobitrate>16</svrinfobitrate>
> > > >> <svrinfochannels>1</svrinfochannels>
> > > >> <svrinfosamplerate>22050</svrinfosamplerate>
> > > >> <svrinfopublic>1</svrinfopublic>
> > > >> </ezstream>
> > > >>
> > > >> This is how I'm trying to start it, from a bash script.
> > > >> #!/bin/bash
> > > >> #restart ezstream...
> > > >> # first, quit any existing sessions...
> > > >> screen -ls | grep 'ezstream' | awk '{print $1}' | xargs -I % -t screen
> > > -X
> > > >> -S % quit
> > > >>
> > > >> # next, create a new screen
> > > >> screen -dmS ezstream
> > > >>
> > > >> # finally, start ezstream in that screen
> > > >> screen -S ezstream -X stuff 'lame --preset cbr 16 -r -m m -s 8 --scale
> > > 1.1
> > > >> --bitwidth 16 /tmp/outsound/pipe1 - 2>/tmp/stream.status | ezstream
> > -qvc
> > > >> /etc/asterisk/ezstream.xml\n'
> > > >>
> > > >> What am I missing? I'm not much of a linux guy, so I don't really
> > > >> understand what this bash does.
> > > >> Thanks.
> > > >> Don
> > > >>
> > > >>
> > > >>
> > > >>
> > > > _______________________________________________
> > > >
> > > > ARM-allstar mailing list
> > > > ARM-allstar at hamvoip.org
> > > > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> > > >
> > > > Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
> > >
> > > _______________________________________________
> > >
> > > ARM-allstar mailing list
> > > ARM-allstar at hamvoip.org
> > > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> > >
> > > Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
> > >
> > _______________________________________________
> >
> > ARM-allstar mailing list
> > ARM-allstar at hamvoip.org
> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >
> > Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
> >
> >
>
More information about the ARM-allstar
mailing list