Bug 164104 - No sound when playing Flash Videos in Opera, Konqueror or Firefox
Summary: No sound when playing Flash Videos in Opera, Konqueror or Firefox
Status: RESOLVED FIXED
Alias: None
Product: Phonon
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Matthias Kretz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-14 22:38 UTC by Jörg Schulte
Modified: 2009-11-30 13:33 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Phonon settings (22.22 KB, image/png)
2008-12-06 07:39 UTC, Marian Kyral
Details
Alsa configuration files (11.40 KB, application/octet-stream)
2008-12-06 17:50 UTC, Marian Kyral
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Schulte 2008-06-14 22:38:03 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

When playing flash-videos from youtube, google video, etc. I have only an image but no sound. The strange thing is that I have sound when I play flash videos in Opera or Firefox directly after I'm logged in my KDE session. During this time I can't hear the system notifications from KDE (e.g. the ping sound when I open a new window). 

When I close the Browser with the flash video the system notifications appear again. But when I load a new flash video in a browser the sound from the video is gone. Only a computer restart helps.
Videos in dragon-player work as expected. When playing the same video file in Kaffeine/KDE3 there comes an error message like "xine-notification: Audio Output is not available. Device or ressource busy". (From German translation)

KDE Version 4.00.82 (KDE 4.0.82 >= 20080610) "release 4.1"
Soundcard Intel ICH6 with ALC 655
Phonon 4.1.81-4.10 Backend Xine Driver 0.1
SuSE 11.0
Flash-Player 9.0.124.0-10
Comment 1 Matthias Kretz 2008-11-29 13:24:06 UTC
Can you still reproduce the problem? I can not -- and never have seen issues like that. I suspect a driver problem. So perhaps the problem went away after a kernel upgrade?
Comment 2 Marian Kyral 2008-12-06 07:37:51 UTC
I can confirm this. I'm using kde 4.1.80, phonon-4.2.80, phonon-kde-4.1.80, xine-lib-1.1.15, sound card 82801H (ICH8 Family) HD Audio Controller.

Two mplayers and firefox can play together. But when phonon is playing (amarok2 or test in the systemsettings), mplayer or firefox fail with:

[AO_ALSA] alsa-lib: pcm_dmix.c:1008:(snd_pcm_dmix_open) unable to open slave

When I exit amarok, i have sound with mplayer and firefox back.

In systemsetting panel I can see:
This will try the following devices and use the first that works:
 1. ALSA: x-phonon:CARD=0, DEV=0
 2. ALSA: plughw:CARD=0, DEV=0
 3. OSS: /dev/dsp
 4. OSS: /dev/audio

See attachment.
Comment 3 Marian Kyral 2008-12-06 07:39:03 UTC
Created attachment 29085 [details]
Phonon settings
Comment 4 Marian Kyral 2008-12-06 08:03:55 UTC
Mplayer and firefox plays together:

[07:47:02 marian@gool ~]$ fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  marian     3738 F.... kmix
/dev/snd/pcmC0D0p:   marian     3810 F...m firefox
                     marian     5621 F...m mplayer
/dev/snd/timer:      marian     3810 f.... firefox
                     marian     5621 f.... mplayer

When Amarok starts, phonon complains:
The audio playback device HDA Intel (STAC92xx Analog) does not work. Falling back to HDA Intel (STAC92xx Digital) and no sound from Amarok - I have no digital output connected. 


Amarok message in console:
cannot configure the device on Xine's oss output plugin 
cannot configure the device on Xine's oss output plugin 


When I quit firefox and start Amarok:
[07:59:24 marian@gool ~]$ fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  marian     3738 F.... kmix
                     marian     5996 F.... amarok
/dev/snd/pcmC0D0p:   marian     5996 F...m amarok
/dev/snd/timer:      marian     5996 f.... amarok
Comment 5 Matthias Kretz 2008-12-06 11:37:31 UTC
Do you have an ~/.asoundrc or /etc/asound.conf file? If yes, please attach. If not please tar up your /usr/share/alsa dir and attach that.
Also please tell me the version of libasound (your package management system of your distribution should be able to tell you).
Comment 6 Marian Kyral 2008-12-06 17:50:54 UTC
Created attachment 29095 [details]
Alsa configuration files

[17:45:59 marian@gool ~]$ equery b /usr/lib64/libasound.so.2.0.0
[ Searching for file(s) /usr/lib64/libasound.so.2.0.0 in *... ]
media-libs/alsa-lib-1.0.18 (/usr/lib64/libasound.so.2.0.0)

I attached all. I do not use the ~/.asoundrc now, only /etc/asound.conf.
Comment 7 Marian Kyral 2008-12-23 21:11:14 UTC
Tested with 4.1.85, still the same issue.
Comment 8 Marian Kyral 2009-03-05 21:48:50 UTC
So after upgrade KDE to 4.2.1 I'm not able to get sound from amarok 1.4, FF, smplayer, lastfmplayer. Looks like knotify4 is blocking sound all the time now.

