Linux + MPD player + dsp crossover via ecasound - diyAudio
Go Back   Home > Forums > Source & Line > PC Based

PC Based Computer music servers, crossovers, and equalization

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 14th September 2013, 01:58 AM   #1
diyAudio Member
 
Join Date: Jan 2013
Location: Oregon City, Oregon
Default Linux + MPD player + dsp crossover via ecasound

Hi, experts... I've been playing with this attempted setup for a couple weeks. Started with a project found at: Digital Crossover/EQ with Open-Source Software: HOWTO | Richard's Stuff

I've gotten part way, and have hit a brick wall getting ecasound to play nicely.

Soundcard: Turtle Beach Montego DDL (in 5.1 mode)
Linux build: Ubuntu, latest download two weeks ago.

MPD seems fine, but ecasound likes to crash and issue obscure error messages that google hasn't helped me with.

I've been a unix system admin and a tech support engineer for years, so that part doesn't bother me, but this sound stuff....

Any help or advice is welcomed!
  Reply With Quote
Old 14th September 2013, 02:03 AM   #2
skunark is offline skunark  United States
diyAudio Member
 
Join Date: Sep 2011
Location: Pacific Northwest
Can you provide the error message?
Did you review the bug and issue lists?
http://www.eca.cx/ecasound/BUGS
http://sourceforge.net/p/ecasound/bugs/
  Reply With Quote
Old 14th September 2013, 02:19 AM   #3
diyAudio Member
 
Join Date: Jan 2013
Location: Oregon City, Oregon
Basically, I've been getting two different errors.

