Go Back   Home > Forums > >

PC Based Computer music servers, crossovers, and equalization

CamillaDSP - Cross-platform IIR and FIR engine for crossovers, room correction etc.
CamillaDSP - Cross-platform IIR and FIR engine for crossovers, room correction etc.
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
Old 20th October 2020, 12:49 PM   #1141
pi r is offline pi r  Sweden
diyAudio Member
 
Join Date: Jul 2014
My bad..! Your'e right Henrik. As always..!
Stupid me didn't think of that stderr also goes to the terminal. I was perhaps fooled by that I diddn't use the -v option, and wasn't expecting stderr output.
  Reply With Quote
Old 20th October 2020, 03:36 PM   #1142
soundcheck is offline soundcheck  Germany
diyAudio Member
 
Join Date: Mar 2005
Location: DUS
Hi there.

My LMS setup (custom-convert.conf) + Camilla is also working now.

My recordings are done.
The filters are generated.

Now the last stumbling block:

DRC-fir creates .pcm fir-filters.

I just realized that Camilla just accepts .txt.

If I recall correctly I could feed .pcm filters into brutefir.

Obviously Camilla doesn't support it. What's your suggestion of converting the filters
from pcm to txt so that they match the Camilla requirements?

THX.
  Reply With Quote
Old 20th October 2020, 03:58 PM   #1143
TNT is offline TNT  Sweden
diyAudio Member
 
Join Date: Apr 2003
Location: Sweden
"LMS setup (custom-convert.conf) + Camilla"

Does this mean that you run Camilla as some sort of plugin to LMS?

//
__________________
More distortion to the people! Timing . . . . is paramount.
  Reply With Quote
Old 20th October 2020, 04:55 PM   #1144
soundcheck is offline soundcheck  Germany
diyAudio Member
 
Join Date: Mar 2005
Location: DUS
No. No need for plugins. Just a little DIY spirit.

By using custom-convert.conf rules you can apply very flexible all kind of DSP, format conversions and routing to a stream towards a certain client prior to sending it down to the client.

Example:

Quote:
flc pcm * dc:a6:32:22:5d:30
# F
[sox] -q $FILE$ -t raw -b 32 - | [camilladsp] /etc/camilladsp/configs/client1.yml | [sox] -q -t raw -b 32 -c 2 -L -e signed -r 44100 - -t wavpcm -b 24 -c 2 -
This rule converts a .flac file into a convolved 24bit .wav stream and does it only for the client with above listed MAC.

Camilla gets 32bit in on stdin and delivers 32bit out on stdout. I need to run it through sox twice though to get the required format conversions in place.

Of course you could, or you better should, also use "rate" of sox to resample everything different from 44100. Above is a pretty static setup.

You can take it a step further and write a wrapper script that could do above and on top e.g the sample rate and filter switching for Camilla and could be called like this:

Code:
flc pcm * dc:a6:32:22:5d:30
	# F
	[cdsp] "$FILE$" client1
you just add a script or program that does the job you want it to do. In the example I am calling my own script - a simple bash script I named "cdsp".
  Reply With Quote
Old 20th October 2020, 05:09 PM   #1145
HenrikEnquist is offline HenrikEnquist  Sweden
diyAudio Member
 
Join Date: Apr 2016
Location: Lund
Quote:
Originally Posted by soundcheck View Post
Hi there.

My LMS setup (custom-convert.conf) + Camilla is also working now.

My recordings are done.
The filters are generated.

Now the last stumbling block:

DRC-fir creates .pcm fir-filters.

I just realized that Camilla just accepts .txt.

If I recall correctly I could feed .pcm filters into brutefir.

Obviously Camilla doesn't support it. What's your suggestion of converting the filters
from pcm to txt so that they match the Camilla requirements?

THX.
CamillaDSP can read raw filters in a bunch of formats. I guess that .pcm is 32-bit float which is supported. The full list is here: GitHub - HEnquist/camilladsp at develop
  Reply With Quote
Old 20th October 2020, 05:56 PM   #1146
soundcheck is offline soundcheck  Germany
diyAudio Member
 
Join Date: Mar 2005
Location: DUS
Stupid me.

Just didn't get down to the bottom of the chapter.

Thx.
  Reply With Quote
Old 21st October 2020, 12:23 PM   #1147
soundcheck is offline soundcheck  Germany
diyAudio Member
 
Join Date: Mar 2005
Location: DUS
Hi there.

I now got the LMS setup with real filters up'n running.

I do face a serious issue.

There seems to be some kind of start/stop/pause related issue on my LMS-Camilla setup when driven through custom-convert.conf.

Camilla is not running as daemon if started that way. A pipe gets established every time a track playback gets triggered. That's why you see Camilla active
only for a couple of seconds - while running the bulk convolution. There'll be no continuous convolution load. It's basically an offline convolution.

That's different compared to attaching it to squeezelite via stdout (which I also tested and works nicely!) or running inside the Alsa loopback setting.

Anyhow. The issues are that suddenly e.g the playback time stamp jumps ten seconds ahead or the track playback gets simply cut off 10-15s before it ends and the next track gets started right after.
So far I havn't seen any relevant error messages.

Any ideas what else I could look for?

Last edited by soundcheck; 21st October 2020 at 12:30 PM.
  Reply With Quote
Old 21st October 2020, 01:32 PM   #1148
pi r is offline pi r  Sweden
diyAudio Member
 
Join Date: Jul 2014
I'd ask what Henrik asked me:
Quote:
Did you set queuelimit=1 in the camilla config? If not, do it
If camilladsp chews the whole track at once...
  Reply With Quote
Old 21st October 2020, 05:19 PM   #1149
soundcheck is offline soundcheck  Germany
diyAudio Member
 
Join Date: Mar 2005
Location: DUS
AAMOF - I do have it in.

Code:
---
devices:
  samplerate: 44100
  chunksize: 8192
  queuelimit: 1
  capture:
    type: File
    channels: 2
    filename: "/dev/stdin"
    format: S32LE
  playback:
    type: File
    channels: 2
    filename: "/dev/stdout"
    format: S32LE
  Reply With Quote
Old 21st October 2020, 08:52 PM   #1150
HenrikEnquist is offline HenrikEnquist  Sweden
diyAudio Member
 
Join Date: Apr 2016
Location: Lund
Quote:
Originally Posted by soundcheck View Post
AAMOF - I do have it in.

Code:
---
devices:
  samplerate: 44100
  chunksize: 8192
  queuelimit: 1
  capture:
    type: File
    channels: 2
    filename: "/dev/stdin"
    format: S32LE
  playback:
    type: File
    channels: 2
    filename: "/dev/stdout"
    format: S32LE
What happens if you leave out CamillaDSP and just run with the two sox:es?
Have you tried the same pipeline offline to make sure it produces correct wav-files?
  Reply With Quote

Reply


CamillaDSP - Cross-platform IIR and FIR engine for crossovers, room correction etc.Hide this!Advertise here!
Thread Tools

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The room correction or speaker correction? What can we do with dsp power now availabl Raimonds Full Range 233 28th January 2017 08:51 AM
Introducing OpenDRC, Open Digital Room Correction engine minidsp miniDSP 20 20th January 2016 06:37 PM
What the difference between dsp room correction eq and software correction erez1012 PC Based 0 10th March 2014 08:07 PM
Writing a Cross-Platform, Free Software Modeling Tool and TS-Parameter DB justinzane Software Tools 6 31st December 2013 07:55 AM
FS: DAC, room-correction, active crossovers, amp, speakers! taloyd Swap Meet 4 14th April 2009 04:16 PM


New To Site? Need Help?

All times are GMT. The time now is 11:01 PM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 14.29%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Copyright ©1999-2020 diyAudio
Wiki