• WANTED: Happy members who like to discuss audio and other topics related to our interest. Desire to learn and share knowledge of science required. There are many reviews of audio hardware and expert members to help answer your questions. Click here to have your audio equipment measured for free!

RPi4 + CamillaDSP Tutorial

Wirrunna

Member
Joined
May 27, 2021
Messages
93
Likes
45
Location
South Coast, NSW, Australia
Have you tried using the latest version of the GUI?
The way to tell if you are on the latest GUI is check the VU Meters and confirm "In" and "out" are sideways as displayed on the enclosed screen grab.
As Marcos said the remote moves the volume with almost no delay.

Edit: Just noticed that Michael has updated the screen grabs of the GUI to the latest version.
 

Attachments

  • CamillaDSP VU meter.jpg
    CamillaDSP VU meter.jpg
    88.2 KB · Views: 64
Last edited:

juliangst

Addicted to Fun and Learning
Joined
Dec 11, 2021
Messages
970
Likes
992
Location
Germany
Is there any way to easily switch capture devices without having to use the CamillaDSP gui every time?

I plan to get this UR23 optical to USB adapter for connecting my PC or a TV but I also want to use Shairport for Airplay streaming.
Opening the web interface every time is not the end of the world but being able to use a flirc remote would be more convenient
 
OP
M

mdsimon2

Major Contributor
Forum Donor
Joined
Oct 20, 2020
Messages
2,508
Likes
3,353
Location
Detroit, MI
Is there any way to easily switch capture devices without having to use the CamillaDSP gui every time?

I plan to get this UR23 optical to USB adapter for connecting my PC or a TV but I also want to use Shairport for Airplay streaming.
Opening the web interface every time is not the end of the world but being able to use a flirc remote would be more convenient

Yes, this can be done with the FLIRC. I am in the process of implementing some more general switching behavior to the oled and flirc python scripts but won’t be able to finalize until the end of the month.

Michael
 
  • Like
Reactions: MCH

jhenderson0107

Active Member
Joined
Jun 10, 2021
Messages
197
Likes
447
Location
California
Is it possible to create named groups of filters within Camilla DSP? Active speakers (such as the LX521.4) employ numerous filter stages for each driver. It would be convenient to aggregate all of the required filters for the each driver into separate, appropriately-name groups so that a bank of filters could be easily applied to it's corresponding driver channel.

Edit: In retrospect, my request above seems unnecessary since all filters are stored in a named configuration along with the channel pipelines which specify the filter chains. So as Emily Litella would say - "Nevermind".
 
Last edited:

Hainnes

New Member
Joined
Nov 7, 2022
Messages
3
Likes
0
Hi i just wanted to ask: did any body manage/try to use Camilladsp with Ac3 5.1 audio from toslink or spdif ?

I am building a cheap as possible home theater setup and thought this could be a way to achieve relatively cheap room correction.
 

juliangst

Addicted to Fun and Learning
Joined
Dec 11, 2021
Messages
970
Likes
992
Location
Germany
Just tested installing shairport with Airplay 2 support but I can't get it working.

Has anyone alreadytried to get Airplay 2 running on Ubuntu?
 
OP
M

mdsimon2

Major Contributor
Forum Donor
Joined
Oct 20, 2020
Messages
2,508
Likes
3,353
Location
Detroit, MI
Hi i just wanted to ask: did any body manage/try to use Camilladsp with Ac3 5.1 audio from toslink or spdif ?

I am building a cheap as possible home theater setup and thought this could be a way to achieve relatively cheap room correction.

It can be done but it is somewhat complicated and expensive, I am not sure it is worth it if cost is your primary motivation.

You need a decoder such as the Dolby DP562, fortunately these can be purchased for under $100 used, I purchased one for $65 shipped earlier this year. The decoder will take an optical AC3 5.1 signal and turn it in to 3X stereo AES outputs. From here you have two options, 1) an Okto dac8 pro where you take the AES outputs of the decoder and use the USB/AES mode to route the AES signals to CamillaDSP for processing and back to the Okto for analog output or 2) a miniDSP U-DIO8 which can route the AES signals to CamillaDSP and back out to AES outputs although you will need DACs in this case.

Michael
 
Last edited:

phofman

Senior Member
Joined
Apr 13, 2021
Messages
497
Likes
322
ac3 can be decoded in SW, e.g. ffmpeg, gstreamer etc. Then through aloop to CDSP with async resampling.

But the question is overall latency, for lip sync. The more stages, the more buffers, the longer the latency...
 

juliangst

Addicted to Fun and Learning
Joined
Dec 11, 2021
Messages
970
Likes
992
Location
Germany
I just made a fresh install of CamillaDSP but I can't access the web interface. It looks like the port is blocked by something.

1667865900251.png
 
OP
M

mdsimon2

Major Contributor
Forum Donor
Joined
Oct 20, 2020
Messages
2,508
Likes
3,353
Location
Detroit, MI
I just made a fresh install of CamillaDSP but I can't access the web interface. It looks like the port is blocked by something.

View attachment 241919

Are you running shairport-sync? If so you need to change the port of shairport-sync to 6000 as described in the tutorial as both CamillaDSP and shaiport-sync use 5000 by default.

Michael
 

juliangst

Addicted to Fun and Learning
Joined
Dec 11, 2021
Messages
970
Likes
992
Location
Germany
Are you running shairport-sync? If so you need to change the port of shairport-sync to 6000 as described in the tutorial as both CamillaDSP and shaiport-sync use 5000 by default.

Michael
Already changed the port to 6000 so shairport is not the problem.

Something using python is blocking the port but the only possible python script running is CamillaDSP itself.
I did another fresh install but still got this same error
 

phofman

Senior Member
Joined
Apr 13, 2021
Messages
497
Likes
322
'netstat -a -p -n' will tell you which process/PID uses the port.

'ps axwww' will show you the process/PID parameters.

Using these commands should help you find out what is blocking your port. I would guess you are trying to run a second instance of the GUI.
 

silverD

Member
Joined
May 12, 2020
Messages
32
Likes
34
I recently purchased a Motu M4, installed the latest version of Moode on my pi4, and have been struggling to get 4 channel playback via CamillaDSP. M4 is selected as the playback device and loopback is enabled in the audio settings. In CamillaDSP I have tried the settings suggested in the config files, but I only get just a moment of 4 channel playback before it stops. When I go back to the GUI the status says paused. When I open the log it shows "...src/alsadevice.rs:152] prepare playback after buffer underrun". When I disable CamillaDSP playback in fine. Thanks in advance!
 

MCH

Major Contributor
Joined
Apr 10, 2021
Messages
2,641
Likes
2,251
I recently purchased a Motu M4, installed the latest version of Moode on my pi4, and have been struggling to get 4 channel playback via CamillaDSP. M4 is selected as the playback device and loopback is enabled in the audio settings. In CamillaDSP I have tried the settings suggested in the config files, but I only get just a moment of 4 channel playback before it stops. When I go back to the GUI the status says paused. When I open the log it shows "...src/alsadevice.rs:152] prepare playback after buffer underrun". When I disable CamillaDSP playback in fine. Thanks in advance!
I also had trouble when trying to use Moode's loopback. Try to follow this below starting from a generic "flat" configuration with the pertinent changes. Good luck

Thread 'Dummy to dummy multichannel DSP on the ultra cheap instructions' https://audiosciencereview.com/foru...el-dsp-on-the-ultra-cheap-instructions.30660/
 

silverD

Member
Joined
May 12, 2020
Messages
32
Likes
34
  • Like
Reactions: MCH

silverD

Member
Joined
May 12, 2020
Messages
32
Likes
34
Thanks MarcosCh, I'm up and running! Here is a screenshot of my settings:
camillaDSP.jpg
 
  • Like
Reactions: MCH

juliangst

Addicted to Fun and Learning
Joined
Dec 11, 2021
Messages
970
Likes
992
Location
Germany
Got CamillaDSP running again but I don't get any audio from Airplay.

I doesn't seem to be caused by Shairport because I see my Pi in the Airplay menu and can stream music to it. The output device of shairport is "hw:Loopback,1"
I'm using the same setting that I used on my CamillaDSP server before.

Any ideas what I'm doing wrong this time?


1667955836947.png

