[arm-allstar] Ezstream and NPTEE

David McGough kb4fxc at inttek.net
Fri Feb 4 05:26:53 EST 2022


Hi Lee,

I've seen this same problem, but don't as of yet have a well tested
solution; I've experimented with a couple methods to fix this.  Resolving
this issue is on the To-Do list.  Ultimately, It'll probably require
either a modification to the "lame" software, or a software shim to detect
stream interruptions and restart the lame/ezstream software.


73, David KB4FXC



On Thu, 3 Feb 2022, "Lee Woldanski via ARM-allstar" wrote:

> So, I have a situation where periodically, ezstream barfs and throws the
> load average on the machine through the roof, until I kill the processes.
> 
> I am using nptee to create two pipes in rpt.conf:
> 
> outstreamcmd=/usr/local/bin/nptee,broadcastify,karc
> 
> Then, I am starting two streamers, one to Broadcastify, and another one to
> a club Icecast server, under screen (line breaks are probably going to mess
> this up...):
> 
> #! /bin/sh
> # Start the stream to Broadcastify
> screen -dmS broadcastify  su -c - streamer 'lame --preset cbr 16 -r -m m -s
> 8 --scale 1.1 --bitwidth 16 /tmp/outsound/broadcastify - - 2>/tmp/stream.s
> tatus | ezstream -qvc /etc/ezstream.xml'
> 
> sleep 1
> # Start the stream to Club
> screen -dmS karc  su -c - streamer 'lame --preset cbr 16 -r -m m -s 8
> --scale 1.1 --bitwidth 16 /tmp/outsound/karc - - 2>/tmp/stream.status |
> ezstream
>  -qvc /etc/ezstream-club.xml'
> 
> 
> When it works, it works fine. I do see ezstream periodically restarting the
> streams when I look at the screen console.
> 
> However, once in a while, ezstream dies, and fills the consoles with
> repeating:
> 
> ezstream: Streaming from standard input
> 
> And the load average goes through the roof.
> 
> I have to log in, go in to the screen sessions, ctrl-c to stop the streams,
> then killall ezstream and lame, and then restart the streams again.
> 
> 
> I know there was a cron job to watch ezstream for this with a single
> instance running, but what is the best way to watch it when there are
> multiple instances running?
> 
> 
> Thanks.
> 
> 
> Lee
> 
> 
> 
> 



More information about the ARM-allstar mailing list