A good jack-compatible audio player who stays connected to the outputs I want?

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

Moderators: MattKingUSA, khz

ciacnorris
Established Member
Posts: 23
Joined: Sun May 25, 2014 8:20 pm

A good jack-compatible audio player who stays connected to the outputs I want?

Post by ciacnorris »

Hello,

I need to play a playlist of audio files to the outputs 3-4 of my soundcard.

I have tried with both VLC and Clementine, who have JACK support, but every time a song finish and they begin playing the next song, they automatically reconnect to outputs 1-2.

Is there any player that behave properly, or another solution (which is not preparing a single audio file :D )?
User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

Re: A good jack-compatible audio player who stays connected to the outputs I want?

Post by khz »

. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
  • I don't care about the freedom of speech because I have nothing to say.
glowrak guy
Established Member
Posts: 2315
Joined: Sat Jun 21, 2014 8:37 pm
Been thanked: 251 times

Re: A good jack-compatible audio player who stays connected to the outputs I want?

Post by glowrak guy »

smplayer has an option use jackd, and the file menu has
the option to load a directory, and it will
play the contents without stopping.

A caveat, if you have PulseAudio JACK Sink enabled, and choose jackd in smplayer
Audio preferences, it will only last for that session, next time
smplayer is started, pulse will reclaim it's spot as the player audio engine,
And you have to reselect jackd. There may be some config to prevent that
takeover. Hopefully there is no pulseaudio in your system.
Cheers
User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

Re: A good jack-compatible audio player who stays connected to the outputs I want?

Post by bluebell »

ciacnorris wrote:Hello,

I need to play a playlist of audio files to the outputs 3-4 of my soundcard.

I have tried with both VLC and Clementine, who have JACK support, but every time a song finish and they begin playing the next song, they automatically reconnect to outputs 1-2.

Is there any player that behave properly, or another solution (which is not preparing a single audio file :D )?
I use jack-plumbing to disconnect/connect the appropriate ports as needed. Since I run jack_mixer I want all programs, even pulseaudio's jack sinks, to connect to jack_mixer. Additionally, jack-plumbing connects jack_mixer to to desired output ports. You can use jack-plumbing for your purposes as well, I guess.

jack-plumbing has to be permanently acitve during your session.
Here an example, my ~/.jack-plumbing

Code: Select all

(connect    "alsa-jack\..*jackP\..*:out_000" "jack_mixer:ALSA L")
(connect    "alsa-jack\..*jackP\..*:out_001" "jack_mixer:ALSA R")
(disconnect "alsa-jack\..*jackP\..*:out_.*" "system:playback_.*")

(connect    "Clementine:out_jackaudiosink-.*_1" "jack_mixer:JACK L")
(connect    "Clementine:out_jackaudiosink-.*_2" "jack_mixer:JACK R")
(disconnect "Clementine:out_jackaudiosink-.*" "system:playback_.*")

(connect    "Qtractor:Master/out_1" "jack_mixer:JACK L")
(connect    "Qtractor:Master/out_2" "jack_mixer:JACK R")
(disconnect "Qtractor:Master/out_.*" "system:playback_.*")

(connect    "ardour:Master/audio_out 1" "jack_mixer:JACK L")
(connect    "ardour:Master/audio_out 2" "jack_mixer:JACK R")
(disconnect "ardour:Master/audio_out.*" "system:playback_.*")

;(connect    "rosegarden:master out L" "jack_mixer:JACK L")
;(connect    "rosegarden:master out R" "jack_mixer:JACK R")
;(disconnect "rosegarden:master out .*" "system:playback_.*")

(connect    "MPlayer.*:out_0" "jack_mixer:ALSA L")
(connect    "MPlayer.*:out_1" "jack_mixer:ALSA R")
(disconnect "MPlayer.*:out_.*" "system:playback_.*")

(connect    "PortAudio:out_.*[13579]" "jack_mixer:JACK R")
(connect    "PortAudio:out_.*[02468]" "jack_mixer:JACK L")
(disconnect "PortAudio:out_.*" "jack_mixer:JACK .*")
(disconnect "PortAudio:out_.*" "jack_mixer:JACK .*")
(disconnect "PortAudio:out_.*" "system:playback_.*")

(connect    "PulseAudio.*:front-left"  "jack_mixer:PULSE L")
(connect    "PulseAudio.*:front-right" "jack_mixer:PULSE R")
(disconnect "PulseAudio.*:front-.*" "system:playback_.*")

(connect "netjack:capture_1" "jack_mixer:JACK L")
(connect "netjack:capture_2" "jack_mixer:JACK R")

(connect "jack_mixer:MAIN L" "system:playback_1")
(connect "jack_mixer:MAIN R" "system:playback_2")

(connect "jack_mixer:Monitor L" "alsa_out:playback_1")
(connect "jack_mixer:Monitor R" "alsa_out:playback_2")

(connect "jack_mixer:Monitor L" "ebumeter:in.L")
(connect "jack_mixer:Monitor R" "ebumeter:in.R")
For example the last 2 lines mean: As soon as I start ebumeter it gets connected to the Monitor outputs of jack_mixer.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

Re: A good jack-compatible audio player who stays connected to the outputs I want?

Post by khz »

