Gentoo Archives: gentoo-user

From: Daniel Campbell <zlg@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Firefox 49.0 & Youtube....Video: Yes - Audio: No...
Date: Tue, 29 Nov 2016 07:51:38
Message-Id: 5df9e3f5-b3fb-6290-3922-dbe2e1e3542d@gentoo.org
In Reply to: Re: [gentoo-user] Firefox 49.0 & Youtube....Video: Yes - Audio: No... by Miroslav Rovis
1 On 11/28/2016 08:30 AM, Miroslav Rovis wrote:
2 > I just got Firefox to play HTML5 pages (and likely other stuff as well),
3 > with audio working, my system.
4 >
5 > But let me first vent my frustration for why it was so hard...
6 >
7 > On 161120-20:46+0100, Miroslav Rovis wrote:
8 >> Hi Daniel!
9 >>
10 > ...
11 >> On 161120-00:10-0800, Daniel Campbell wrote:
12 >>> On 11/19/2016 01:59 AM, Miroslav Rovis wrote:
13 >>>> On 161119-10:22+0100, Miroslav Rovis wrote:
14 > ...
15 >
16 > It took me such long time, well, yes, because ALSA had advanced and I
17 > kept the old config, simply because it worked with all apps (but not the
18 > Firefox, more below...)...
19 >
20 > What other conclusion could a not very advanced user get but this one
21 > below?:
22 >> Just in the meantime, a (hopefully) easier question: doesn't this bug
23 >> below mean harder to get non-pulse audio to work with Firefox:
24 >>>>>>>>> Mozilla went pulse all the way:
25 >>>>>>>>> Require PulseAudio on Linux
26 >>>>>>>>> https://bugzilla.mozilla.org/show_bug.cgi?id=1247056
27 >>>>>>>>> See also:
28 >>>>>>>>> Firefox nightly requires Pulse Audio
29 >>>>>>>>> http://forums.debian.net/viewtopic.php?f=20&t=130028
30 >> and if the other info that the dev at alsa-user gave me:
31 >> http://www.mail-archive.com/alsa-user@×××××××××××××××××.net/msg31929.html
32 >> where he gave the link to:
33 >> html5 in ff through jack
34 >> http://lists.linuxaudio.org/pipermail/linux-audio-user/2016-June/105188.html
35 >
36 > And I've just delivered on this promise of mine:
37 >> if that means the info in that bug page is incomplte in the sense it is
38 >> misleading to users who want to stick with sans-pulse alsa... then once
39 >> I figure out how to do it, I'll post there for other users to know...
40 > Pls. read my comment of just some half hour ago:
41 > https://bugzilla.mozilla.org/show_bug.cgi?id=1247056#c171
42 >
43 >> [ I'll try all of your suggestions ... as I'm confident again there must
44 >> be a way to fix audio in FF without pulse... ] just as the other dev
45 >> said, that it is there, only for Archlinux, at:
46 >> http://www.mail-archive.com/alsa-user@×××××××××××××××××.net/msg31927.html
47 > How on Earth would a non-advanced user know after reading that Mozilla
48 > bug, that she/he don't need to get that another layer for suspicious
49 > purposes onto their fine ALSA?
50 >
51 > Now I'll explain what was the reason it did not work (because I promised
52 > I would ;-) and you were kind to offer help)...
53 >
54 > On 161120-00:10-0800, Daniel Campbell wrote:
55 >> On 11/19/2016 01:59 AM, Miroslav Rovis wrote:
56 >>> On 161119-10:22+0100, Miroslav Rovis wrote:
57 >>>> On 161119-00:33-0800, Daniel Campbell wrote:
58 >>> ...
59 >>>>>> And there is a question/query/my-asking-for-advice further below.
60 >>> ...
61 > ...
62 > No, jack was not needed, but according to:
63 > https://wiki.gentoo.org/wiki/ALSA#JACK_audio_connection_kit
64 > is far superior to pulseaudio, just to make clear. The below wasn't
65 > needed for me to solve my issue.
66 >>>>>> [linuxaudio.org] html5 in ff through jack
67 >>>>>> http://lists.linuxaudio.org/pipermail/linux-audio-user/2016-June/thread.html#105188
68 >>> ...
69 >
70 > This was one of two issues that needed to be fixed/put in place/corrected:
71 >>> Also:
72 >>>>> defaults.ctl.card x;
73 >>>>> defaults.pcm.card x;
74 >
75 > Yeah! And what I had, the below...:
76 >>> I every do often change my default card... I have only these two lines
77 >>> (if I grep out all that is commented out) in my:
78 >>> $ cat ~/.asoundrc | grep -v '^#'
79 > This:
80 >>> pcm.!default { type hw card 1 }
81 >>> ctl.!default { type hw card 1 }
82 > was wrong!
83 > (that's old config, maybe 2-3 or more years old. It just worked all the
84 > time, who cared... MPlayer, Vlc, the old cinch cables --the RCA IIRC--
85 > could get the recordings from old/new equipment... So who cared...)
86 >
87 > So one of my two issues was exactly this one (and the change to make):
88 > https://wiki.gentoo.org/wiki/ALSA#Firefox_and_YouTube_have_no_audio_with_custom_.asoundrc_but_other_apps_do
89 >
90 > And after making the other change first, which is simply what Gentoo Firefox
91 > Wiki says at:
92 > https://wiki.gentoo.org/wiki/Firefox#Lack_of_sound
93 > so after:
94 > # emerge gst-plugins-meta:1.0
95 >
96 > and changing my ~/.asoundrc to:
97 >
98 > defaults.ctl.card 0
99 > defaults.pcm.card 0
100 >
101 > (or it will be
102 >
103 > defaults.ctl.card 1
104 > defaults.pcm.card 1
105 >
106 > sometimes, in my case)
107 >
108 > only then did Firefox finally start to play both video and audio when I
109 > opened HTML5 pages.
110 >
111 > A quick test was this page (but on my offline Apache, saying it because
112 > I need to propagate the change to this clone that I access online with,
113 > I did the changes on my maste machine, so if all keeps well when into
114 > clone, I won't need to inform of some functionality still not there)
115 > (doing the one-liner below worked):
116 >
117 > $ firefox
118 > http://www.CroatiaFidelis.hr/foss/cenz/iskon-t-com-miro-rovis/150320-17h_T-com_davi_ugovorima.webm
119 >
120 > (that's actually a one-liner, only wrapped in mail)
121 >
122 >>>>> Hope this helps.
123 >>>>>
124 >>>>> [0]: https://wiki.gentoo.org/wiki/ALSA#Configuration
125 >>>>> [1]:
126 >>>>> https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#Set_the_default_sound_card
127 >>> It appears to be basically the same info as in your kind explanation...
128 >>>
129 >>> But this is now getting way more than 15 minutes... I will try to find
130 >>> more time, still, but not hours, for this issue...
131 >>>
132 >>>> I don't think I even need to be back to report here if this just works
133 >>> No, it doesn't. And the issue is not solved yet...
134 >>>
135 >>> Regards!
136 >>>
137 >> Hmm, that's strange... Your config looks sane to me (though specifying
138 >> something as 'type hw' can interfere with mixing sometimes; an empty or
139 >> non-existent ~/.asoundrc should default to dmix internally. I doubt this
140 >> is your problem though since it works on everything else)
141 >>
142 >> Here's an idea: try using the ALSA_CARD environment variable and run
143 >> Firefox with it. All you'll need is the name of your card. So if your
144 >> card is named "Onboard", you'd issue this:
145 >
146 > This didn't help in my case:
147 >> ALSA_CARD="Onboard" firefox
148 >
149 > No need to file a bug:
150 >> If this persists as a problem for you, it might be worth opening a bug
151 >> for it, as what I've shared is as far as my personal experience goes and
152 >> other people may be experiencing the same issue. You'll need to provide
153 >> 'emerge --info' and possibly 'emerge -pv firefox' output if you choose
154 >> to report a bug.
155 >>
156 >> Let me know how it goes.
157 > I just did ;-) !
158 >
159 > Thanks again for caring! I like our devs, I feel fine using Gentoo. Can
160 > live without systemd, can even live without dbus! That's not what you
161 > get easily at all in all the distros!
162 >
163 It's my pleasure. I only run PA and dbus for OBS Studio. One day this
164 system will be back to vanilla ALSA with apulse to fill in any gaps. :)
165
166 I'm glad you were able to find a solution. Audio is one of those things
167 that's almost unique to every system and problems in one system (even
168 with the same hardware) may not match the other, so I chose to give you
169 a handful of options to try, since it's not always clear which solution
170 is best.
171
172 If you ever get sick of manually updating the card numbers, you could
173 probably write a script for it.
174
175 Happy browsing,
176
177 ~zlg
178 --
179 Daniel Campbell - Gentoo Developer
180 OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net
181 fpr: AE03 9064 AE00 053C 270C 1DE4 6F7A 9091 1EA0 55D6

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Firefox 49.0 & Youtube....Video: Yes - Audio: No... Miroslav Rovis <miro.rovis@××××××××××××××.hr>