Opened 11 years ago

Closed 11 years ago

#1194 closed defect (invalid)

setting ao=pulse in ~/.mplayer/config breaks mplayer

Reported by: daw-bugzilla@… Owned by: reimar
Priority: normal Component: ao
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

On my machine, the svn-head mplayer does not play .mp3 for me, and to play a .wav file, I have to eliminate the "ao=pulse" line I had in my ~/.mplayer/config file.

I'm on a Fedora 9 x86_64 (Core II Duo) machine. I have a version of mplayer installed from Livna RPMs as a baseline (rpm -q mplayer says: mplayer-1.0-0.94.20080531svn.lvn9.x86_64), and I also compiled the latest mplayer in svn from source (svn revision 27291). Behavior also seems to depend on what I have in my ~/.mplayer/config file.

Here's a chart with what works and what doesn't, when I try to play a .wav file:

livnarpm r27291

ao=pulse: WORKS (pulse) WON'T PLAY (no driver)
empty: WORKS (pulse) WORKS (alsa)
no file: WORKS (pulse) WORKS (alsa)

Each row shows a different choice for the contents of my ~/.mplayer/config file. The stuff in parentheses in the 2nd and 3rd column shows what audio output driver mplayer has selected.

Here's a chart showing what works and what doesn't when I try to play a .mp3 file:

livnarpm r27291

ao=pulse: WORKS (pulse) WON'T PLAY (no driver)
empty: WORKS (pulse) GARBLED AUDIO (alsa)
no file: WORKS (pulse) GARBLED AUDIO (alsa)

