You are not logged in.

#1 2014-09-05 09:38:12

DKOIman
Member
Registered: 2014-09-05
Posts: 5

[SOLVED] Firefox: no sound for HTML5, yet Flash works well

Hello.
I have a fresh installation of the arch distro and I am facing a sound problem with firefox. Flash sounds work perfectly, yet I can't make HTML5 to sound. It works in Chromium(perfectly) and Opera(with lags).

gst and gstream plugins are installed

[root@DKOI_LAP ~]# pacman -Qs gst
local/gst-libav 1.4.1-1
    Gstreamer libav Plugin
local/gst-plugins-bad 1.4.1-1
    GStreamer Multimedia Framework Bad Plugins
local/gst-plugins-base 1.4.1-1
    GStreamer Multimedia Framework Base Plugins
local/gst-plugins-base-libs 1.4.1-1
    GStreamer Multimedia Framework Base Plugin libraries
local/gst-plugins-good 1.4.1-1
    GStreamer Multimedia Framework Good Plugins
local/gst-plugins-ugly 1.4.1-1
    GStreamer Multimedia Framework Ugly Plugins
local/gstreamer 1.4.1-1
    GStreamer Multimedia Framework
local/gstreamer0.10 0.10.36-4
    GStreamer Multimedia Framework
local/gstreamer0.10-bad 0.10.23-8
    GStreamer Multimedia Framework Bad Plugin libraries (gst-plugins-bad)
local/gstreamer0.10-bad-plugins 0.10.23-8 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Bad Plugins (gst-plugins-bad)
local/gstreamer0.10-base 0.10.36-3
    GStreamer Multimedia Framework Base plugin libraries
local/gstreamer0.10-base-plugins 0.10.36-3 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Base Plugins (gst-plugins-base)
local/gstreamer0.10-ffmpeg 0.10.13-2 (gstreamer0.10-plugins)
    Gstreamer FFMpeg Plugin
local/gstreamer0.10-good 0.10.31-6
    GStreamer Multimedia Framework Good plugin libraries
local/gstreamer0.10-good-plugins 0.10.31-6 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Good Plugins (gst-plugins-good)
local/gstreamer0.10-ugly 0.10.19-12
    GStreamer Multimedia Framework Ugly plugin libraries
local/gstreamer0.10-ugly-plugins 0.10.19-12 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Ugly Plugins (gst-plugins-ugly)
local/gstreamer0.10-vaapi 0.5.9-1
    GStreamer Multimedia Framework VA Plugins
[root@DKOI_LAP ~]# pacman -Qs gstreamer
local/gst-libav 1.4.1-1
    Gstreamer libav Plugin
local/gst-plugins-bad 1.4.1-1
    GStreamer Multimedia Framework Bad Plugins
local/gst-plugins-base 1.4.1-1
    GStreamer Multimedia Framework Base Plugins
local/gst-plugins-base-libs 1.4.1-1
    GStreamer Multimedia Framework Base Plugin libraries
local/gst-plugins-good 1.4.1-1
    GStreamer Multimedia Framework Good Plugins
local/gst-plugins-ugly 1.4.1-1
    GStreamer Multimedia Framework Ugly Plugins
local/gstreamer 1.4.1-1
    GStreamer Multimedia Framework
local/gstreamer0.10 0.10.36-4
    GStreamer Multimedia Framework
local/gstreamer0.10-bad 0.10.23-8
    GStreamer Multimedia Framework Bad Plugin libraries (gst-plugins-bad)
local/gstreamer0.10-bad-plugins 0.10.23-8 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Bad Plugins (gst-plugins-bad)
local/gstreamer0.10-base 0.10.36-3
    GStreamer Multimedia Framework Base plugin libraries
local/gstreamer0.10-base-plugins 0.10.36-3 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Base Plugins (gst-plugins-base)
local/gstreamer0.10-ffmpeg 0.10.13-2 (gstreamer0.10-plugins)
    Gstreamer FFMpeg Plugin
local/gstreamer0.10-good 0.10.31-6
    GStreamer Multimedia Framework Good plugin libraries
local/gstreamer0.10-good-plugins 0.10.31-6 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Good Plugins (gst-plugins-good)
local/gstreamer0.10-ugly 0.10.19-12
    GStreamer Multimedia Framework Ugly plugin libraries
local/gstreamer0.10-ugly-plugins 0.10.19-12 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Ugly Plugins (gst-plugins-ugly)
local/gstreamer0.10-vaapi 0.5.9-1
    GStreamer Multimedia Framework VA Plugins

~/.asoundrc and /etc/sasound.conf contain