Knotify4 and other KDE4 applications using phonon can play together,  but other applications only shows:

Amarok: xine was not able to inicialize any sound driver. (translated from Czech)
Lastfmplayer: The ALSA soundsystem is either busy or not present.

[21:39:22 root@gool marian]# fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  marian    29388 F.... kmix
/dev/snd/pcmC0D0p:   marian    29328 F...m knotify4
/dev/snd/timer:      marian    29328 f.... knotify4
[21:40:17 root@gool marian]# fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  marian    29388 F.... kmix
/dev/snd/pcmC0D0p:   marian      734 F...m systemsettings
                     marian    29328 F...m knotify4
/dev/snd/timer:      marian      734 f.... systemsettings
                     marian    29328 f.... knotify4
Comment 9 Marian Kyral 2009-03-05 21:53:44 UTC
*** This bug has been confirmed by popular vote. ***
Comment 10 Marian Kyral 2009-03-05 22:05:43 UTC
Well. I found the solution. There are new devices in multimedia settings (default, default:CARD=0, hw:0,0 and hw:0,1). I have to put the "default" device up as preferred and now it works.

[22:01:08 root@gool marian]# fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  marian     7132 F.... kmix
                     marian     7163 F.... amarokapp
/dev/snd/pcmC0D0p:   marian     7075 F...m knotify4
                     marian     7163 F...m amarokapp
                     marian     7444 F...m firefox
                     marian     7566 F...m systemsettings
/dev/snd/timer:      marian     7075 f.... knotify4
                     marian     7163 f.... amarokapp
                     marian     7444 f.... firefox
                     marian     7566 f.... systemsettings
Comment 11 Marian Kyral 2009-03-09 21:54:19 UTC
Nice. After yesterdays update of my Gentoo, the default device is gone and problem with Amarok 1.4 and FF is back :-(

I'm trying to find difference, but no luck yet.
Comment 12 Marian Kyral 2009-04-24 14:22:14 UTC
Finally I found the solution:
http://en.opensuse.org/Phonon#Devices_from_.2Fetc.2Fasound.conf_or_.7E.2F.asoundrc_are_not_listed

Now all works as expected.
Comment 13 Daniel Semblano 2009-08-22 03:20:18 UTC
I can confirm this bug too. Since I have been using Linux (under 8 years I think) sound issues has been the most annoying thing, especially this one reported by Jörg Schulte.

If some browser is displaying a video, sound, or whatever music related, you cannot play any music file in your hard drive, and vice-versa. My workaround is log out my kde session and starts again.

When I'm trying to play a music file on Audacious, with FF open: 
ERROR: ALSA: alsa-core.c:324 (alsaplug_open_audio): snd_pcm_open: Device or resource busy
madplug: open_audio failed: XMMS reverse compatibility output plugin.

And if I try to play something in FF, I had to restart the browser or sometimes log out. When trying to play something in Multimedia - System Settings, it don't play nothing on HDA Intel (ALC888 Analog) neither Pulseaudio. In other words, nothing plays anymore if I don't log out.

daniel@daniel-casa:~$ fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  daniel     4364 F.... knotify4
                     daniel     4467 F.... kmix
                     daniel    24206 F.... pulseaudio
/dev/snd/controlC1:  daniel     4467 F.... kmix
/dev/snd/pcmC0D0p:   daniel    12248 F.... npviewer.bin

My ~/.asoundrc file:
# ALSA library configuration file

# Include settings that are under the control of asoundconf(1).
# (To disable these settings, comment out this line.)
</home/daniel/.asoundrc.asoundconf>

Nothing on /etc/asound.conf file.

from lspci:
03:01.0 Multimedia controller: Philips Semiconductors SAA7131/SAA7133/SAA7135 Video Broadcast Decoder (rev d1)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)

I'm using KDE 4.3.0 Kubuntu Karmic.
Comment 14 Daniel Semblano 2009-09-04 14:38:02 UTC
If it helps: "sudo service alsa-utils start" restores the sound in KDE, only if Firefox isn't running. The same is to restore sound in Firefox (but with no sound in KDE).
Comment 15 Myriam Schweingruber 2009-11-17 12:26:48 UTC
Is this still an issue with the latest Phonon version? I can't reproduce this here.
Comment 16 Daniel Semblano 2009-11-17 14:43:05 UTC
(In reply to comment #15)
> Is this still an issue with the latest Phonon version? I can't reproduce this
> here.

For me it's fine now. FF flash and Audacity player running at same time, able to hear both sounds (one at a time), as it should be.
Comment 17 Myriam Schweingruber 2009-11-30 13:33:28 UTC
Thanks for the feedback. Closing as fixed.