Page 1 of 2

catia & vlc default connections

Posted: Tue Sep 26, 2017 9:33 pm
by calimerox
hi there,

when i run vlc player and play back videos with surround sound i get often a default connection to catia as seen in the picture, and the dialog (often on out 5 of vlc) is routed to the right channel. i have just a 2 channel on board sound. is there a way to make another default? in vlc or also in catia, as i just have 2 audio outs?
Screenshot_2017-09-26_23-30-18.png
Screenshot_2017-09-26_23-30-18.png (11.77 KiB) Viewed 9155 times

and i wonder in general what i do with these surround mixes when i output just stereo: should i just route dialog to left and right and thats it? is there some matrix to calculate surround back to stereo in any other way?

thank you :)

Re: catia & vlc default connections

Posted: Wed Sep 27, 2017 3:28 am
by Luc
I'm not sure I understand what you want, but if I do, you may try aj-snapshot.

Re: catia & vlc default connections

Posted: Wed Sep 27, 2017 7:52 am
by barbouze
i recently discovered jack-plumbing, available in the jack-tools package. It allows you to write connections rules that are applied thanks to a daemon.
I wanted to have a system-wide EQ+limiter made of Calf plugins. Problem is that some software are automatically bypassing it by connecting to the system output. Here is an excerpt from my config:
(disconnect "PulseAudio JACK Sink:front-left" "system:playback_1")
(disconnect "PulseAudio JACK Sink:front-right" "system:playback_2")
(connect "PulseAudio JACK Sink:front-left" "Calf Studio Gear:Equalizer 12 Band In #1")
(connect "PulseAudio JACK Sink:front-right" "Calf Studio Gear:Equalizer 12 Band In #2"
(disconnect "audacious:out_0" "system:playback_1")
(disconnect "audacious:out_1" "system:playback_2")
(connect "audacious:out_0" "Calf Studio Gear:Equalizer 12 Band In #1")
(connect "audacious:out_1" "Calf Studio Gear:Equalizer 12 Band In #2")
This way, PulseAudio and Audacious will always automatically be connected to my little rack of effects hosted by Calf host.

For the number of system channels available (4 instead of 2), you can force that in the jack settings. And there also is a plugin in VLC that remap audio channels to your likings if needed.

Re: catia & vlc default connections

Posted: Wed Sep 27, 2017 10:33 am
by calimerox
@Luc

maybe i wasnt so clear: vlc always connects the wrong way to jack when there are more than 2 channels of video. i havent had that in the past really.. so everytime i need to guess and connect till i think it sounds ok, and i m never sure if i m not missing out some channel...

I will check your suggestions guys, thanks!

Re: catia & vlc default connections

Posted: Wed Sep 27, 2017 10:42 am
by calimerox
@ barbouze thank you for your suggestions! I configured the jack settings to 2 outputs , thank you!

now in vlc, what setting do you exactly mean? I just found "force to detect dolby surround" where i m not sure what it really does..

it would be great if there is some settings where vlc would just output / "downgrade" to 2 outputs. thank you :)

Re: catia & vlc default connections

Posted: Wed Sep 27, 2017 11:14 am
by barbouze
It's in Tools->Preferences->Audio->Filters->Remap
You will maybe have to check the box allowing you to see the advanced settings of VLC.

Re: catia & vlc default connections

Posted: Wed Sep 27, 2017 1:39 pm
by calimerox
found it , brilliant!

i will remap it and will have a try. i m guessing in that box it starts from one (left) to 5 (LF) and as i see usually when i play videos the dialog (center) is number 5 and not number 2 and therefore the mix gets messed up. thanks again!

Re: catia & vlc default connections