"broken pipe opening output" and
(sorry, I'm downstairs, and the linux box is off), something about 4 not being in the sound card's capability.

I can play the test wav out all 6 channels, so I know the card is ok.... I'll get the errors to you tomorrow.
  Reply With Quote
Old 14th September 2013, 02:32 AM   #4
skunark is offline skunark  United States
diyAudio Member
 
Join Date: Sep 2011
Location: Pacific Northwest
Might make note if it's alsa, ecasound or mpd that has the error as you step through the tests in the instructions. Also make sure that mpd --version reports pipe as an output plugin. Perhaps you might have to remove "jack" as a mpd plugin as ecasound reports issues with it.
  Reply With Quote
Old 14th September 2013, 02:44 AM   #5
diyAudio Member
 
Join Date: Jan 2013
Location: Oregon City, Oregon
Default no jack?

Thanks for the quick turnarounds!

As far as I know, I'm not using Jack at all. The problem appears to be somewhere in the interface between ecasound and alsa.

When I run this simple one, it does work fine:
ecasound -tl -i chan_labels_6.wav -f:16,6,44100 -eadb:-24 -o alsa,surround51:CMI8768When I run the more complex test, using something more like this, it doesn't:

ecasound -z:mixmode,sum -x \ -are -i:mysong.mp3 -pfre.ecp -o:loop,1 \ -a:woofer,tweeter -i:loop,1 \ -a:woofer -pf:woofer.ecp -chorder:1,2,0,0 \ -a:tweeter -pf:tweeter.ecp -chorder:0,0,1,2 \ -a:woofer,tweeter -f:16,4,44100 -o:alsa,surround51:CMI8768All this is without MPD, so I don't think that's the issue. MPD plays fine with a stripped down command-set. I have tried emptying and replacing the specified plugins, and that doesn't appear to be the problem

thanks!
  Reply With Quote
Old 14th September 2013, 03:47 AM   #6
skunark is offline skunark  United States
diyAudio Member
 
Join Date: Sep 2011
Location: Pacific Northwest
Did you try saving to a file, instead of alsa, with the more complex ecasound command? -o myoutput.wav ? If that failed, then check file permissions if that passed then i would consider adding the user to the audio group.
  Reply With Quote
Old 14th September 2013, 04:15 AM   #7
diyAudio Member
 
Join Date: Jan 2013
Location: Oregon City, Oregon
Default saving to a file

Saving to a file "worked", in that I got no errors, but the file was silent. Haven't tried that for a week, though, and I've fixed other issues. will try it and report.
  Reply With Quote
Old 14th September 2013, 04:57 PM   #8
diyAudio Member
 
Join Date: Jan 2013
Location: Oregon City, Oregon
This morning's test:
# test for ecasound and stuff
ecasound -z:mixmode,sum -x \
-a pre -iownloads/chan_labels_4.wav -o:loop,1 -a:woofer,tweeter -i:loop,1 -a:w oofer -pf:/etc/woofer.ecp -chorder:1,2,0,0 -a:tweeter -pf:/etc/tweeter.ecp -chor der:0,0,1,2 -a:woofer,tweeter -f:16,4,44100 -o:testoutput.mp3

The input file has "left tweeter, right tweeter, left woofer, right woofer". The output file has "left woofer, right woofer, and then silence. Ecasound crashed at the end, as always.

This command:

# test for ecasound and stuff
ecasound -z:mixmode,sum -x \
-a pre -iownloads/chan_labels_4.wav -o:loop,1 -a:woofer,tweeter -i:loop,1 -a:woofer -pf:/etc/woofer.ecp -chorder:1,2,0,0 -a:tweeter -pf:/etc/tweeter.ecp -chorder:0,0,1,2 -a:woofer,tweeter -f:16,4,44100 -o:alsa,surround51:CMI8768

yields this output message:

(eca-chainsetup-parser) Enabling 'sum' mixmode.
(eca-chainsetup-parser) Truncating outputs (overwrite-mode).
(eca-chainsetup) Chainsetup "untitled-chainsetup"
(eca-chainsetup) "rtlowlatency" buffering mode selected.
(eca-chainsetup) NOTE: using existing audio parameters -f:s16_le,4,44100 for
... object 'Downloads/chan_labels_4.wav' (tried to open with
... -f:s16_le,2,44100).
(eca-chainsetup) Opened input "Downloads/chan_labels_4.wav", mode "read".
... Format: s16_le, channels 4, srate 44100, interleaved (locked params).
(eca-chainsetup) NOTE: using existing audio parameters -f:f32_le,2,44100 for
... object 'loop' (tried to open with -f:s16_le,2,44100).
(eca-chainsetup) Opened input "loop", mode "read". Format: f32_le, channels
... 2, srate 44100, interleaved (locked params).
(eca-chainsetup) Opened input "loop", mode "read". Format: f32_le, channels
... 2, srate 44100, interleaved (locked params).
ERROR: Connecting chainsetup failed: "Enabling chainsetup: AUDIOIO-ALSA:
... Channel count 4 is out of range!"

this is where I'm stuck..

thanks

jay
  Reply With Quote
Old 14th September 2013, 06:08 PM   #9
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
I would assume the surround5.1 device accepts 6 channels only. Are you sure you want to output 4 channels to 6 channel device?
  Reply With Quote
Old 14th September 2013, 07:08 PM   #10
diyAudio Member
 
Join Date: Jan 2013
Location: Oregon City, Oregon
At present, yes, I wish to output 4 channels to the 6 channel device. Eventually, I need to output a full-spectrum feed to the last two channels to feed the rest of the house... I had assumed that "out of range" meant, "too big a number". I think I tried six, but will try again:

Hm.. I'm still downstairs, and about to leave to measure for a remodeling project (my wife's business), but that appeared to work. No error messages at all. Need to listen to the ports and see what comes out.

Thanks for leading me in what looks like the right direction!
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi channel Linux audio player with integrated amplifier questions. ollepetersson PC Based 5 17th March 2013 02:46 PM
Linux or PIC based HDD player? withnail PC Based 11 23rd September 2009 09:10 PM
Linux + MPD music server --> assistance offered kavermei PC Based 10 22nd August 2009 04:04 AM
Please Help Linux Player KIT - Buy from Asia ? ECBLN Digital Line Level 1 14th September 2008 01:31 PM


New To Site? Need Help?

All times are GMT. The time now is 12:19 AM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2