Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VOODO/GONE: No sound in Firefox 10 with embedded audio!
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
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Sun Sep 02, 2012 7:24 am    Post subject: VOODO/GONE: No sound in Firefox 10 with embedded audio! Reply with quote

HI all.

I get no sound output with web pages with embedded audio. Videos work most of the time however though I've sometimes had no sound but it happens less often. Here's an example I get no sound: http://en.wikipedia.org/wiki/LibriVox . If I download the sound file I can play it with mplayer, mplayer2 and exaile, just not from within Firefox. Here's sound control usage while playing:
fuser -v /dev/snd/* /dev/dsp*:
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  vinz       4681 F.... xfce4-volumed
                     vinz       4698 F.... xfce4-mixer-plu
                     vinz       5533 f.... xfce4-mixer
/dev/snd/controlC1:  vinz       4681 F.... xfce4-volumed
                     vinz       4698 F.... xfce4-mixer-plu
                     vinz       5533 F.... xfce4-mixer

Not even firefox is listed 8O . Flash videos do produce sound however. In all cases.

Does anyone have an idea on what I could possibly have done wrong?

EDIT: Firefox 17.0.2 so far. Here are installed Gstreamer plugins:

Code:
[I] dev-python/gst-python
[I] media-libs/gst-plugins-bad
[I] media-libs/gst-plugins-base
[I] media-libs/gst-plugins-good
[I] media-libs/gst-plugins-ugly
[I] media-plugins/gst-plugins-a52dec
[I] media-plugins/gst-plugins-alsa
[I] media-plugins/gst-plugins-cdio
[I] media-plugins/gst-plugins-dts
[I] media-plugins/gst-plugins-dvdread
[I] media-plugins/gst-plugins-faad
[I] media-plugins/gst-plugins-ffmpeg
[I] media-plugins/gst-plugins-flac
[I] media-plugins/gst-plugins-gconf
[I] media-plugins/gst-plugins-jpeg
[I] media-plugins/gst-plugins-mad
[I] media-plugins/gst-plugins-meta
[I] media-plugins/gst-plugins-mpeg2dec
[I] media-plugins/gst-plugins-musepack
[I] media-plugins/gst-plugins-ogg
[I] media-plugins/gst-plugins-pango
[I] media-plugins/gst-plugins-resindvd
[I] media-plugins/gst-plugins-soup
[I] media-plugins/gst-plugins-taglib
[I] media-plugins/gst-plugins-theora
[I] media-plugins/gst-plugins-twolame
[I] media-plugins/gst-plugins-v4l2
[I] media-plugins/gst-plugins-vorbis
[I] media-plugins/gst-plugins-wavpack
[I] media-plugins/gst-plugins-x
[I] media-plugins/gst-plugins-x264
[I] media-plugins/gst-plugins-xvid
[I] media-plugins/gst-plugins-xvideo

Thanks in advance.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!


Last edited by VinzC on Sat Feb 09, 2013 10:41 am; edited 4 times in total
Back to top
View user's profile Send private message
piedar
Tux's lil' helper
Tux's lil' helper


Joined: 09 Aug 2010
Posts: 82

PostPosted: Sun Sep 02, 2012 6:44 pm    Post subject: Reply with quote

Is media-plugins/alsa-plugins installed?
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Thu Feb 07, 2013 8:52 pm    Post subject: Reply with quote

Been coping with this issue for months. Now I have upgraded FF to 17.0.2 and I have NO SOUND AT ALL (except with Flash videos, of course :twisted: )!

Now I'm really p***d off if you want to know :evil: .
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!


Last edited by VinzC on Thu Feb 07, 2013 9:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Thu Feb 07, 2013 9:05 pm    Post subject: Reply with quote

i had problems with html5 sound and video, flash sound and video worked fine..... to resolve my problem i had to add a file.....

/etc/asound.conf

Code:

pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}


i also updated the wiki to prevent your problem in the future....... (and give permission for this wiki entry to cross over to wiki.gentoo.org)

http://en.gentoo-wiki.com/wiki/PulseAudio#Flash.2FHTML5.2Fother_ALSA_users_not_giving_sound

(you might have to restart your pc to load the new configurations)
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Thu Feb 07, 2013 9:21 pm    Post subject: Reply with quote

Thanks 666threesixes666. I already a soundrc file though:
~/.asoundrc:
pcm.!default spdif

I don't use Pulseaudio, BTW.

So it works perfectly with all my sound applications... except Firefox... *but* with the flash plugin. And it really looks like Firefox doesn't even use my sound system!
fuser -v /dev/snd/* /dev/dsp*:
                     UTIL.       PID ACCÈS  COMMANDE
/dev/snd/controlC0:  vinz       5268 F.... xfce4-volumed
/dev/snd/controlC1:  vinz       5268 F.... xfce4-volumed

lsof -c firefox | grep /dev/:
firefox 6182 vinz    0r   CHR                1,3       0t0     2499 /dev/null
firefox 6182 vinz   16r   CHR                1,9       0t0     1541 /dev/urandom

with webm. Here's with the Flash plugin:
fuser -v /dev/snd/* /dev/dsp*:
                     UTIL.       PID ACCÈS  COMMANDE
/dev/snd/controlC0:  vinz       5268 F.... xfce4-volumed
                     vinz       6281 F.... plugin-containe
/dev/snd/controlC1:  vinz       5268 F.... xfce4-volumed
/dev/snd/pcmC0D1p:   vinz       6281 F...m plugin-containe

I'm really at a loss here :( .
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Thu Feb 07, 2013 9:28 pm    Post subject: Reply with quote

so move it to .asoundrc.backup

Code:

mv .asoundrc .asoundrc.backup


fix a more proper .asoundrc

Code:

pcm.!default {
spdif
}
ctl.!default {
spdif
}


or tell your machine to use alsa.... im pretty sure its the root of your problem. my problem was alsa conflicting with pulse, yours might be oss conflicting with alsa, or alsa plugins conflicting with other alsa plugins.

check out http://alsa.opensrc.org/.asoundrc


Last edited by 666threesixes666 on Thu Feb 14, 2013 3:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Thu Feb 07, 2013 9:47 pm    Post subject: Reply with quote

Code:

pcm.!default {
spdif
}
pcm.!default {
spdif
}

makes my ALSA-based players crash (as well as firefox by the way)!
Code:
*** glibc detected *** parole: double free or corruption (fasttop): 0x00007fc5140ae370 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7b066)[0x7fc5329e4066]
/usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.304.64(+0x1cc1)[0x7fc52c02acc1]
======= Memory map: ========
00400000-0044d000 r-xp 00000000 fe:07 438321                             /usr/bin/parole
0064c000-0064d000 r--p 0004c000 fe:07 438321                             /usr/bin/parole
0064d000-0064f000 rw-p 0004d000 fe:07 438321                             /usr/bin/parole
01a9d000-0243a000 rw-p 00000000 00:00 0                                  [heap]
7fc508000000-7fc508021000 rw-p 00000000 00:00 0
7fc508021000-7fc50c000000 ---p 00000000 00:00 0
7fc50e7cf000-7fc50e8a9000 r-xp 00000000 fe:07 426451                     /usr/lib64/libasound.so.2.0.0
7fc50e8a9000-7fc50eaa8000 ---p 000da000 fe:07 426451                     /usr/lib64/libasound.so.2.0.0
7fc50eaa8000-7fc50eaae000 r--p 000d9000 fe:07 426451                     /usr/lib64/libasound.so.2.0.0
7fc50eaae000-7fc50eab0000 rw-p 000df000 fe:07 426451                     /usr/lib64/libasound.so.2.0.0
7fc50eab0000-7fc50eac6000 r-xp 00000000 fe:07 437603                     /usr/lib64/gstreamer-0.10/libgstalsa.so
7fc50eac6000-7fc50ecc5000 ---p 00016000 fe:07 437603                     /usr/lib64/gstreamer-0.10/libgstalsa.so
7fc50ecc5000-7fc50ecc6000 r--p 00015000 fe:07 437603                     /usr/lib64/gstreamer-0.10/libgstalsa.so
7fc50ecc6000-7fc50ecc7000 rw-p 00016000 fe:07 437603                     /usr/lib64/gstreamer-0.10/libgstalsa.so
7fc50ecc7000-7fc50eccf000 r-xp 00000000 fe:07 409667                     /usr/lib64/gstreamer-0.10/libgstautodetect.so
7fc50eccf000-7fc50eece000 ---p 00008000 fe:07 409667                     /usr/lib64/gstreamer-0.10/libgstautodetect.so
7fc50eece000-7fc50eecf000 r--p 00007000 fe:07 409667                     /usr/lib64/gstreamer-0.10/libgstautodetect.so
7fc50eecf000-7fc50eed0000 rw-p 00008000 fe:07 409667                     /usr/lib64/gstreamer-0.10/libgstautodetect.so
bla
bla
bla
...

Strange though that it's in libnvidia-tls.so that the crash occurs... Is it because I enabled VDPAU?

EDIT: Might be a detail but I also have UT2003 and UT2004, Wine installed and *all* of them use ALSA properly. Firefox+webm is the only one case I get no sound.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Fri Feb 08, 2013 1:44 pm    Post subject: Reply with quote

http://www.alsa-project.org/main/index.php/Asoundrc#The_default_plugin

&&

http://www.alsa-project.org/main/index.php/Asoundrc#Software_mixing

you gotta poke and prod and some of the settings will work and others wont, changes dont work? change them back to what was working, and try again..... 1st links syntax and how to line it up with your audio card, 2nd one deals with your problems in an alsa way, instead of pulse audio way.... did you try removing the asoundrc and just leaving it blank for a boot?
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Fri Feb 08, 2013 3:15 pm    Post subject: Reply with quote

Okay, there was a mistake in your post, it's not
Code:
pcm.!default {
spdif
}
pcm.!default {
spdif
}
but
Code:
...
ctl.!default {
spdif
}
Nevermind, I'll try again. But I have a doubt as I don't see !default clauses specifying just spdif or anything like this. There's always a few lines, not just one in what I've read so far. And on the software mixing part, that's not going to work, I'm afraid. Software mixing would be something to investigate as soon as I'd see firefox actually using my sound system but it's not. The libraries are loaded but the sound device is not even used, as I reported earlier. Here's what's on my laptop, for instance, as firefox actually uses sound devices:
fuser -v /dev/snd/*:
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  vinz       5772 F.... volume-control.
                     vinz       6294 F.... firefox
/dev/snd/pcmC0D0p:   vinz       6294 F...m firefox
/dev/snd/timer:      vinz       6294 f.... firefox

Also I cannot remove my .asoundrc; if I do, my system doesn't use the SPDIF output and it uses only the analog outputs. As a result I get no sound at all from the SPDIF output.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Fri Feb 08, 2013 11:30 pm    Post subject: Reply with quote

Okay, let me summarize.

When I first installed my machine, I didn't need an .asoundrc (in fact I even ignored what it was at that time) for sound to go through my machine's SPDIF output.

Then a few months passed and I did an upgrade: kernel, packages... the works. Sound was no longer directed through the SPDIF output. Sought, found I needed an .asoundrc. Used it, yay! got sound working again through the SPDIF output.

Another couple of months later, big update, kernel, packages, the works. Sound was still working to the condition I used an .asoundrc but only Firefox remained silent using Webm and HTML5 sound and sometimes video. That's when I created this thread. Later upgraded Firefox from 10 to 17 and 18, no difference.

Then yet another couple of months later, just a few packages upgraded, tried out of spite without the .asoundrc and... like magic sound is still working with audio players *and* Firefox/Webm now does :roll: 8O ! WTF :?:

Go.

Figure.

...

Anyway thanks for helping, 666threesixes666. I still have absolutely *no* idea why it stopped working all of a sudden and why it does now and what I've experienced with ALSA has totally screwed my logic so far. This is enough for me to file ALSA under the «Evil Black Voodoo Magic».

Period.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Thu Feb 14, 2013 3:45 pm    Post subject: Reply with quote

your right its supposed to have 1 pcm and 1 ctl... does

Code:

pcm.!default {
spdif
}
pcm.!default {
spdif
}


work for you?

or was it removing the .asoundrc the solve for you?

for me i had to use

Code:

pcm.!default { type hw card MobilePre }
ctl.!default { type hw card MobilePre }


to run an external usb sound board on my system by default.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Thu Feb 14, 2013 9:56 pm    Post subject: Reply with quote

I had to remove the .asoundrc to have Firefox work, i.e. send its sound to the SPDIF output... while everything else did actually work *with* the config file. Now everything works *without* the config file.

When I first installed Gentoo on my machine I had the reflex to check "IEC958 default PCM" in my sound mixer's properties to use the SPDIF output as the default sound output. It did work the first months... until (I guess) I did an emerge --sync && emerge -avuDN world (I summarized). Then I had to use an .asoundrc to have the SPDIF output work again. So I ran another couple of months with the .asoundrc file... until lately when I noticed this weird behaviour with Firefox.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
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