Posted: Wed Aug 28, 2019 7:08 pm
by lilith
barbouze wrote:i recently discovered jack-plumbing, available in the jack-tools package. It allows you to write connections rules that are applied thanks to a daemon.
I wanted to have a system-wide EQ+limiter made of Calf plugins. Problem is that some software are automatically bypassing it by connecting to the system output. Here is an excerpt from my config:
(disconnect "PulseAudio JACK Sink:front-left" "system:playback_1")
(disconnect "PulseAudio JACK Sink:front-right" "system:playback_2")
(connect "PulseAudio JACK Sink:front-left" "Calf Studio Gear:Equalizer 12 Band In #1")
(connect "PulseAudio JACK Sink:front-right" "Calf Studio Gear:Equalizer 12 Band In #2"
(disconnect "audacious:out_0" "system:playback_1")
(disconnect "audacious:out_1" "system:playback_2")
(connect "audacious:out_0" "Calf Studio Gear:Equalizer 12 Band In #1")
(connect "audacious:out_1" "Calf Studio Gear:Equalizer 12 Band In #2")
This way, PulseAudio and Audacious will always automatically be connected to my little rack of effects hosted by Calf host.

For the number of system channels available (4 instead of 2), you can force that in the jack settings. And there also is a plugin in VLC that remap audio channels to your likings if needed.
Hi,

I exactly want to do the same thing. Could you please shortly describe how you did this? Did you also write a script to start the CALF EQ?

Thanks

edit: What are you doing when you are using headphones?

Re: catia & vlc default connections

Posted: Thu Aug 29, 2019 10:13 am
by bluebell
lilith wrote: I exactly want to do the same thing. Could you please shortly describe how you did this? Did you also write a script to start the CALF EQ?
jack-plumbing has to be active all the time. I start it when I log on. XFCE4 has a section for automatic starts.

It doesn't matter if jack-plumbing is started before or after jack clients (jack_thru, CALF Plugin Pack, etc.).
Note that jack-plumbing accepts rules with regexps, too.

For Audacity I have a rule like this ("main" is a jack_thru instance that I use as a central point that everything connects to):

Code: Select all

(connect    "PortAudio:out_.*[13579]" "main:input_2")
(connect    "PortAudio:out_.*[02468]" "main:input_1")
(disconnect "PortAudio:out_.*" "system:playback_.*")

Re: catia & vlc default connections

Posted: Thu Aug 29, 2019 2:18 pm
by lilith
bluebell wrote:
lilith wrote: I exactly want to do the same thing. Could you please shortly describe how you did this? Did you also write a script to start the CALF EQ?
jack-plumbing has to be active all the time. I start it when I log on. XFCE4 has a section for automatic starts.

It doesn't matter if jack-plumbing is started before or after jack clients (jack_thru, CALF Plugin Pack, etc.).
Note that jack-plumbing accepts rules with regexps, too.

For Audacity I have a rule like this ("main" is a jack_thru instance that I use as a central point that everything connects to):

Code: Select all

(connect    "PortAudio:out_.*[13579]" "main:input_2")
(connect    "PortAudio:out_.*[02468]" "main:input_1")
(disconnect "PortAudio:out_.*" "system:playback_.*")
Thanks bluebell.

Code: Select all

(connect    "PortAudio:out_.*[13579]" "main:input_2")
(connect    "PortAudio:out_.*[02468]" "main:input_1")
(disconnect "PortAudio:out_.*" "system:playback_.*")
This stuff comes into one of these files, right?

Rule file does not exist: '/etc/jack-plumbing'.
Rule file does not exist: '/home/marco/.jack-plumbing'.

So, only one of the two is needed.

Re: catia & vlc default connections

Posted: Thu Aug 29, 2019 2:22 pm
by bluebell
lilith wrote: Thanks bluebell.

Code: Select all

(connect    "PortAudio:out_.*[13579]" "main:input_2")
(connect    "PortAudio:out_.*[02468]" "main:input_1")
(disconnect "PortAudio:out_.*" "system:playback_.*")
This stuff comes into one of these files, right?

Rule file does not exist: '/etc/jack-plumbing'.
Rule file does not exist: '/home/marco/.jack-plumbing'.

So, only one of the two is needed.
Yes.

Re: catia & vlc default connections

Posted: Sat Aug 31, 2019 8:35 am
by barbouze
Bluebell nailed it :)
I would recommend using your home path instead of /etc , that way it is easier to find it/edit it.
lilith wrote:
barbouze wrote: What are you doing when you are using headphones?
I just use another preset for my EQ :wink:

Re: catia & vlc default connections

Posted: Sat Jan 11, 2020 7:02 pm
by lilith
bluebell wrote:
lilith wrote: Thanks bluebell.

Code: Select all

(connect    "PortAudio:out_.*[13579]" "main:input_2")
(connect    "PortAudio:out_.*[02468]" "main:input_1")
(disconnect "PortAudio:out_.*" "system:playback_.*")
This stuff comes into one of these files, right?

Rule file does not exist: '/etc/jack-plumbing'.
Rule file does not exist: '/home/marco/.jack-plumbing'.

So, only one of the two is needed.
Yes.
I tested this currently, but it does not work. I saved the jack-plumping file under /home/marco/.jack-plumbing with this content

Code: Select all

(disconnect "PulseAudio JACK Sink:front-left"  "system:playback_1")
(disconnect "PulseAudio JACK Sink:front-right" "system:playback_2")
(connect "PulseAudio JACK Sink:front-left" "Parametric Equalizer x16 Stereo:Input_1")
(connect "PulseAudio JACK Sink:front-right" "Parametric Equalizer x16 Stereo:Input_1")
(connect "Parametric Equalizer x16 Stereo:output_1"  "system:playback_1")
(connect "Parametric Equalizer x16 Stereo:output_2"  "system:playback_2")
But the connection from pulse to system out is still always established. jack-plumping is running too.

Re: catia & vlc default connections

Posted: Sat Jan 11, 2020 7:19 pm
by bluebell
lilith wrote: I tested this currently, but it does not work. I saved the jack-plumping file under /home/marco/.jack-plumbing with this content

Code: Select all

(disconnect "PulseAudio JACK Sink:front-left"  "system:playback_1")
(disconnect "PulseAudio JACK Sink:front-right" "system:playback_2")
(connect "PulseAudio JACK Sink:front-left" "Parametric Equalizer x16 Stereo:Input_1")
(connect "PulseAudio JACK Sink:front-right" "Parametric Equalizer x16 Stereo:Input_1")
(connect "Parametric Equalizer x16 Stereo:output_1"  "system:playback_1")
(connect "Parametric Equalizer x16 Stereo:output_2"  "system:playback_2")
But the connection from pulse to system out is still always established. jack-plumping is running too.
My rule ist a bit different:

Code: Select all

(connect    "PulseAudio.*:front-left"  "main:input_1")
(connect    "PulseAudio.*:front-right" "main:input_2")
(disconnect "PulseAudio.*:.*" "system:playback_.*")
So you might try:

Code: Select all

(connect  "PulseAudio.*:front-left"  "Parametric Equalizer x16 Stereo:Input_1")
(connect  "PulseAudio.*:front-right" "Parametric Equalizer x16 Stereo:Input_2")
(connect "Parametric Equalizer x16 Stereo:output_1"  "system:playback_1")
(connect "Parametric Equalizer x16 Stereo:output_2"  "system:playback_2")
(disconnect "PulseAudio.*:.*" "system:playback_.*")

Re: catia & vlc default connections

Posted: Sat Jan 11, 2020 7:29 pm
by lilith
bluebell wrote:
lilith wrote: I tested this currently, but it does not work. I saved the jack-plumping file under /home/marco/.jack-plumbing with this content

Code: Select all

(disconnect "PulseAudio JACK Sink:front-left"  "system:playback_1")
(disconnect "PulseAudio JACK Sink:front-right" "system:playback_2")
(connect "PulseAudio JACK Sink:front-left" "Parametric Equalizer x16 Stereo:Input_1")
(connect "PulseAudio JACK Sink:front-right" "Parametric Equalizer x16 Stereo:Input_1")
(connect "Parametric Equalizer x16 Stereo:output_1"  "system:playback_1")
(connect "Parametric Equalizer x16 Stereo:output_2"  "system:playback_2")
But the connection from pulse to system out is still always established. jack-plumping is running too.
My rule ist a bit different:

Code: Select all

(connect    "PulseAudio.*:front-left"  "main:input_1")
(connect    "PulseAudio.*:front-right" "main:input_2")
(disconnect "PulseAudio.*:.*" "system:playback_.*")
So you might try:

Code: Select all

(connect  "PulseAudio.*:front-left"  "Parametric Equalizer x16 Stereo:Input_1")
(connect  "PulseAudio.*:front-right" "Parametric Equalizer x16 Stereo:Input_2")
(connect "Parametric Equalizer x16 Stereo:output_1"  "system:playback_1")
(connect "Parametric Equalizer x16 Stereo:output_2"  "system:playback_2")
(disconnect "PulseAudio.*:.*" "system:playback_.*")
Still not working :( Should the pulse - system connection always gets disconnected when I start the Parametric EQ? It's not clear to me to what this rules are coupled.

This is from the log file when I disconnect by hand:

Code: Select all

Sat Jan 11 20:30:56 2020: Disconnecting 'PulseAudio JACK Sink:front-left' from 'system:playback_1'
Sat Jan 11 20:31:02 2020: Disconnecting 'PulseAudio JACK Sink:front-right' from 'system:playback_2'
Also

Code: Select all

(disconnect "PulseAudio*:.*" "system:playback_")
does not work.