Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #223151 > unrolled thread

Firefox over JACK in Debian Testing

Started byriveravaldez <riveravaldezmail@gmail.com>
First post2020-06-07 05:30 +0200
Last post2020-10-02 10:00 +0200
Articles 7 — 5 participants

Back to article view | Back to linux.debian.user


Contents

  Firefox over JACK in Debian Testing riveravaldez <riveravaldezmail@gmail.com> - 2020-06-07 05:30 +0200
    Re: Firefox over JACK in Debian Testing <tomas@tuxteam.de> - 2020-06-07 11:10 +0200
    Re: Firefox over JACK in Debian Testing Andrei POPESCU <andreimpopescu@gmail.com> - 2020-06-07 14:50 +0200
    Re: Firefox over JACK in Debian Testing Christopher David Howie <me@chrishowie.com> - 2020-06-08 17:20 +0200
      Re: Firefox over JACK in Debian Testing riveravaldez <riveravaldezmail@gmail.com> - 2020-10-01 18:50 +0200
        Re: Firefox over JACK in Debian Testing Olivier Humbert <trebmuh@tuxfamily.org> - 2020-10-01 23:00 +0200
          Re: Firefox over JACK in Debian Testing riveravaldez <riveravaldezmail@gmail.com> - 2020-10-02 10:00 +0200

#223151 — Firefox over JACK in Debian Testing

Fromriveravaldez <riveravaldezmail@gmail.com>
Date2020-06-07 05:30 +0200
SubjectFirefox over JACK in Debian Testing
Message-ID<AeUat-2PJ-1@gated-at.bofh.it>
Hi, here's the thing:

