Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No audio for HTML5 in firefox
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
CPUFan
n00b
n00b


Joined: 21 May 2015
Posts: 8

PostPosted: Sat Aug 15, 2015 3:13 pm    Post subject: No audio for HTML5 in firefox Reply with quote

Hi,

firefox (v 38.1) plays HTML5 videos without sound. Other sound apps (including flash player) work like a charm. It's probably irrelevant, but I do not have compiled snd_hda_intel.

Here is what I tried (and what did not help)

  1. I double checked that /etc/asound.conf uses the correct sound card (however, other audio apps work, so this is probably not the problem)
  2. Like suggested here, I tried to use puls in /etc/asound.conf.
  3. Another thread suggested to install gst-plugins-meta and gst-plugins-ffmpeg.

For all tests, I restarted firefox and /etc/init.d/alsasound, and I also tried new firefox prefixes.

fuser seems to indicate that firefox does not use ALSA at all while playing html5!
Code:
$ fuser -fv /dev/snd/* /dev/dsp*
                     BEN.        PID ZUGR.  BEFEHL
/dev/snd/controlC0:  johannes   2601 F.... kded4
                     johannes   2829 F.... kmix
/dev/snd/pcmC0D0p:   johannes   6939 F...m mplayer
                     johannes  26867 F...m steam

So why doesn't it?

Many thanks on advance.
- Johannes
Back to top
View user's profile Send private message
trippels
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2010
Posts: 99
Location: Berlin

PostPosted: Sat Aug 15, 2015 3:35 pm    Post subject: Reply with quote

It's an old Firefox bug that never got fixed:

https://bugzilla.mozilla.org/show_bug.cgi?id=883518

I recommend Chromium. It has no sound issues even with a custom asound.conf.
Back to top
View user's profile Send private message
charles17
Veteran
Veteran


Joined: 02 Mar 2008
Posts: 1067

PostPosted: Sat Aug 15, 2015 3:43 pm    Post subject: Re: No audio for HTML5 in firefox Reply with quote

CPUFan wrote:
Hi,

firefox (v 38.1) plays HTML5 videos without sound. Other sound apps (including flash player) work like a charm. It's probably irrelevant, but I do not have compiled snd_hda_intel.

Here is what I tried (and what did not help)

  1. I double checked that /etc/asound.conf uses the correct sound card (however, other audio apps work, so this is probably not the problem)
  2. Like suggested here, I tried to use puls in /etc/asound.conf.
  3. Another thread suggested to install gst-plugins-meta and gst-plugins-ffmpeg.

What about media.mediasource.enabled?
Back to top
View user's profile Send private message
CPUFan
n00b
n00b


Joined: 21 May 2015
Posts: 8

PostPosted: Sat Aug 15, 2015 3:46 pm    Post subject: Reply with quote

trippels wrote:
It's an old Firefox bug that never got fixed


I used openSuSE before 2 months, and it worked there. So why did it work there?
Back to top
View user's profile Send private message
CPUFan
n00b
n00b


Joined: 21 May 2015
Posts: 8

PostPosted: Sat Aug 15, 2015 3:49 pm    Post subject: Re: No audio for HTML5 in firefox Reply with quote

charles17 wrote:
What about media.mediasource.enabled?

It's enabled, however, I can play HTML5 videos, it's just that there's no sound.
Back to top
View user's profile Send private message
tw04l124
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 2362
Location: A t z e l, lower austria

PostPosted: Sat Aug 15, 2015 5:10 pm    Post subject: Reply with quote

Code:
[U] www-client/firefox-bin
     Available versions:  38.1.1^ms (~)38.2.0^ms (~)40.0.2^ms {selinux startup-notification LINGUAS="af ar as ast be bg bn_BD bn_IN br bs ca cs cy da de el en_GB en_ZA eo es_AR es_CL es_ES es_MX et eu fa fi fr fy_NL ga_IE gd gl gu_IN he hi_IN hr hu hy_AM id is it ja kk kn ko lt lv mai mk ml mr nb_NO nl nn_NO or pa_IN pl pt_BR pt_PT rm ro ru si sk sl son sq sr sv_SE ta te tr uk vi zh_CN zh_TW"}
     Installed versions:  39.0.3^ms(21:06:05 08.08.2015)(startup-notification -selinux LINGUAS="-af -ar -as -ast -be -bg -bn_BD -bn_IN -br -bs -ca -cs -cy -da -de -el -en_GB -en_ZA -eo -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy_NL -ga_IE -gd -gl -gu_IN -he -hi_IN -hr -hu -hy_AM -id -is -it -ja -kk -kn -ko -lt -lv -mai -mk -ml -mr -nb_NO -nl -nn_NO -or -pa_IN -pl -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv_SE -ta -te -tr -uk -vi -zh_CN -zh_TW")
     Homepage:            http://www.mozilla.com/firefox
     Description:         Firefox Web Browser


why dont use newest version? any reason?

I am sure when you go http://www.mozilla.com/firefox the page will tell you to download 40 version or am i wrong?


Some packages should be unmasked on any box, and thats firefox too.


Basically you ask why something does not work on an outdated version...

And than you compare apples with banana.

you never know which version the other linx distro uses with which patches on teh single packages ...
Audio is quite complicated => starts with hardware + kernel + userspace + audio server + desctop + application (and i am sure i missed something =)
Back to top
View user's profile Send private message
ceric35
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2006
Posts: 104

PostPosted: Sun Aug 16, 2015 4:57 pm    Post subject: Reply with quote

Same bug for me, and i can confirm that it's related to bug this bug with multiple audio cards.

I fixed it following this post.

It changed complicated file from:
Code:
pcm.!default {
type hw
card 1
}

ctl.!default {
type hw
card 1
}

pcm.headset {
     type hw
     card 1
}
ctl.headset {
     type hw
     card 1
}


to
Code:
defaults.pcm.card 1
defaults.ctl.card 1


And youtube is working again in firefox \o/
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 4883

PostPosted: Mon Aug 17, 2015 9:58 am    Post subject: Reply with quote

https://wiki.gentoo.org/wiki/ALSA#HTML5_does_not_play_in_the_Firefox_browser
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum