LinuxQuestions.org
Review your favorite Linux distribution.
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 02-02-2015, 05:03 PM   #1
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 442

Rep: Reputation: 196Reputation: 196
No sound in Firefox on sites like Vimeo under Slackware current 64bit.


Possibly html5 related, but I am quite ignorant about the whole thing.

Sound works fine in flash applications and pretty much everything else except, appparently, html5 players.

I have the following gstreamer packages installed:

gst-ffmpeg-0.10.13-x86_64-2ponce
gst-plugins-bad-0.10.23-x86_64-3ponce
gst-plugins-base-0.10.36-x86_64-2
gst-plugins-base-compat32-0.10.36-x86_64-2compat32
gst-plugins-good-0.10.31-x86_64-5
gst-plugins-good-compat32-0.10.31-x86_64-5compat32
gst-plugins-ugly-0.10.19-x86_64-2ponce
gst-python-0.10.22-x86_64-2ponce
gst1-libav-1.4.1-x86_64-1ponce
gst1-plugins-bad-1.4.1-x86_64-1ponce
gst1-plugins-base-1.4.1-x86_64-1ponce
gst1-plugins-ugly-1.4.1-x86_64-1ponce
gstreamer-0.10.36-x86_64-2
gstreamer-compat32-0.10.36-x86_64-2compat32
gstreamer1-1.4.1-x86_64-1ponce
gstreamermm-0.10.10.2-x86_64-1ponce
phonon-gstreamer-4.6.3-x86_64-1

I am listing these because on my search for a solution to this, which has been ongoing for several months now, gstreamer plugins have been mentioned in various threads.

I can't get it to work myself and the general internet searches haven't helped either, so I'm finally asking right here.

Any ideas how to fix this?
An example video:
http://vimeo.com/105441286

I have tried switching the HD option on and off, no change.
Videos play fine in mplayer. They do not play with sound in the browser.
Firefox is at version 35.0.1 but the problem has been orccuring since at least half a year, perhaps longer.

Fix:

Faulty asoundrc, renaming it to prevent it from loading fixed the issue.

Last edited by Geist; 02-03-2015 at 02:18 AM. Reason: Solved
 
Old 02-02-2015, 05:31 PM   #2
schmatzler
Member
 
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411

Rep: Reputation: 181Reputation: 181
I've ended up building my own Firefox version, linked against gstreamer 1.x. Your video works fine with that, including sound.

The gstreamer packages in Slackware are very old and end-of-life, according to the official website. Support is much better with newer libraries. Just installing gstreamer1 like you did won't work, Firefox has to be rebuilt to support it, too.

I've written a blogpost about that a while ago:
http://schmatzler.de/en/2014/05/26/y...lash-on-linux/

Packages for -current and SlackBuilds for Firefox and gstreamer are in my signature.

Edit: It also looks like gst1-plugins-good is missing in your setup.

Last edited by schmatzler; 02-02-2015 at 05:38 PM.
 
1 members found this post helpful.
Old 02-02-2015, 06:08 PM   #3
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
do you have a .asoundrc file ?

since i wont come again today
gst is picky about outputs, so just mv .asoundrc .asoundrc_bak
 
Old 02-02-2015, 11:50 PM   #4
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 442

Original Poster
Rep: Reputation: 196Reputation: 196
Quote:
Originally Posted by schmatzler View Post
I've ended up building my own Firefox version, linked against gstreamer 1.x. Your video works fine with that, including sound.

The gstreamer packages in Slackware are very old and end-of-life, according to the official website. Support is much better with newer libraries. Just installing gstreamer1 like you did won't work, Firefox has to be rebuilt to support it, too.

I've written a blogpost about that a while ago:
http://schmatzler.de/en/2014/05/26/y...lash-on-linux/

Packages for -current and SlackBuilds for Firefox and gstreamer are in my signature.

Edit: It also looks like gst1-plugins-good is missing in your setup.
Thanks for pointing out the missing plugin package, but, since you seem to be right about having to actually link FF against it, it didn't do anything.

Before I compile FF, though, let me ask you about the ready built packages you are linking to in your signature.

Is it intentional that there is a '1' after the name of each gstreamer package?

gst-libav1-1.4.4-x86_64-_banpack.txz
gst-plugins-base1-1.4.4-x86_64-_banpack.txz
gst-plugins-ugly1-1.4.4-x86_64-_banpack.txz
gst-plugins-bad1-1.4.4-x86_64-2_banpack.txz
gst-plugins-good1-1.4.4-x86_64-_banpack.txz
gstreamer1-1.4.4-x86_64-_banpack.txz

I'm asking because if I were to simply upgrade the packages I have with yours
then gstreamer1 would be replaced by yours while the other gst (as in,
gst-not-1) packages would not be updated since the naming convention is
'wrong'

Is this all the 'base' version of gstreamer, aka not gstreamer1? I don't want
to overwrite the real gstreamer1 with these packages, in case they're all the
non-1 version, but due to the 1-after-the-package-name would make sense in the
case of gstreamer/gstreamer1.

Sorry if I'm expressing myself in a confusing way, so here a tl;dr

Are these packages gstreamer or gstreamer1?
 
Old 02-03-2015, 12:19 AM   #5
schmatzler
Member
 
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411

Rep: Reputation: 181Reputation: 181
My packages are gstreamer 1.4, but they are named differently to the ones included in Slackware or on SBo, because they get installed into /opt. The Firefox SlackBuild also links against gstreamer in /opt. I did that so nothing else will interfere and I use the same gstreamer packages for Banshee, too.
 
Old 02-03-2015, 01:37 AM   #6
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by Geist View Post
[snip]
Any ideas how to fix this?
An example video:
http://vimeo.com/105441286

I have tried switching the HD option on and off, no change.
Videos play fine in mplayer. They do not play with sound in the browser.
Firefox is at version 35.0.1 but the problem has been orccuring since at least half a year, perhaps longer.
The linked vimeo video "just worked" (pix + sound on firefox) on -current here. Nothing particularly non standard in the system. Here are my gst related packages - they were already installed:
gst-ffmpeg-0.10.13-x86_64-2_uqv
gst-plugins-base-0.10.36-x86_64-2
gst-plugins-good-0.10.31-x86_64-5
gst1-plugins-bad-1.4.1-x86_64-1_uqv
gst1-plugins-base-1.4.1-x86_64-1_uqv
gstreamer-0.10.36-x86_64-2
gstreamer1-1.4.1-x86_64-1_uqv
phonon-gstreamer-4.6.3-x86_64-1

I use pulseaudio - not sure if that's relevant ...

chris
 
Old 02-03-2015, 01:57 AM   #7
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 900

Rep: Reputation: 153Reputation: 153
Hi Geist

Can you answer the question as to whether you have an .asoundrc file in your home directory. If you have can you post it here.

Also if possible can you post the results of
Code:
aplay -l
Alex
 
Old 02-03-2015, 02:17 AM   #8
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 442

Original Poster
Rep: Reputation: 196Reputation: 196
@schmatzler and everyone suggesting to work with the asoundrc:

Well, after renaming mine so it wouldn't load anymore fixed it without needing anything recompiled, etc.

Odd, too. I have this really crappy headphone amplifier/DAC combo, the FiiO E10, and due to its cheap components going from silence to sounds playing the chip sometimes fails to play the first few milliseconds of whichever sound is playing.

The only fix I managed to conjure up two years ago was to try and force 96khz playback for everything. It fixed 90% of all regular problems and fiddling with mplayer configs and co things were peachy for pretty mcuh everything except some system notification sounds.

All seems fine now, however, so far.

I'll mark this thread as solved and if I get any sound troubles in general then I'll make a thread for that separately.

Thank you all for your time.
 
Old 02-03-2015, 04:43 AM   #9
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
.asoundrc is not faulty, gstreamer is
and you'r welcome
 
Old 01-03-2016, 05:49 PM   #10
rmrichesjr
LQ Newbie
 
Registered: Jan 2016
Posts: 1

Rep: Reputation: Disabled
In case it might be useful to someone still interested in this thread:

On my Debian 7/Wheezy system, one user got sound from a Vimeo URL, and another user got silence. This thread popped up while searching for a solution. The key difference was the use of the 'plug' feature in the .asoundrc file. This diff/patch took one user from silence to working sound with the original URL. My best guess is whatever Vimeo is using produces a specific sample rate, and putting the 'plug' feature in the .asoundrc file causes ALSA to convert the sample rate. (Fwiw: My system uses straight ALSA, no PulseAudio.)

--- .asoundrc.~1~ 2011-08-19 21:23:33.894407686 -0700
+++ .asoundrc 2016-01-03 15:15:12.271767959 -0800
@@ -1,6 +1,9 @@
pcm.Intel { type hw; card Intel; }
ctl.Intel { type hw; card Intel; }
pcm.NVidia { type hw; card NVidia; }
ctl.NVidia { type hw; card NVidia; }
-pcm.!default pcm.Intel
+pcm.!default {
+ type plug
+ slave.pcm "Intel"
+}
ctl.!default ctl.Intel
 
  


Reply

Tags
firefox, html5, sound



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] Firefox 20 on Slackware 14 64bit really slow. enine Slackware 16 04-22-2013 10:36 AM
Steam - Titans Attack - Slackware 14 64bit - no sound Braqoon Slackware 3 03-04-2013 11:13 AM
[SOLVED] Slackware -current 32 bit... weird 64bit package... NoStressHQ Slackware 4 03-20-2011 07:49 PM
No Sound on Slackware 13.1 64Bit Mobile1 Linux - Laptop and Netbook 19 03-07-2011 07:08 PM

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

All times are GMT -5. The time now is 10:19 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