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: khz, MattKingUSA

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

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

Postby ciacnorris » Thu Sep 27, 2018 12:49 am

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: 1240
Joined: Thu Apr 17, 2008 6:29 am
Location: German

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

Postby khz » Thu Sep 27, 2018 6:56 am

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: 1420
Joined: Sat Jun 21, 2014 8:37 pm

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

Postby glowrak guy » Fri Oct 12, 2018 2:35 am

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: 1236
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

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

Postby bluebell » Fri Oct 12, 2018 6:20 am

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 – https://soundcloud.com/suedwestlicht

User avatar
khz
Established Member
Posts: 1240
Joined: Thu Apr 17, 2008 6:29 am
Location: German

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

Postby khz » Fri Oct 12, 2018 6:30 am

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: 157
Joined: Mon Sep 29, 2014 8:29 pm
Contact:

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

Postby thetotalchaos » Wed Oct 17, 2018 3:19 am

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.
Check out my latest music album The girl with the stars in her eyes
https://totalchaos-music.bandcamp.com/album/the-girl-with-the-stars-in-her-eyes

x7i7l
Established Member
Posts: 9
Joined: Sun Jun 24, 2018 3:21 am

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

Postby x7i7l » Wed Oct 17, 2018 5:42 pm

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: 57
Joined: Sun Feb 10, 2013 9:47 am

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

Postby lilakmonoke » Thu Oct 25, 2018 10:28 am

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: 50
Joined: Tue Mar 21, 2017 1:59 am

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

Postby Count » Sat Jun 29, 2019 6:09 pm

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: 573
Joined: Thu Oct 11, 2018 4:13 pm

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

Postby merlyn » Tue Jul 16, 2019 12:09 pm

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: 1578
Joined: Sat Jun 11, 2016 12:05 am

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

Postby jonetsu » Tue Jul 16, 2019 1:00 pm

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: 573
Joined: Thu Oct 11, 2018 4:13 pm

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

Postby merlyn » Tue Jul 16, 2019 2:51 pm

Why not?

jonetsu
Established Member
Posts: 1578
Joined: Sat Jun 11, 2016 12:05 am

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

Postby jonetsu » Tue Jul 16, 2019 3:18 pm

Why complicate matters if those matters are not an end by themselves ?

merlyn
Established Member
Posts: 573
Joined: Thu Oct 11, 2018 4:13 pm

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

Postby merlyn » Tue Jul 16, 2019 3:30 pm

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: 1578
Joined: Sat Jun 11, 2016 12:05 am

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

Postby jonetsu » Tue Jul 16, 2019 3:41 pm

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."


Return to “KXStudio Discussion”

Who is online

Users browsing this forum: Google [Bot] and 2 guests