I use qmmp http://qmmp.ylsoftware.com/ which maintains the connection throughout. However, it connects to all outputs, so I always have to disconnect the unwanted connections. But this can be adjusted, I had never tried it.
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
  • I don't care about the freedom of speech because I have nothing to say.
User avatar
thetotalchaos
Established Member
Posts: 211
Joined: Mon Sep 29, 2014 8:29 pm
Has thanked: 53 times
Been thanked: 9 times
Contact:

Re: A good jack-compatible audio player who stays connected to the outputs I want?

Post by thetotalchaos »

In my opinion the best one, if you are not afraid of scripts and manual system administration is MPD. It is the superior music handler, but it is developed for serious people. Cantata is a nice qt-based client for MPD, with notable features.

Alternatively you can try Aqualung. I don't know its current status or even if is actively developed. But i has native Jack and Ladspa support.
You can listen to my music at: https://totalchaos-music.bandcamp.com/

Take a journey to wonderland with The Butterfly Effect 2016
https://totalchaos-music.bandcamp.com/a ... fly-effect
x7i7l
Established Member
Posts: 16
Joined: Sun Jun 24, 2018 3:21 am

Re: A good jack-compatible audio player who stays connected to the outputs I want?

Post by x7i7l »

Going to Jack Settings in Cadence, Claudia or Catia you can choose a "Self Connect Mode". There you can "fail all self connect requests". I was able to make smplayer "stick" to specified ports that way.
lilakmonoke
Established Member
Posts: 59
Joined: Sun Feb 10, 2013 9:47 am

Re: A good jack-compatible audio player who stays connected to the outputs I want?

Post by lilakmonoke »

exactly that is one one of the biggest messups in the linux audio system. i have disables all self connect requests in cadence but audacity ie. always starts up a new jack client with a different name if you start playback. why do developers even bother with jack support if you cant make your own connections?

other than that i solved this by running all audio player in alsa with the bridges alsa -> pulseaudio -> jack so then you can connect pulseaudio out to anything permanent but that only works for one application at time.

you can also run non-sessionmanager from the non-tux family, it includes a jack patch manager that will restore all jack connections even after applications restart but not if the connection names are different.
Count
Established Member
Posts: 56
Joined: Tue Mar 21, 2017 1:59 am

Re: A good jack-compatible audio player who stays connected to the outputs I want?

Post by Count »

x7i7l wrote:Going to Jack Settings in Cadence, Claudia or Catia you can choose a "Self Connect Mode". There you can "fail all self connect requests". I was able to make smplayer "stick" to specified ports that way.
Ah that is excellent info thanks! Helpful for other apps/instances where I notice they sneakily reroute themselves to the System Playback after I'd reconnected them through a mixer.

I do wonder - what is the difference between 'failing' and 'ignoring' self connect requests?

This habit of VLC and other players has driven me to the point of madness trying to introduce audio samples into live music performance!
merlyn
Established Member
Posts: 1392
Joined: Thu Oct 11, 2018 4:13 pm
Has thanked: 168 times
Been thanked: 247 times

Re: A good jack-compatible audio player who stays connected to the outputs I want?

Post by merlyn »

I've found DeaDBeeF good :

http://deadbeef.sourceforge.net/

It loads quickly, nearly instantly, so it's good for auditioning samples. It has a JACK output module that you'll have to compile yourself :

https://github.com/DeaDBeeF-Player/jack

After compiling with make, move jack.so to the directory where the rest of the DeadBeeF plugins are. On my system this is /usr/lib/deadbeef.
jonetsu
Established Member
Posts: 2036
Joined: Sat Jun 11, 2016 12:05 am
Has thanked: 10 times
Been thanked: 22 times

Re: A good jack-compatible audio player who stays connected to the outputs I want?

Post by jonetsu »

Why ?

Any player will work if you use a jacksink for pulse audio, and that opens to a wide selection of audio players. I use mpv for instance.
merlyn
Established Member
Posts: 1392
Joined: Thu Oct 11, 2018 4:13 pm
Has thanked: 168 times
Been thanked: 247 times

Re: A good jack-compatible audio player who stays connected to the outputs I want?

Post by merlyn »

Why not?
jonetsu
Established Member
Posts: 2036
Joined: Sat Jun 11, 2016 12:05 am
Has thanked: 10 times
Been thanked: 22 times

Re: A good jack-compatible audio player who stays connected to the outputs I want?

Post by jonetsu »

Why complicate matters if those matters are not an end by themselves ?
merlyn
Established Member
Posts: 1392
Joined: Thu Oct 11, 2018 4:13 pm
Has thanked: 168 times
Been thanked: 247 times

Re: A good jack-compatible audio player who stays connected to the outputs I want?

Post by merlyn »

The OP asked for a good jack-compatible audio player, as you may have noticed in the title of this thread.
jonetsu
Established Member
Posts: 2036
Joined: Sat Jun 11, 2016 12:05 am
Has thanked: 10 times
Been thanked: 22 times

Re: A good jack-compatible audio player who stays connected to the outputs I want?

Post by jonetsu »

There is a possibility that he is not aware that a jack audio player is mandatory.

Not offering alternatives might not be part of an encompassing feedback. It's easy to find parallels with other contexts in which the end result would be: "well, that's what you ask for isn't it."
Post Reply