In the latter two rows, with the Subversion mplayer, I get audio output that is clearly wrong (it's kind of garbled and has some kind of noise but is vaguely recognizable as related to the original audio). So I have not found a way to get Subversion-head mplayer to play .mp3 files correctly.

It's possible I've done something wrong in how I compiled or installed mplayer from Subversion; if so, I apologize. I thought I'd report it just in case it's a real issue.

Full output from mplayer, for each of these settings, follows.

$ cat ~/.mplayer/config
[default]
# Write your default config options here!
ao=pulse
$ mplayer /usr/share/sounds/alsa/Front_Center.wav
MPlayer dev-SVN-r26936-4.3.0 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /usr/share/sounds/alsa/Front_Center.wav.
Audio file file format detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 1 ch, s16le, 768.0 kbit/100.00% (ratio: 96000->96000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [pulse] 48000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 0.9 (00.8) of 1.0 (01.0) 0.0%

Exiting... (End of file)
$ ./mplayer /usr/share/sounds/alsa/Front_Center.wav
MPlayer dev-SVN-r27291-4.3.0 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz (Family: 6, Model: 15, Stepping: 6)
MMX2 supported but disabled
SSE supported but disabled
SSE2 supported but disabled
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX

Playing /usr/share/sounds/alsa/Front_Center.wav.
Audio file file format detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 1 ch, s16le, 768.0 kbit/100.00% (ratio: 96000->96000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
No such audio driver 'pulse'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video

Exiting... (End of file)

(mplayer is from the livna rpm; ./mplayer is compiled from svn head.)

$ cat ~/.mplayer/config
[default]
# Write your default config options here!
$ mplayer /usr/share/sounds/alsa/Front_Center.wav
MPlayer dev-SVN-r26936-4.3.0 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /usr/share/sounds/alsa/Front_Center.wav.
Audio file file format detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 1 ch, s16le, 768.0 kbit/100.00% (ratio: 96000->96000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [pulse] 48000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 0.8 (00.8) of 1.0 (01.0) 0.0%

Exiting... (End of file)
$ ./mplayer /usr/share/sounds/alsa/Front_Center.wav
MPlayer dev-SVN-r27291-4.3.0 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz (Family: 6, Model: 15, Stepping: 6)
MMX2 supported but disabled
SSE supported but disabled
SSE2 supported but disabled
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX

Playing /usr/share/sounds/alsa/Front_Center.wav.
Audio file file format detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 1 ch, s16le, 768.0 kbit/100.00% (ratio: 96000->96000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 1.0 (01.0) of 1.0 (01.0) 0.0%

Exiting... (End of file)

$ cat ~/.mplayer/config
cat: /home/daw/.mplayer/config: No such file or directory
$ mplayer /usr/share/sounds/alsa/Front_Center.wav
MPlayer dev-SVN-r26936-4.3.0 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Creating config file: /home/daw/.mplayer/config
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /usr/share/sounds/alsa/Front_Center.wav.
Audio file file format detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 1 ch, s16le, 768.0 kbit/100.00% (ratio: 96000->96000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [pulse] 48000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 0.8 (00.8) of 1.0 (01.0) 0.0%

Exiting... (End of file)
$ ./mplayer /usr/share/sounds/alsa/Front_Center.wav
MPlayer dev-SVN-r27291-4.3.0 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz (Family: 6, Model: 15, Stepping: 6)
MMX2 supported but disabled
SSE supported but disabled
SSE2 supported but disabled
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX

Playing /usr/share/sounds/alsa/Front_Center.wav.
Audio file file format detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 1 ch, s16le, 768.0 kbit/100.00% (ratio: 96000->96000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 1.1 (01.0) of 1.0 (01.0) 0.0%

Exiting... (End of file)

And the corresponding for a .mp3 file:

$ cat ~/.mplayer/config
[default]
# Write your default config options here!
ao=pulse
$ mplayer /tmp/american_storm.mp3
MPlayer dev-SVN-r26936-4.3.0 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /tmp/american_storm.mp3.
Audio file file format detected.
Clip info:

Title: American Storm
Artist: Wolf
Album: Evil Star
Year: 2004
Comment: Created by Grip
Track: 2
Genre: Metal

==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 3.8 (03.8) of 767.0 (12:47.0) 0.6%

MPlayer interrupted by signal 2 in module: play_audio
A: 3.9 (03.8) of 767.0 (12:47.0) 0.6%
Exiting... (Quit)
$ ./mplayer /tmp/american_storm.mp3
MPlayer dev-SVN-r27291-4.3.0 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz (Family: 6, Model: 15, Stepping: 6)
MMX2 supported but disabled
SSE supported but disabled
SSE2 supported but disabled
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX

Playing /tmp/american_storm.mp3.
Audio file file format detected.
Clip info:

Title: American Storm
Artist: Wolf
Album: Evil Star
Year: 2004
Comment: Created by Grip
Track: 2
Genre: Metal

==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
No such audio driver 'pulse'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video

Exiting... (End of file)

$ cat ~/.mplayer/config
[default]
# Write your default config options here!
$ mplayer /tmp/american_storm.mp3
MPlayer dev-SVN-r26936-4.3.0 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /tmp/american_storm.mp3.
Audio file file format detected.
Clip info:

Title: American Storm
Artist: Wolf
Album: Evil Star
Year: 2004
Comment: Created by Grip
Track: 2
Genre: Metal

==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 1.5 (01.4) of 767.0 (12:47.0) 0.5%

MPlayer interrupted by signal 2 in module: play_audio
A: 1.5 (01.4) of 767.0 (12:47.0) 0.5%
Exiting... (Quit)
$ ./mplayer /tmp/american_storm.mp3
MPlayer dev-SVN-r27291-4.3.0 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz (Family: 6, Model: 15, Stepping: 6)
MMX2 supported but disabled
SSE supported but disabled
SSE2 supported but disabled
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX

Playing /tmp/american_storm.mp3.
Audio file file format detected.
Clip info:

Title: American Storm
Artist: Wolf
Album: Evil Star
Year: 2004
Comment: Created by Grip
Track: 2
Genre: Metal

==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 0.8 (00.7) of 767.0 (12:47.0) 0.7%

MPlayer interrupted by signal 2 in module: play_audio
A: 0.8 (00.8) of 767.0 (12:47.0) 0.7%
Exiting... (Quit)

$ cat ~/.mplayer/config
cat: /home/daw/.mplayer/config: No such file or directory
$ mplayer /tmp/american_storm.mp3
MPlayer dev-SVN-r26936-4.3.0 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Creating config file: /home/daw/.mplayer/config
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /tmp/american_storm.mp3.
Audio file file format detected.
Clip info:

Title: American Storm
Artist: Wolf
Album: Evil Star
Year: 2004
Comment: Created by Grip
Track: 2
Genre: Metal

==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 1.1 (01.1) of 767.0 (12:47.0) 0.5%

MPlayer interrupted by signal 2 in module: play_audio
A: 1.1 (01.1) of 767.0 (12:47.0) 0.5%
Exiting... (Quit)
$ ./mplayer /tmp/american_storm.mp3
MPlayer dev-SVN-r27291-4.3.0 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz (Family: 6, Model: 15, Stepping: 6)
MMX2 supported but disabled
SSE supported but disabled
SSE2 supported but disabled
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX

Playing /tmp/american_storm.mp3.
Audio file file format detected.
Clip info:

Title: American Storm
Artist: Wolf
Album: Evil Star
Year: 2004
Comment: Created by Grip
Track: 2
Genre: Metal

==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 0.8 (00.8) of 767.0 (12:47.0) 0.7%

MPlayer interrupted by signal 2 in module: play_audio
A: 0.9 (00.8) of 767.0 (12:47.0) 0.7%
Exiting... (Quit)

$ cat /etc/mplayer/mplayer.conf
#
# MPlayer configuration file
#
# Configuration files are read system-wide from /etc/mplayer/mplayer.conf
# and per user from ~/.mplayer/config, where per-user settings override
# system-wide settings, all of which are overrriden by the command line.
#
# The configuration file settings are the same as the command line
# options without the preceding '-'.
#
# See the CONFIGURATION FILES section in the man page
# for a detailed description of the syntax.

##################
# video settings #
##################

# Specify default video driver (see -vo help for a list).
#vo=xv

# Use SDL video with the aalib subdriver by default.
#vo = sdl:aalib

# FBdev driver:
#
# mode to use (read from fb.modes)
#fbmode = 640x480-120
#
# location of the fb.modes file
#fbmodeconfig = /etc/fb.modes

# Specify your monitor timings for the vesa and fbdev video output drivers.
# See /etc/X11/XF86Config for timings. Be careful; if you specify settings
# that exceed the capabilities of your monitor, you may damage it.
#
# horizontal frequency range (k stands for 1000)
#monitor-hfreq = 31.5k-50k,70k
#
# vertical frequency range
#monitor-vfreq = 50-90
#
# dotclock (or pixelclock) range (m stands for 1000000)
#monitor-dotclock = 30M-300M

# Start in fullscreen mode by default.
#fs=yes

# Change to a different videomode when going fullscreen.
#vm=yes

# Override the autodetected color depth, may need 'vm=yes' as well.
#bpp=0

# Enable software scaling (powerful CPU needed) for video output
# drivers that do not support hardware scaling.
#zoom=yes

# standard monitor size, with square pixels
#monitoraspect=4:3

# Use this for a widescreen monitor, non-square pixels.
#monitoraspect=16:9

# Keep the player window on top of all other windows.
#ontop=yes

##################
# audio settings #
##################

# Specify default audio driver (see -ao help for a list).
#ao=oss

# Use SDL audio driver with the esd subdriver by default.
#ao = sdl:esd

# Specify the mixer device.
#mixer = /dev/mixer

# Resample the sound to 44100Hz with the lavcresample audio filter.
#af=lavcresample=44100

##################
# other settings #
##################

# Pretend to be Window Media Player.
# Fixes playback when playlist and media file use the same URL.
#user-agent=NSPlayer/4.1.0.3856

# Drop frames to preserve audio/video sync.
#framedrop = yes

# Specify your preferred skin here (skins are searched for in
# /usr/share/mplayer/skins/<name> and ~/.mplayer/skins/<name>).
#skin = Abyss

# Resample the font alphamap.
# 0 plain white fonts
# 0.75 very narrow black outline (default)
# 1 narrow black outline
# 10 bold black outline
#ffactor = 0.75

# cache settings
#
# Use 8MB input cache by default.
#cache = 8192
#
# Prefill 20% of the cache before starting playback.
#cache-min = 20.0
#
# Prefill 50% of the cache before restarting playback after the cache emptied.
#cache-seek-min = 50

# DVD: Display English subtitles if available.
#slang = en

# DVD: Play English audio tracks if available.
#alang = en

###################
# DVDNAV Settings #
###################
#vc=ffmpeg12,
# A plugged in joystick can interfere with keyboard shortcuts
joystick = no

# FriBidi? can do "funny" things to some ISO-8859-* subtitles
flip-hebrew = no

# You can also include other configuration files.
#include = /home/me/.mplayer/something
fontconfig=yes
font="Sans"
ao=pulse,alsa,

Change History (1)

comment:1 Changed 11 years ago by reimar

  • Resolution set to invalid
  • Status changed from new to closed

You compiled without pulseaudio support. Install the development packages for it and check the configure summary that everything you want is indeed enabled.
If you still can not get it enabled, check configure.log for errors and if you do not know what else to do give that file to us.
Note that you will probably get faster help on the MPlayer-users list with that kind of problem.

Note: See TracTickets for help on using tickets.