Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49538 - mplayer 1.0-pre4(-r1) doesn't play sound
Summary: mplayer 1.0-pre4(-r1) doesn't play sound
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-30 14:57 UTC by Christian Hesse
Modified: 2004-05-11 13:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Hesse 2004-04-30 14:57:06 UTC
Newest mplayer (1.0-pre4(-r1)) doesn't play sound:

<snip>
eworm@logo:~$ mplayer data/music/ogg/The\ closest\ thing\ to\ crazy.ogg
MPlayer 1.0pre4-3.3.3 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium M Banias 598.5 MHz (Family: 6, Stepping: 5)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file /usr/share/mplayer/mplayer.conf
Reading config file /home/eworm/.mplayer/config
Reading /home/eworm/.mplayer/codecs.conf: Can't open '/home/eworm/.mplayer/codecs.conf': No such file or directory
Reading /usr/share/mplayer/codecs.conf: 66 audio & 176 video codecs
font: can't open file: /home/eworm/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Failed to open /dev/rtc: Permission denied (/dev/rtc should be readable by the user.)
Using usleep() timing
Can't open input config file /home/eworm/.mplayer/input.conf: No such file or directory
Input config file /usr/share/mplayer/input.conf parsed: 53 binds

Playing data/music/ogg/The closest thing to crazy.ogg.
OGG file format detected.
==========================================================================
Opening audio decoder: [libvorbis] Ogg/Vorbis audio decoder
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 14000->176400 (112.0 kbit)
Selected audio codec: [vorbis] afm:libvorbis (OggVorbis Audio Decoder)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video


Exiting... (End of file)
</snip>

For me it looks as if it doesn't even try to init the alsa (using alsa 1.0.4 with kernel 2.6.5) things. mplayer 1.0-pre3-r5 and all versions before worked without problems.

Reproducible: Always
Steps to Reproduce:
1. emerge mplayer-1.0_pre4-r1
2. play media file with sound
Actual Results:  
mplayer plays video (if the media file contains video information) and then 
exits.

Expected Results:  
Play sound

Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.
5)
=================================================================
System uname: 2.6.5 i686 Intel(R) Pentium(R) M processor 1400MHz
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.
2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.
org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j 2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa apache2 apm avi berkdb cdr crypt cups dga dvd encode 
fbcon foomaticdb gdbm ggi gif gpm gtk gtk2 imlib ipv6 java jpeg kde libg++ 
libwww mad mikmod mmx motif mpeg mysql ncurses nls oggvorbis opengl pam pdflib 
perl png python qt quicktime readline sdl slang spell sse ssl tcltk tcpd 
truetype x86 xml2 xmms xv zlib"
Comment 1 Xake 2004-05-10 15:59:22 UTC
Maybe dumb question but have you tried to add "-ao alsa" to see what happends?
If it does not work try to list avaible drivers to use with -ao using command "mplayer -ao help" and look too see if alsa-support is built.
Comment 2 Alexandru Toma 2004-05-10 16:22:26 UTC
I'm not sure if this solves your problem but the name of the alsa driver changed. It is now alsa1x .... 
http://forums.gentoo.org/viewtopic.php?t=166433&highlight=mplayer+alsa1x#1101314
Comment 3 Christian Hesse 2004-05-11 13:09:28 UTC
Ok, it was my fault. I changed the config file to "ao=alsa1x:default" but didn't remember that I had set an alias "mplayer -ao alsa9:default"... Now I've deleted this alias and everything works fine.
Thanks!