pcm.pulse {
  type hw
  card 1
}
ctl.pulse {
  type hw
  card 1
}
pcm.!default {
  type hw
  card 1
}
ctl.!default {
  type hw
  card 1
}

I would apreciate any ideas how to make HTML5 working in ff as I don't want to change the browser..

Last edited by DKOIman (2014-09-05 12:05:50)

Offline

#2 2014-09-05 10:17:56

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] Firefox: no sound for HTML5, yet Flash works well

 Use [⁣code][⁣/code] tags to mark output of a command or scripts. Please correct your post.
 How did you end up with a default installation with those asound files? Why use them both globally and as per user basis? Since you apparently use pulsueaudio, delete both ~/.asoundrc and /etc/asound.conf, install pulseaudio-alsa package and use defaults.pcm.card node for setting the default sound card with alsa configuration or better yet, use modprobe as suggested by alsa wiki, only skip the vid and pid parameters.

Edit: Typos.

Last edited by emeres (2014-09-05 10:26:07)

Offline

#3 2014-09-05 10:28:48

DKOIman
Member
Registered: 2014-09-05
Posts: 5

Re: [SOLVED] Firefox: no sound for HTML5, yet Flash works well

No, I use ALSA, not pulseaudio. Two of that files is a try to fix everything up. I use this configuration because I have

[dkoi@DKOI_LAP ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC663 Analog [ALC663 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 1: ALC663 Digital [ALC663 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

But HDMI appears not to work (no controls in alsa mixer -S/PDIFs only, no sound via aplay/speaker-test), so I use PCH instead. And everything works but HTML5 sounds in FF

Offline

#4 2014-09-05 10:37:53

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] Firefox: no sound for HTML5, yet Flash works well

Do what I suggested, only skip pusleaudio-alsa pacakge and search for my posts with terms like 'hdmi' 'default' 'device'. You will find the explanation for this behaviour.

Last edited by emeres (2014-09-05 10:38:30)

Offline

#5 2014-09-05 11:46:13

DKOIman
Member
Registered: 2014-09-05
Posts: 5

Re: [SOLVED] Firefox: no sound for HTML5, yet Flash works well

It works! Thanks a lot! How to mark the topic "Solved"?

Offline

#6 2014-09-05 11:54:09

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] Firefox: no sound for HTML5, yet Flash works well

https://wiki.archlinux.org/index.php/Fo … ow_to_Post

Edit: You are welcome, but which approach did you use? Defaults node or modprobe?

Last edited by emeres (2014-09-05 11:55:09)

Offline

#7 2014-09-05 12:05:06

DKOIman
Member
Registered: 2014-09-05
Posts: 5

Re: [SOLVED] Firefox: no sound for HTML5, yet Flash works well

I setted my modprobe to load the PCH device first (you adviced to skip vid and pid, yet I found it useful) and everything started to work.

[dkoi@DKOI_LAP ~]$ lspci -nn | grep Audio
00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)
00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 05)
#/etc/modprobe.d/modprobe.conf
options snd_hda_intel index=0 vid=8086 pid=8c20
options snd_hda_intel index=1 vid=8086 pid=0c0c

Offline

#8 2014-09-05 12:12:44

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] Firefox: no sound for HTML5, yet Flash works well

 My bad, I should have been more specific, as I wrote before I am going to change that whole part of the wiki, soon. What you should have used is:

options snd_hda_intel index=1,0

 It works the same way in the end, because the second line overwrites the first, but it is still incorrect. Vid and pid parameters are ignored, look at 'dmesg | grep hda'. Here is partial explanation and if you search my posts for 'vid' 'pid' 'Gusar', you will find the reason, why the above is incorrect. The discussion starts here.

Edit: Added reference and clarification.

Last edited by emeres (2014-09-05 12:22:09)

Offline

#9 2014-09-05 12:53:38

DKOIman
Member
Registered: 2014-09-05
Posts: 5

Re: [SOLVED] Firefox: no sound for HTML5, yet Flash works well

Yes, it works, too. Thanks again.

options snd_hda_intel index=1

But having read Gusar's posts it seems rather a hack than a designed solution. It is funny.

Last edited by DKOIman (2014-09-05 12:54:55)

Offline

#10 2014-09-05 13:13:51

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] Firefox: no sound for HTML5, yet Flash works well

 No, this is the intended way, since snd-hda-intel is pretty common. I would appreciate it, if you would use both index values. Should you or other users have additional sound cards, for example another hdmi card from another gpu, this may result in setting one of the other cards as the default one.

options snd_hda_intel index=1,0 # Correct
options snd_hda_intel index=1 # Works, but may have complications on certain setups

Offline

Board footer

Powered by FluxBB