Log:
2022-11-09 01:03:56.585063 INFO [src/bin.rs:711] CamillaDSP version 1.0.2
2022-11-09 01:03:56.585211 INFO [src/bin.rs:712] Running on linux, aarch64
2022-11-09 01:03:56.585351 DEBUG [src/bin.rs:754] Read config file Some("/home/julian/camilladsp/active_config.yml")
2022-11-09 01:03:56.586188 DEBUG [src/config.rs:1025] ../coeffs/R_Harman-44k.wav is relative
2022-11-09 01:03:56.586320 DEBUG [src/config.rs:1029] Using ../coeffs/R_Harman-44k.wav found relative to config file dir
2022-11-09 01:03:56.586430 DEBUG [src/config.rs:1025] ../coeffs/impulseR.wav is relative
2022-11-09 01:03:56.586548 DEBUG [src/config.rs:1029] Using ../coeffs/impulseR.wav found relative to config file dir
2022-11-09 01:03:56.586646 DEBUG [src/config.rs:1025] ../coeffs/impulseL.wav is relative
2022-11-09 01:03:56.586783 DEBUG [src/config.rs:1029] Using ../coeffs/impulseL.wav found relative to config file dir
2022-11-09 01:03:56.586885 DEBUG [src/config.rs:1025] ../coeffs/L_Harman-44k.wav is relative
2022-11-09 01:03:56.587004 DEBUG [src/config.rs:1029] Using ../coeffs/L_Harman-44k.wav found relative to config file dir
2022-11-09 01:03:56.587103 DEBUG [src/bin.rs:773] Config is valid
2022-11-09 01:03:56.587205 DEBUG [src/socketserver.rs:260] Start websocket server on 127.0.0.1:1234
2022-11-09 01:03:56.587480 DEBUG [src/bin.rs:857] Wait for config
2022-11-09 01:03:56.587586 DEBUG [src/bin.rs:890] Config ready
2022-11-09 01:03:56.588010 DEBUG [src/bin.rs:213] Using channels [true, true]
2022-11-09 01:03:56.588031 DEBUG [src/filters.rs:450] Build new pipeline
2022-11-09 01:03:56.588124 INFO [src/audiodevice.rs:473] Using Async resampler for synchronous resampling. Consider switching to "Synchronous" to save CPU time.
2022-11-09 01:03:56.588141 DEBUG [src/processing.rs:19] build filters, waiting to start processing loop
2022-11-09 01:03:56.588256 DEBUG [src/alsadevice.rs:917] Buffer frames 2048
2022-11-09 01:03:56.588606 DEBUG [src/alsadevice.rs:932] Creating resampler
2022-11-09 01:03:56.588723 DEBUG [src/audiodevice.rs:432] Creating asynchronous resampler with parameters: InterpolationParameters { sinc_len: 64, f_cutoff: 0.91560215, oversampling_factor: 1024, interpolation: Linear, window: Hann2 }
2022-11-09 01:03:56.591298 DEBUG [src/alsadevice.rs:413] Playback: supported channels, min: 2, max: 2, list: [2]
2022-11-09 01:03:56.591430 DEBUG [src/alsadevice.rs:414] Playback: setting channels to 2
2022-11-09 01:03:56.591639 DEBUG [src/alsadevice.rs:418] Playback: supported samplerates: Discrete([32000, 44100, 48000, 64000, 88200, 96000, 176400, 192000])
2022-11-09 01:03:56.591744 DEBUG [src/alsadevice.rs:419] Playback: setting rate to 48000
2022-11-09 01:03:56.591867 DEBUG [src/alsadevice.rs:423] Playback: supported sample formats: [S16LE, S24LE]
2022-11-09 01:03:56.591970 DEBUG [src/alsadevice.rs:424] Playback: setting format to S32LE
2022-11-09 01:03:56.592198 ERROR [src/bin.rs:344] Playback error: ALSA function 'snd_pcm_hw_params_set_format' failed with error 'EINVAL: Invalid argument'
2022-11-09 01:03:56.592311 DEBUG [src/bin.rs:349] Error while starting, release barrier
2022-11-09 01:03:56.606307 DEBUG [src/alsadevice.rs:413] Capture: supported channels, min: 2, max: 2, list: [2]
2022-11-09 01:03:56.606442 DEBUG [src/alsadevice.rs:414] Capture: setting channels to 2
2022-11-09 01:03:56.606548 DEBUG [src/alsadevice.rs:418] Capture: supported samplerates: Discrete([44100])
2022-11-09 01:03:56.606645 DEBUG [src/alsadevice.rs:419] Capture: setting rate to 44100
2022-11-09 01:03:56.606776 DEBUG [src/alsadevice.rs:423] Capture: supported sample formats: [S32LE]
2022-11-09 01:03:56.606877 DEBUG [src/alsadevice.rs:424] Capture: setting format to S24LE
2022-11-09 01:03:56.607076 DEBUG [src/bin.rs:352] Wait for capture thread to exit..
2022-11-09 01:03:56.607095 DEBUG [src/processing.rs:21] Processing loop starts now!
2022-11-09 01:03:56.607281 ERROR [src/processing.rs:50] Message channel error: receiving on a closed channel
2022-11-09 01:03:56.607386 INFO [src/processing.rs:53] Playback thread has already stopped.
2022-11-09 01:03:56.607627 DEBUG [src/bin.rs:915] Restarting with new config
2022-11-09 01:03:56.607727 DEBUG [src/bin.rs:857] Wait for config
2022-11-09 01:03:56.607828 DEBUG [src/bin.rs:860] No config and not in wait mode, exiting!
 
Top Bottom