AFAIK Firefox lacks JACK support (in the sense that you can start JACK
and then Firefox and then, automatically, all I/O audio-ports Firefox
generated, appear as available JACK connections, let's say), even
more: that seems to be a design/development decision - meaning: will
not change.[1]

It's possible to build Firefox with such support - some people do it -
but Mozilla will not do.[2,3]

Is there any Debian package that can serve this purpose?

By other side, I've seen in Arch a different approach: using a JACK
plugin for ALSA and ad hoc configuration file to make kind of a
"bridge" that sends I/O audio through JACK. It works fine.[4]
Is it possible to do something similar in Debian (testing)?

In short, I'm looking for the best way to play I/O Firefox audio
through/over JACK.
Any help to solve this I will thank it very much.

Regards!

[1] https://askubuntu.com/questions/923990/jack-pulseaudio-and-firefox-enable-jack-for-firefox-in-the-near-future
[2] http://www.zamaudio.com/?p=1580
[3] https://bugzilla.mozilla.org/show_bug.cgi?id=783733
[4] https://wiki.archlinux.org/index.php/JACK_Audio_Connection_Kit#Playing_nice_with_ALSA

[toc] | [next] | [standalone]


#223158

From<tomas@tuxteam.de>
Date2020-06-07 11:10 +0200
Message-ID<AeZtw-691-7@gated-at.bofh.it>
In reply to#223151

[Multipart message — attachments visible in raw view] — view raw

On Sun, Jun 07, 2020 at 12:25:30AM -0300, riveravaldez wrote:
> Hi, here's the thing:
> 
> AFAIK Firefox lacks JACK support (in the sense that you can start JACK
> and then Firefox and then, automatically, all I/O audio-ports Firefox
> generated, appear as available JACK connections, let's say), even
> more: that seems to be a design/development decision - meaning: will
> not change.

No idea about JACK, but, FWIW Debian still builds its Firefox with
ALSA enabled [1] (I don't know about the situation in testing, though).

You can find our about your browser's compile config by invoking
about:buildconfig (about:support may be of interest, too).

That said, I never got Firefox to play nice with ALSA. There are many
hints strewn around in the intra tubes, like reducing the syscall
sandbox's security level and things. No idea about whether my fingers
are too fat or whether the non-Pulse audio code in FF has rotted beyond
the point.

In the end, I resorted to apulse (packaged in Debian), which just
pretends to be a pulse lib but then goes and talks directly to
ALSA. Works a charm.

Ugly details on request :-)

Cheers

[1] That's the version I'm referring to:
    firefox-esr/stable,now 68.8.0esr-1~deb10u1 amd64 [installed]

-- tomás

[toc] | [prev] | [next] | [standalone]


#223163

FromAndrei POPESCU <andreimpopescu@gmail.com>
Date2020-06-07 14:50 +0200
Message-ID<Af2Uq-81c-9@gated-at.bofh.it>
In reply to#223151

[Multipart message — attachments visible in raw view] — view raw

On Du, 07 iun 20, 00:25:30, riveravaldez wrote:
> 
> By other side, I've seen in Arch a different approach: using a JACK
> plugin for ALSA and ad hoc configuration file to make kind of a
> "bridge" that sends I/O audio through JACK. It works fine.[4]
> Is it possible to do something similar in Debian (testing)?
...
> [4] https://wiki.archlinux.org/index.php/JACK_Audio_Connection_Kit#Playing_nice_with_ALSA

It should work after some "translation" for Debian, e.g. the package 
names in Arch may not correspond 1:1 to Debian's *binary* package names, 
but are likely to correspond to the Debian *source* package names.

An easy way to find out the Debian binary package name is to look at the 
Tracker page:

https://tracker.debian.org/alsa-plugins

    Binaries: libasound2-plugins


Hope this helps,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

[toc] | [prev] | [next] | [standalone]


#223246

FromChristopher David Howie <me@chrishowie.com>
Date2020-06-08 17:20 +0200
Message-ID<AfrJ7-6cs-1@gated-at.bofh.it>
In reply to#223151
On 6/6/2020 11:25 PM, riveravaldez wrote:
> Hi, here's the thing:
> 
> AFAIK Firefox lacks JACK support (in the sense that you can start
> JACK and then Firefox and then, automatically, all I/O audio-ports
> Firefox generated, appear as available JACK connections, let's say)
> 
> Is there any Debian package that can serve this purpose?
I have a JACK setup that runs all audio through Ardour so I can perform 
compression and EQ either system-wide or per-application.  I accomplish 
this by using pulseaudio.

If JACK is already running when pulseaudio starts, pulseaudio will 
create a single JACK sink and JACK source that redirects audio to/from a 
matching JACK source/sink.

I then use the following script to create additional sinks in PA that 
each have an independent source in JACK:

------------------
#!/bin/sh

exec pactl load-module module-jack-sink \
   client_name=pulse_sink_"$1" \
   connect=no \
   channels=2
------------------

Run like "./make-jack-sink music" which gives me a "music" PA sink 
connected to the "music" JACK source.

You don't automatically get a JACK port per audio stream, but you can 
make as many separate PA sinks as your system can handle and use the PA 
volume control application to switch audio streams between different PA 
sinks (and therefore JACK sources).

Then you can wire everything up on the JACK side, as usual.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers

If you correspond with me on a regular basis, please read this document: 
http://www.chrishowie.com/email-preferences/

PGP fingerprint: 2B7A B280 8B12 21CC 260A DF65 6FCE 505A CF83 38F5

------------------------------------------------------------------------
                     IMPORTANT INFORMATION/DISCLAIMER

This document should be read only by those persons to whom it is 
addressed.  If you have received this message it was obviously addressed 
to you and therefore you can read it.

Additionally, by sending an email to ANY of my addresses or to ANY 
mailing lists to which I am subscribed, whether intentionally or 
accidentally, you are agreeing that I am "the intended recipient," and 
that I may do whatever I wish with the contents of any message received 
from you, unless a pre-existing agreement prohibits me from so doing.

This overrides any disclaimer or statement of confidentiality that may 
be included on your message.

[toc] | [prev] | [next] | [standalone]


#227525

Fromriveravaldez <riveravaldezmail@gmail.com>
Date2020-10-01 18:50 +0200
Message-ID<AV9Wi-7DS-3@gated-at.bofh.it>
In reply to#223246
On 6/8/20, Christopher David Howie <me@chrishowie.com> wrote:
> On 6/6/2020 11:25 PM, riveravaldez wrote:
>> Hi, here's the thing:
>>
>> AFAIK Firefox lacks JACK support (in the sense that you can start
>> JACK and then Firefox and then, automatically, all I/O audio-ports
>> Firefox generated, appear as available JACK connections, let's say)
>>
>> Is there any Debian package that can serve this purpose?
>
> If JACK is already running when pulseaudio starts, pulseaudio will
> create a single JACK sink and JACK source that redirects audio to/from a
> matching JACK source/sink.
>
> I then use the following script to create additional sinks in PA that
> each have an independent source in JACK: (...)

Thanks a lot, Chris, I've finally found the time to try this, and
these are the steps that seems (at least for now) to be working:

0. An installed and functional JACK and PulseAudio.
1. Install package: pulseaudio-module-jack
2. Close anything that requires PA.
3. Kill PA: $ pulseaudio --kill
4. Start JACK (in my case, through qjackctl).
5. Then start Firefox (this should start PA).
6. Then load (as seen in [1]) the source/sink modules[2] to have I/O
audio through PA administered/connected by JACK (these will appear in
its Connections): $ pactl load-module module-jack-sink/source
7. Use JACK as usual.
8. After stop/exit JACK remember to kill/restart PA in order to it to
retake control of Audio Device.

There are other methods (some more complex) there [3] and there [4].

I couldn't find these steps or Chris' explanations neither in [5] nor
in [6]: should it be added?

Let me know what you think.

Thanks a lot to everybody for all your useful and kind help. I had no
idea before this that this was possible and so easily achievable.

Best regards.

[1] https://wiki.debian.org/PulseAudio#Echo_test:_hearing_the_microphone
[2] https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#jackconnectivity
[3] https://github.com/jackaudio/jackaudio.github.com/wiki/WalkThrough_User_PulseOnJack
[4] https://wiki.archlinux.org/index.php/PulseAudio/Examples#PulseAudio_through_JACK
[5] https://wiki.debian.org/PulseAudio
[6] https://wiki.debian.org/JACK

[toc] | [prev] | [next] | [standalone]


#227529

FromOlivier Humbert <trebmuh@tuxfamily.org>
Date2020-10-01 23:00 +0200
Message-ID<AVdQd-1rV-1@gated-at.bofh.it>
In reply to#227525
> On 6/6/2020 11:25 PM, riveravaldez wrote:

> AFAIK Firefox lacks JACK support (in the sense that you can start
> JACK and then Firefox and then, automatically, all I/O audio-ports
> Firefox generated, appear as available JACK connections, let's say)

Join in if you like to do so 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844688 .

Cheers,
Olivier

[toc] | [prev] | [next] | [standalone]


#227538

Fromriveravaldez <riveravaldezmail@gmail.com>
Date2020-10-02 10:00 +0200
Message-ID<AVo8V-8eB-1@gated-at.bofh.it>
In reply to#227529
On 10/1/20, Olivier Humbert <trebmuh@tuxfamily.org> wrote:
>> On 6/6/2020 11:25 PM, riveravaldez wrote:
>
>> AFAIK Firefox lacks JACK support (in the sense that you can start
>> JACK and then Firefox and then, automatically, all I/O audio-ports
>> Firefox generated, appear as available JACK connections, let's say)
>
> Join in if you like to do so
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844688 .
>
> Cheers,
> Olivier

Thanks, Olivier.
That seems like a 'requested feature', but I'm failing to see what the
issue is (there's a repetition of "please do", but not an elaboration
on the matter).
I guess it would be useful to know at least what's the reason why
official firefox-esr package is not being compiled with JACK support
enabled.
Thanks again,
cheers.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web