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