LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-14-2014, 12:54 PM   #1
Armenore
LQ Newbie
 
Registered: Jun 2010
Distribution: Slackware64
Posts: 11

Rep: Reputation: Disabled
Firefox HTML5 sound not working


I have no sound when trying to play HTML5 videos, e.g. from Youtube, in Firefox. I'm using Slackware 14.1 and Firefox 30, built with ruario's latest-firefox script, but this happens with the lts Firefox as well. I'm running on an Acer C720 Chromebook. It uses a Haswell sound card. Here's the output of lspci |grep Audio:
Code:
lspci |grep Audio
00:03.0 Audio device: Intel Corporation Device 0a0c (rev 09)
00:1b.0 Audio device: Intel Corporation Lynx Point-LP HD Audio Controller (rev 04)
I have the following .asoundrc that gets my audio to play everywhere else:
Code:
pcm.!default {
  type hw
  card 1
  device 0
}

ctl.!default {
  type hw
  card 1
}
Audio works in VLC and mplayer, but not in Firefox or Seamonkey. Audio works in them with Flash instead of HTML5, but I'd rather use HTML5. It also works with HTML5 video in Chromium. I noticed that Firefox 30 uses less CPU for me than Chromium though, so I'm trying to move back to Firefox.

Running from a terminal doesn't give me any errors. I have the same gstreamer plugins (the ones that come with Slackware, plus the ffmpeg plugin) installed on here that I have on my other computers with different sound devices, and they play fine, so I'm guessing that HTML5 in the Mozilla browsers isn't respecting my .asoundrc for some reason. I experience this in both XFCE and KDE, though I can't think of why that would matter anyway. Oh, and I plugged it into my TV and audio doesn't play over HDMI either, but I don't care about that.

I feel like I'm leaving something out, but I can't think of what it is. Thanks for any help.
 
Old 06-14-2014, 02:09 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
HTML5, I think, runs through GStreamer's GST plugins. You may want to check and see if you have the proper plugins for it installed.
 
Old 06-14-2014, 02:28 PM   #3
schmatzler
Member
 
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411

Rep: Reputation: 181Reputation: 181
At least for the MP3 codec in HTML5 you need gst-plugins-ugly.

I simply installed all of the gst-plugins (base/good/bad/ugly) to cover all possible audio and video codecs in Firefox.
 
Old 06-14-2014, 02:59 PM   #4
Armenore
LQ Newbie
 
Registered: Jun 2010
Distribution: Slackware64
Posts: 11

Original Poster
Rep: Reputation: Disabled
I tried installing all of the gst-plugins and sound still doesn't work. Since I'm not getting any errors, is there a way to make Firefox be more verbose? Can I set it to use phonon or something other than gstreamer directly?
 
Old 06-14-2014, 03:07 PM   #5
schmatzler
Member
 
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411

Rep: Reputation: 181Reputation: 181
Quote:
Originally Posted by Armenore View Post
I tried installing all of the gst-plugins and sound still doesn't work. Since I'm not getting any errors, is there a way to make Firefox be more verbose? Can I set it to use phonon or something other than gstreamer directly?
Firefox cannot utilize Phonon. But you can build Firefox with --enable-debug, it prints out all gstreamer errors then.
 
Old 06-14-2014, 10:27 PM   #6
Armenore
LQ Newbie
 
Registered: Jun 2010
Distribution: Slackware64
Posts: 11

Original Poster
Rep: Reputation: Disabled
I got it working. Firefox built with --enable-debug returned no gstreamer errors, so I figured my problem was with Firefox selecting a sound card. I found out that apparently Firefox's HTML5 video player ignores .asoundrc and can only use card 0, so I made /etc/modprobe.d/snd-hda-intel.conf and this worked
Code:
options snd_hda_intel index=1,0
Then I removed my .asoundrc and now I have audio in Firefox. That's the first time I've had a .asoundrc file not work for me.
 
Old 06-14-2014, 10:54 PM   #7
orasis
Member
 
Registered: Mar 2008
Distribution: Slackware, Free-BSD
Posts: 53

Rep: Reputation: 34
I had the same problem. I just removed my sound-card. I only use the on-board/headphone jack anyways.
 
Old 06-14-2014, 11:26 PM   #8
schmatzler
Member
 
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411

Rep: Reputation: 181Reputation: 181
Quote:
Originally Posted by Armenore View Post
I found out that apparently Firefox's HTML5 video player ignores .asoundrc
Nope it doesn't. In fact I am listening to a Youtube music video on my USB soundcard right now (with this .asoundrc). But I'm glad that you solved it.
 
Old 11-24-2014, 06:31 PM   #9
Braqoon
LQ Newbie
 
Registered: Oct 2006
Location: UK
Distribution: Slackware
Posts: 20

Rep: Reputation: 1
Quote:
Originally Posted by Armenore View Post
I got it working. Firefox built with --enable-debug returned no gstreamer errors, so I figured my problem was with Firefox selecting a sound card. I found out that apparently Firefox's HTML5 video player ignores .asoundrc and can only use card 0, so I made /etc/modprobe.d/snd-hda-intel.conf and this worked
Code:
options snd_hda_intel index=1,0
Then I removed my .asoundrc and now I have audio in Firefox. That's the first time I've had a .asoundrc file not work for me.
This worked for me very nicely on HP Elitebook 840 G1. ALSA recognizes 3 sound cards, and the proper (not hdmi) is marked as third by default.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No sound in HTML5(and HTML5 on Youtube) Hoff123 Linux - General 3 09-19-2020 07:46 AM
slackware xfinity html5 and firefox wufo Slackware 2 01-20-2014 03:08 AM
[SOLVED] Firefox 4 in Slackware 12.2 and HTML5 video problem mycinka Slackware 1 03-23-2011 08:52 AM
LXer: 15 HTML5 Demos Showcasing Prowess of HTML5 Over Adobe Flash LXer Syndicated Linux News 0 08-14-2010 02:42 PM
Video sound not working in Firefox? Here's a solution andy_g_gray Linux - Newbie 2 09-13-2008 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration