[ale] Squeezelite + ecasound + sox on Beaglebone Black

Sergio Chaves sergio.chaves at gmail.com
Thu Jul 9 09:41:33 EDT 2015


Also, have you tried to make it the last process/service to load? Maybe
your script is trying to start before all the other services are up and
running?

On Wed, Jul 8, 2015 at 12:37 PM, Ed Cashin <ecashin at noserose.net> wrote:

> Sometimes logging in can change the owner or permission of sound-related
> special files under /dev.
>
>
> On Wed, Jul 8, 2015 at 5:40 AM LnxGnome <lnxgnome at hopnet.net> wrote:
>
>> 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
>>
>>  _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20150709/d19a177f/attachment.html>


More information about the Ale mailing list