catia & vlc default connections

Unofficial support for the KXStudio Linux distribution and applications.
More info at http://kxstudio.linuxaudio.org/

Moderators: khz, MattKingUSA

calimerox
Established Member
Posts: 75
Joined: Thu Oct 30, 2008 12:46 pm

catia & vlc default connections

Postby calimerox » Tue Sep 26, 2017 9:33 pm

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



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 :)
You do not have the required permissions to view the files attached to this post.

Luc
Established Member
Posts: 741
Joined: Fri Mar 27, 2015 1:04 pm

Re: catia & vlc default connections

Postby Luc » Wed Sep 27, 2017 3:28 am

I'm not sure I understand what you want, but if I do, you may try aj-snapshot.

barbouze
Established Member
Posts: 145
Joined: Tue May 26, 2015 12:26 pm

Re: catia & vlc default connections

Postby barbouze » Wed Sep 27, 2017 7:52 am

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.

calimerox
Established Member
Posts: 75
Joined: Thu Oct 30, 2008 12:46 pm

Re: catia & vlc default connections

Postby calimerox » Wed Sep 27, 2017 10:33 am

@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!

calimerox
Established Member
Posts: 75
Joined: Thu Oct 30, 2008 12:46 pm

Re: catia & vlc default connections

Postby calimerox » Wed Sep 27, 2017 10:42 am

@ 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 :)

barbouze
Established Member
Posts: 145
Joined: Tue May 26, 2015 12:26 pm

Re: catia & vlc default connections

Postby barbouze » Wed Sep 27, 2017 11:14 am

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.

calimerox
Established Member
Posts: 75
Joined: Thu Oct 30, 2008 12:46 pm

Re: catia & vlc default connections

Postby calimerox » Wed Sep 27, 2017 1:39 pm

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!

User avatar
lilith
Established Member
Posts: 1112
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Contact:

Re: catia & vlc default connections

Postby lilith » Wed Aug 28, 2019 7:08 pm

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?
https://soundcloud.com/lilith_93
latest: https://soundcloud.com/lilith_93/deeper-and-deeper
_____________________________
Debian 10 - BUSTER (XFCE) & KXStudio repos

User avatar
bluebell
Established Member
Posts: 1236
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: catia & vlc default connections

Postby bluebell » Thu Aug 29, 2019 10:13 am

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_.*")
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

User avatar
lilith
Established Member
Posts: 1112
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Contact:

Re: catia & vlc default connections

Postby lilith » Thu Aug 29, 2019 2:18 pm

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.
https://soundcloud.com/lilith_93
latest: https://soundcloud.com/lilith_93/deeper-and-deeper
_____________________________
Debian 10 - BUSTER (XFCE) & KXStudio repos

User avatar
bluebell
Established Member
Posts: 1236
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: catia & vlc default connections

Postby bluebell » Thu Aug 29, 2019 2:22 pm

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.
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

barbouze
Established Member
Posts: 145
Joined: Tue May 26, 2015 12:26 pm

Re: catia & vlc default connections

Postby barbouze » Sat Aug 31, 2019 8:35 am

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:

User avatar
lilith
Established Member
Posts: 1112
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Contact:

Re: catia & vlc default connections

Postby lilith » Sat Jan 11, 2020 7:02 pm

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.
https://soundcloud.com/lilith_93
latest: https://soundcloud.com/lilith_93/deeper-and-deeper
_____________________________
Debian 10 - BUSTER (XFCE) & KXStudio repos

User avatar
bluebell
Established Member
Posts: 1236
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: catia & vlc default connections

Postby bluebell » Sat Jan 11, 2020 7:19 pm

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_.*")
Linux – MOTU UltraLite AVB – Qtractor – https://soundcloud.com/suedwestlicht

User avatar
lilith
Established Member
Posts: 1112
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Contact:

Re: catia & vlc default connections

Postby lilith » Sat Jan 11, 2020 7:29 pm

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.
Last edited by lilith on Sat Jan 11, 2020 7:35 pm, edited 2 times in total.
https://soundcloud.com/lilith_93
latest: https://soundcloud.com/lilith_93/deeper-and-deeper
_____________________________
Debian 10 - BUSTER (XFCE) & KXStudio repos


Return to “KXStudio Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest