no sound in mplayer
This bug report was converted into a question: question #121641: no sound in mplayer.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mplayer (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: mplayer
=======
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
=======
[AO_ALSA] alsa-lib: pcm_hw.
[AO_ALSA] alsa-lib: pcm_dmix.
[AO_ALSA] Playback open error: Device or resource busy
Failed to initialize audio driver 'alsa'
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
[AO SDL] Samplerate: 48000Hz Channels: Stereo Format s16le
[AO_ALSA] alsa-lib: pcm_hw.
[AO_ALSA] alsa-lib: pcm_dmix.
[AO SDL] Unable to open audio: No available audio device
Failed to initialize audio driver 'sdl'
[AO ESD] esd_open_sound failed: Connection timed out
Failed to initialize audio driver 'esd'
Could not open/initialize audio device -> no sound.
Audio: no sound
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: mplayer 2:1.0~rc3+
ProcVersionSign
Uname: Linux 2.6.32-
NonfreeKernelMo
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: i386
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/dsp: az 6933 F.... vlc
/dev/snd/
Card0.Amixer.info:
Card hw:0 'Intel'/'HDA Intel at 0xf9ff8000 irq 22'
Mixer name : 'Realtek ALC1200'
Components : 'HDA:10ec0888,
Controls : 40
Simple ctrls : 22
Date: Tue Aug 17 23:10:18 2010
InstallationMedia: Kubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427)
ProcEnviron:
LANGUAGE=
LANG=en_US.UTF-8
SHELL=/bin/bash
RelatedPackageV
libavcodec52 N/A
libavcodec-
SourcePackage: mplayer
UserConf: # Write your default config options here!
dmi.bios.date: 02/23/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 2002
dmi.board.
dmi.board.name: P5Q-PRO
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: P5Q-PRO
dmi.product.
dmi.sys.vendor: System manufacturer
system: distro = Ubuntu, architecture = i686, kernel = 2.6.32-
The attached user configs indicates a configuration problem:
- the mplayer output shows that mplayer doesn't try to use pulseaudio at all, but goes via alsa directly
- the alsa library fails to open the device, most likely because some other application is already holding the device open
- the mplayer configuration was altered to not use pulseaudio
- the user alsa configuration contains only comments, but the commented out configuration indicates that the system had at some point two audio cards. This indicates the user has some experience with customizing alsa
I suspect that a pulseaudio daemon is running and blocks the device from being used from other applications. IMO the correct fix is to revert the configuration change and use pulseaudio.