LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Setting up Compression using Pulse Audio on Linux (https://www.linuxquestions.org/questions/linux-software-2/setting-up-compression-using-pulse-audio-on-linux-4175584557/)

Jeff91 07-13-2016 01:50 PM

Setting up Compression using Pulse Audio on Linux
 
I'm using an Ubuntu 14.04 based distribution and I am trying to get audio compression setup on my microphone I am using for some recording. I've found a few different guides that suggest using LADAP plugins, but I can't see to get any of them live. I get a new sink added successfully, but I can't seem to get audio from my microphone piped into it successfully.

My list of audio syncs:

Code:

jeff@jeff-desktop:~$ pacmd list-sinks | grep name:
        name: <alsa_output.pci-0000_01_00.1.hdmi-stereo>
        name: <alsa_output.pci-0000_00_1b.0.analog-stereo>

And the command I am using to create the compressor channel:

Code:

pacmd load-module module-ladspa-sink sink_name=ladspa_output.fast_lookahead_limiter_1913.fastLookaheadLimiter master=alsa_output.pci-0000_00_1b.0.analog-stereo.monitor plugin=fast_lookahead_limiter_1913 label=fastLookaheadLimiter control=0,-5,0.25
Screenshot of my pavucontrol inputs before adding the compressor channel:

http://www.enlightenment.org/ss/e-57...3.52845433.jpg

Any suggestions / guidance on what I might be doing wrong?

Shadow_7 07-14-2016 10:29 AM

If you're going to be doing realtime effects you should probably run jackd and at worse, pulse over jackd.

http://www.jackaudio.org/faq/pulseaudio_and_jack.html

#3 on that setup list which redirects to here:

https://github.com/jackaudio/jackaud...er_PulseOnJack

And your effects will likely be plugged into jack(qjackctl) while pulse plays a dumb retailer of sounds.

Shadow_7 07-14-2016 10:45 AM

http://wiki.linuxaudio.org/wiki/plug-ins

The calf one might be the easier of the bunch to use. But I don't dwell much in live options to have used these much.

# apt-get install calf-plugins jackd qjackctl

Start jackd, start calfjackhost, start qjackctl and connect the dots. Select the compressor under Add plugin on the calfjackhost gui.

Jeff91 07-16-2016 08:43 AM

Thank you for the suggestions! Going to sort through these later tonight.

Jeff91 07-17-2016 12:07 PM

So I am trying to start Jackd through Cadence as recommend in several places. I added my user to the audio group, but Jackd is failing to start with this log:

Code:

un Jul 17 09:50:22 2016: ------------------
Sun Jul 17 09:50:22 2016: Controller activated. Version 1.9.10 (unknown) built on Sat Oct 19 11:11:48 2013
Sun Jul 17 09:50:22 2016: Loading settings from "/home/jeff/.config/jack/conf.xml" using expat_2.1.0 ...
Sun Jul 17 09:50:22 2016: ERROR: failed to stat "/home/jeff/.config/jack/conf.xml", error is 2 (No such file or directory)
Sun Jul 17 09:50:22 2016: ERROR: open() failed to open conf filename.
Sun Jul 17 09:50:22 2016: Listening for D-Bus messages
Sun Jul 17 09:50:52 2016: Starting jack server...
Sun Jul 17 09:50:52 2016: JACK server starting in realtime mode with priority 10
Sun Jul 17 09:50:52 2016: ERROR: Cannot lock down 82274202 byte memory area (Cannot allocate memory)
Sun Jul 17 09:50:52 2016: Acquired audio card Audio0
Sun Jul 17 09:50:52 2016: creating alsa driver ... hw:0|hw:0|1024|2|44100|0|0|nomon|swmeter|-|32bit
Sun Jul 17 09:50:52 2016: ERROR: ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
Sun Jul 17 09:50:52 2016: ERROR: Cannot initialize driver
Sun Jul 17 09:50:52 2016: ERROR: JackServer::Open failed with -1
Sun Jul 17 09:50:52 2016: ERROR: Failed to open server
Sun Jul 17 09:50:53 2016: Saving settings to "/home/jeff/.config/jack/conf.xml" ...
Sun Jul 17 10:48:15 2016: ------------------
Sun Jul 17 10:48:15 2016: Controller activated. Version 1.9.11 (unknown) built on Sun Jul  3 13:02:57 2016
Sun Jul 17 10:48:15 2016: Loading settings from "/home/jeff/.config/jack/conf.xml" using expat_2.1.0 ...
Sun Jul 17 10:48:15 2016: setting parameter 'engine':'driver':'(null)' to value "alsa"
Sun Jul 17 10:48:15 2016: setting parameter 'engine':'realtime':'(null)' to value "true"
Sun Jul 17 10:48:15 2016: setting parameter 'engine':'verbose':'(null)' to value "false"
Sun Jul 17 10:48:15 2016: setting parameter 'engine':'client-timeout':'(null)' to value "500"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'device' to value "hw:0"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'capture' to value "hw:0"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'playback' to value "hw:0"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'rate' to value "44100"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'period' to value "1024"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'nperiods' to value "2"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'hwmon' to value "false"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'hwmeter' to value "false"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'duplex' to value "true"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'softmode' to value "false"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'monitor' to value "false"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'dither' to value "n"
Sun Jul 17 10:48:15 2016: setting parameter 'drivers':'alsa':'shorts' to value "false"
Sun Jul 17 10:48:15 2016: Listening for D-Bus messages
Sun Jul 17 10:48:28 2016: Starting jack server...
Sun Jul 17 10:48:28 2016: JACK server starting in realtime mode with priority 10
Sun Jul 17 10:48:28 2016: self-connect-mode is "Don't restrict self connect requests"
Sun Jul 17 10:48:28 2016: ERROR: Cannot lock down 107341338 byte memory area (Cannot allocate memory)
Sun Jul 17 10:48:28 2016: Acquired audio card Audio0
Sun Jul 17 10:48:28 2016: creating alsa driver ... hw:0|hw:0|1024|2|44100|0|0|nomon|swmeter|-|32bit
Sun Jul 17 10:48:28 2016: Using ALSA driver HDA-Intel running on card 0 - HDA Intel HDMI at 0xf7e34000 irq 33
Sun Jul 17 10:48:28 2016: ERROR: ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
Sun Jul 17 10:48:28 2016: Released audio card Audio0
Sun Jul 17 10:48:28 2016: ERROR: Cannot initialize driver
Sun Jul 17 10:48:28 2016: ERROR: JackServer::Open failed with -1
Sun Jul 17 10:48:28 2016: ERROR: Failed to open server
Sun Jul 17 10:51:27 2016: ------------------
Sun Jul 17 10:51:27 2016: Controller activated. Version 1.9.11 (unknown) built on Sun Jul  3 13:02:57 2016
Sun Jul 17 10:51:27 2016: Loading settings from "/home/jeff/.config/jack/conf.xml" using expat_2.1.0 ...
Sun Jul 17 10:51:27 2016: setting parameter 'engine':'driver':'(null)' to value "alsa"
Sun Jul 17 10:51:27 2016: setting parameter 'engine':'realtime':'(null)' to value "true"
Sun Jul 17 10:51:27 2016: setting parameter 'engine':'verbose':'(null)' to value "false"
Sun Jul 17 10:51:27 2016: setting parameter 'engine':'client-timeout':'(null)' to value "500"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'device' to value "hw:0"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'capture' to value "hw:0"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'playback' to value "hw:0"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'rate' to value "44100"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'period' to value "1024"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'nperiods' to value "2"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'hwmon' to value "false"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'hwmeter' to value "false"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'duplex' to value "true"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'softmode' to value "false"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'monitor' to value "false"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'dither' to value "n"
Sun Jul 17 10:51:27 2016: setting parameter 'drivers':'alsa':'shorts' to value "false"
Sun Jul 17 10:51:27 2016: Listening for D-Bus messages
Sun Jul 17 10:51:30 2016: Starting jack server...
Sun Jul 17 10:51:30 2016: JACK server starting in realtime mode with priority 10
Sun Jul 17 10:51:30 2016: self-connect-mode is "Don't restrict self connect requests"
Sun Jul 17 10:51:30 2016: Acquired audio card Audio0
Sun Jul 17 10:51:30 2016: creating alsa driver ... hw:0|hw:0|1024|2|44100|0|0|nomon|swmeter|-|32bit
Sun Jul 17 10:51:30 2016: Using ALSA driver HDA-Intel running on card 0 - HDA Intel HDMI at 0xf7e34000 irq 33
Sun Jul 17 10:51:30 2016: ERROR: ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
Sun Jul 17 10:51:30 2016: Released audio card Audio0
Sun Jul 17 10:51:30 2016: ERROR: Cannot initialize driver
Sun Jul 17 10:51:30 2016: ERROR: JackServer::Open failed with -1
Sun Jul 17 10:51:30 2016: ERROR: Failed to open server


Shadow_7 07-17-2016 10:48 PM

$ cat /proc/asound/cards

If pulseaudio is running before jackd starts it'll lock the card from being used. The "autospawn = no" in /etc/pulse/client.conf lets you stop pulseaudio (and not have it restart -default-).

$ pgrep pulseaudio
$ pulseaudio --kill
(if running)

$ jackd -r -d alsa -d hw:2 -r 4800 -s -S -m -D
(non-realtime, 48kHz, 16 bit, midi, and full duplex (input and output))

What I normally default to for jackd. Where "-d hw:2" is the card with index number 2. A usb soundcard in my case.

$ calfjackhost
(to start calf)

$ qjackctl
(to start the gui for jackd to connect calf in middle of the input to output chain.)

Hopefully not too techy.


All times are GMT -5. The time now is 02:29 AM.