[ale] Squeezelite + ecasound + sox on Beaglebone Black

LnxGnome lnxgnome at hopnet.net
Wed Jul 8 05:38:47 EDT 2015


On 7/8/15 12:47 AM, Ian Forrest wrote:
> Hey all,
>
> I suspect that this is an easier question than I'm making it; I ran
> linux forever before law school, but never got too creative with it,
> so please forgive me if I'm missing something obvious.
>
> I am using a Beaglebone Black running Debian as the brains of a stereo
> setup. I am running squeezelite (a software player for the logitech
> media server), piping it into ecasound for equalization and crossover
> filters, and finally sox for dithered re-quantization so that
> everything can be sent out to a dinky USB soundcard. This is all I
> plan on having the Beaglebone do, at least for the time being. 
>
> I have a bash script that does all this, cobbled together from a
> really great guide at
> http://rtaylor.sites.tru.ca/2013/06/25/digital-crossovereq-with-open-source-software-howto/
> . With a couple anonymizing modifications, it looks something like this:
>
>
> #!/bin/sh
>
> /home/debian/squeezelite -o - -u vL -a ::32:0 -n Speakers -s
> 192.168.x.x | ecasound -q -z:mixmode,sum -x -a:pre -f:s32_le,2,44100
> -i:stdin -pf:/home/debian/ecasound/pre.ecp -o:loop,1
> -a:woofer,fullrange -i:loop,1 -a:woofer
> -pf:/home/debian/ecasound/woofer.ecp -chorder:1,2,0,0 -a:fullrange
> -pf:/home/debian/ecasound/fullrange.ecp -chorder:0,0,1,2
> -a:woofer,fullrange -f:f32_le,4,44100 -o:stdout | sox -q -c 4 -r 44100
> -b 32 -e float -L -t raw - -e signed -c 4 -b 16 -t alsa
> surround40:Device dither -s
>
> This works. ./squeezelite.sh runs and is off to the races, makes
> pretty noises, etc.
>
> The problem is daemonizing it and having it run at startup. Something
> tells me this is due to failure to understand scripting generally and
> pipes specifically. For now, I have to start a putty session and run
> the script myself. I have yet to find a good way to get it going
> automatically.
...<snip>

Hi Ian,

  You haven't mentioned how it is failing.  Is there an error message?

  Taking a WAG, this may be as simple a PATHing difference between
interactive vs non-interactive users.  Try adding the full path names
to  ecasound and sox.

--LnxGnome



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20150708/c54158ac/attachment.html>


More information about the Ale mailing list