Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 2600+ Gentoo Base System version 1.6.14 dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="Yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://172.26.121.129/ ftp://dungara/gentoo/ http://mirror.gentoo.gr.jp/ http://gentoo.gg3.net/ http://gentoo.channelx.biz/" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://172.26.121.129/gentoo-portage" USE="x86 3dnow 3dnowext X alsa apache2 apm arts asf audiofile avi berkdb bitmap-fonts bzip2 cjk crypt cups curl dbus divx4linux dri emboss encode esd exif expat extras fam ffmpeg firebird flac foomaticdb fortran gdbm gif glut gmp gpm gtk gtk2 idn imagemagick imlib ipv6 java javascript jpeg kde kdexdeltas lcms ldap libg++ libwww mad matroska matrox mhash mikmod mmx mmxext mng motif mp3 mpeg mplayer nas ncurses nls nptl offensive ogg opengl oss pam pcre pdflib perl perlsuid png python qt quicktime readline real recode ruby samba sdl speex spell sqlite sse ssl stroke svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode vorbis win32codecs wmf xanim xcomposite xine xml xml2 xscreensaver xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
The snapshot of january as well as mplayer-1.0_pre7-r1 didn't pose this problem. mplayer works fine with oss (that is, after deleting ~/.mplayer/*) I have emerged mplayer with "-gtk" USE flag. $ cat /proc/asound/version Advanced Linux Sound Architecture Driver Version 1.0.10. Compiled on Jan 30 2006 for kernel 2.6.15-gentoo-r1. I remerged alsa-driver too but of no help. May be helpful: I also changed my profile to 2005.1 to 2006.0, and I still have reboot my computer (though I don't know how it is necessary apart from loading the new recompiled alsa-driver).
Corrections: May be helpful: I also changed my profile *from* 2005.1 to 2006.0, and I still have *to* reboot my computer (though I don't know how it is necessary apart from loading the new recompiled alsa-driver).
There's no description of the problem here. What does "doesn't work with alsa" mean?
Oops! Sorry!! Here is the output: $ mplayer a.mp3 .... .... ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== AO: [oss] 44100Hz 2ch s16le (2 bytes per sample) Video: no video Starting playback... ..... $ mplayer a.mp3 -ao pcm .... .... ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== alsa-init: 1 soundcard found, using: default alsa-init: unable to set sw-parameters: Invalid argument Could not open/initialize audio device -> no sound. Audio: no sound Video: no video .....
Where is my mind!!!!!!!! command was $ mplayer a.mp3 -ao alsa .... ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== alsa-init: 1 soundcard found, using: default alsa-init: unable to set sw-parameters: Invalid argument Could not open/initialize audio device -> no sound. Audio: no sound Video: no video Exiting... (End of file) $
On my system, mplayer works but stops during playback in seemingly random places. The app isn't frozen, ffw and rew work, and typically if you rewind it and let it play it will play right past the spot where it froze before. Reverting to 1.0_pre7-r1 solved the issue for me.
Well it seems like I needed a reboot. Strange though, I learned when I used xine with alsa, which earlier was running for 'autodetect', probably detecting oss
The problem again crept in! Now I don't have any clue. Please someone else confirms.
djm@sif ~ $ mplayer -ao alsa CATFOOD.WAV MPlayer dev-CVS-060217-10:46-3.4.5 (C) 2000-2006 MPlayer Team CPU: Intel Pentium M Dothan (Family: 6, Stepping: 8) MMX2 supported but disabled CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX SSE SSE2 91 audio & 206 video codecs Playing CATFOOD.WAV. Audio file file format detected. ========================================================================== Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 11025 Hz, 1 ch, u8, 88.2 kbit/100.00% (ratio: 11025->11025) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) ========================================================================== alsa-init: 1 soundcard found, using: default alsa: 11025 Hz/1 channels/1 bpf/3763 bytes buffer/Unsigned 8 bit AO: [alsa] 11025Hz 1ch u8 (1 bytes per sample) Video: no video Starting playback... A: 0.0 (00.0) of 96.0 (01:36.0) ??,?% mplayer always gets stuck like that after less than a second of playing when I use alsa, but works fine with sdl Not entirely sure that it's the same issue though, what do you think?
I have no clue now. mplayer is working again! Btw, when it is not working with alsa and gives Audio: no sound error, it also doesn't work with arts but gives the output similar to that of David Morgan's (i.e., stucks at that line). But I am completely clueless now. I am wondering if I should have reported this or not.
I'm certainly not using arts. I guess I may as well post my emerge info too Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-gentoo i686) ================================================================= System uname: 2.6.15-gentoo i686 Intel(R) Pentium(R) M processor 1.86GHz Gentoo Base System version 1.12.0_pre16 ccache version 2.4 [enabled] dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://gentoo.blueyonder.co.uk http://mirrors.blueyonder.co.uk/mirrors/gentoo" LC_ALL="en_GB.utf8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aac alsa apm asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdda cddb cdparanoia cdr cjk crypt cscope cups curl daap directfb dri dvd dvdr emboss encode expat fbcon ffmpeg flac foomaticdb fortran ftp gdbm gif glut gpm graphviz gstreamer gtk2 imagemagick imap jack jpeg lcms libg++ libwww lua mad maildir matroska mbox mikmod mmx mng motif mp3 mpeg ncurses nls nptl nvidial ogg oggvorbis opengl pam pcre pdf pdflib perl png python quicktime readline real ruby samba sdl spell sse sse2 ssl svga tcpd theora tiff truetype truetype-fonts type1-fonts unicode userlocales vcd vidix vorbis win32codecs xv xvid xvmc zlib elibc_glibc kernel_linux userland_GNU video_cards_radeon" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LDFLAGS, LINGUAS
I have no problems using mplayer with alsa output. Did you run an older version of mplayer with the same version of alsa-{libs,driver} and the same kernel?
Yeah. I just emerged mplayer-1.0_pre7-r1 and it worked just fine. $ mplayer 01\ -\ You.mp3 -ao alsa MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton (Family: 6, Stepping: 0) Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE 85 audio & 196 video codecs Playing 01 - You.mp3. Audio file detected. ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 44100 Hz, 2 ch, s16le, 48.0 kbit/3.40% (ratio: 6000->176400) Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le... AF_pre: 44100Hz/2ch/s16le alsa-init: 1 soundcard found, using: default alsa: 44100 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian AO: [alsa] 44100Hz 2ch s16le (2 bps) Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le... Video: no video Starting playback... A: 402.6 (06:42.5) 0.0% 0% alsa-uninit: pcm closed Exiting... (End of file) -- Then I emerged mplayer-1.0.20060217 and got the error: $ mplayer 01\ -\ You.mp3 -ao alsa MPlayer dev-CVS-060217-16:16-3.4.4 (C) 2000-2006 MPlayer Team CPU: Advanced Micro Devices Sempron/Athlon MP/XP/XP-M Barton,Thorton (Family: 6, Stepping: 0) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 91 audio & 206 video codecs Playing 01 - You.mp3. Audio file file format detected. ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 44100 Hz, 2 ch, s16le, 48.0 kbit/3.40% (ratio: 6000->176400) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== alsa-init: 1 soundcard found, using: default alsa-init: unable to set sw-parameters: Invalid argument Could not open/initialize audio device -> no sound. Audio: no sound Video: no video Exiting... (End of file) Then I emerge mplayer-1.0.20060102. It is again fine: $ mplayer 01\ -\ You.mp3 -ao alsa MPlayer dev-CVS-060102-12:34-3.4.4 (C) 2000-2005 MPlayer Team CPU: Advanced Micro Devices Sempron/Athlon MP/XP/XP-M Barton,Thorton (Family: 6, Stepping: 0) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 89 audio & 203 video codecs Playing 01 - You.mp3. Cache fill: 13.38% (1122304 bytes) Audio file file format detected. ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 44100 Hz, 2 ch, s16le, 80.0 kbit/5.67% (ratio: 10000->176400) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??... alsa-init: 1 soundcard found, using: default alsa: 44100 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample) Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le... Video: no video Starting playback... alsa-uninit: pcm closed0 (04:01.0) 0.7% 28% Exiting... (Quit)
I have quite a similar problem but on a ~amd64-System. In my case when i start to play a video-file mplayer keeps spitting the following: alsa-play: write error: Broken pipe2.390 584/584 1% 4% 1.1% 581 0 alsa-play: trying to reset soundcard SDL audio-output works fine but the alsa-output plugin seems to be broken I already filed a bug to the mplayer-bugzilla hopefully this gets solved soon...
just to make things clearer emerge info emerge -vp mplayer alsa driver and lib version, check the configuration files for alsa old style stuff and remove it.
(In reply to comment #15) > just to make things clearer > > emerge info > > emerge -vp mplayer > > alsa driver and lib version, check the configuration files for alsa old style > stuff and remove it. > emerge info Portage 2.1_pre4-r1 (default-linux/amd64/2005.1, gcc-4.0.2, glibc-2.3.6-r3, 2.6. 15-gentoo-r5 x86_64) ================================================================= System uname: 2.6.15-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.14 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disab led] dev-lang/python: 2.3.5-r2, 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer -ftracer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share /config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/shar e/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/ env.d" CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer -ftracer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ http://gd. tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo " LINGUAS="de en" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X alsa avi berkdb bitmap-fonts browserplugin cdr crypt cups dvd dvdr dvdread emboss encode foomaticdb fortran gif gpm gstreamer gtk2 imlib ipv6 jpeg kde lzw lzw-tiff mp3 mpeg ncurses nls nptl ogg oggvorbis opengl oss pam pdflib p erl png python qt quicktime readline sdl spell ssl tcpd theora tiff truetype-fon ts type1-fonts usb userlocales v4l vorbis wxgtk1 xpm xv xvid zlib elibc_glibc ke rnel_linux linguas_de linguas_en userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, MAKEOPTS emerge -pv alsa-lib These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] media-libs/alsa-lib-1.0.11_rc3 USE="-doc -jack" 686 kB Total size of downloads: 686 kB Alsa drivers: I use the build in kernel-alsa-drivers from 2.6.15-gentoo-r5 Umm remove old style alsa stuff? there has something changed
eh forgot emerge -pv mplayer These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] media-video/mplayer-1.0.20060217 USE="X alsa dts dvd dvdread encode gif gtk ipv6 jpeg nls opengl oss png sdl theora v4l vorbis xv xvid -aac -aalib -arts -bidi -bindist -bl -cdparanoia -cpudetection -custom-cflags -debug -dga -directfb -doc -dv -dvb -edl -esd -fbcon -ggi -i8x0 -jack -joystick -libcaca -lirc -live -livecd -lzo -mad -matroska -matrox -musepack -nas -nvidia -openal -real -rtc -samba -tga -truetype -v4l2 -xanim -xinerama -xmms -xvmc" 0 kB Total size of downloads: 0 kB
Well, I have just emerged installed Gentoo all over again and it seems, currently the problem is gone. I will report of any developement.
I'm experiencing almost the same things. Isn't this related to (or the same of) this other bug? http://bugs.gentoo.org/show_bug.cgi?id=123841
Probabaly. Since my new install, I have faced this problem at random times. So I cannot say whether the problem is corrected now or not... I will update after a reasonable amount of time (testing).
Seems to me that mplayer has stopped playing nicely with dmix rather than alsa in general, since using -ao alsa:device=plughw works fine for me (where -ao alsa doesn't), and similar things were reported in that other bug. I guess the best thing to do would be to see if this happens with the latest mplayer cvs and then telling upstream about it, but I'm probably not going to have time to do that for at least a week.
My mplayer works also great with ao=alsa:device=plughw. Thanks for this tip. I am on amd64 architecture.
But I am having this problem: alsa-init: 1 soundcard found, using: plughw alsa-init: unable to set sw-parameters: Invalid argument Could not open/initialize audio device -> no sound. Audio: no sound Starting playback... These are the options I am using in config file. ao=alsa:device=plughw vo=xv As I have stated earlier, using -ao oss works fine. The strange thing is, I haven't compiled oss in kernel, but emerged alsa-oss, so effectively it is always alsa. Any one with any clue?
this seems to be a dupe of bug 94577
Looks somewhat related...
So should I downgrade to alsa-1.0.8 or is there another way?
looks like you may: - fine tune your alsa configuration - use the oss out and the oss-alsa emulation I cannot reproduce the issue so I cannot spot what's wrong from here
Is this fixed for everyone with alsa-*-1.0.11_rc5? It seems to work for me now, anyway
Sorry but It doesn't for me but I use alsa-driver-1.0.11_rc5.
Sorry It doesn't work for me same with alsa-driver-1.0.11_rc5.
The alsa problem with mplayer-1.0.20060217 is fixed with mplayer-1.0.20060415. Great. Olivier Mondoloni
I cannot reproduce this bug now as I have switched all the applications to alsa-oss emulation and it is working fine. I am closing this bug for the time being. If any one has still problems please inform.