[MPlayer-users] mplayer alsa output hangs

Konstantin Kletschke lists at ku-gbr.de
Sun Apr 2 16:10:48 CEST 2006


I used mplayer-1.0_pre7 with an ~/.asoundrc working well:

pcm.!default {
          type plug
          slave.pcm "intel8x0"
}

pcm.intel8x0 {
   type dmix
   ipc_key 1
   slave {
     pcm "hw:1,2"
     period_time 0
     period_size 1024
     buffer_size 8192
     rate 48000
   }
   bindings {
     0 0
     1 1
   }                         
}

ctl.intel8x0 {
          type hw
          card 0
          device 4
}

pcm.xine {
        type    hw
        card    1
        device  2
}

This worked very fine. However, gentoo switched to mplayer-1.0.20060302
now and It seems mplayer does only play audio for a fraction of a second
(~100ms?) and the hangs.

This is a strace -eopen output:

==========================================================================
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)
==========================================================================
open("/dev/snd/controlC0", O_RDONLY)    = 6
alsa-init: 1 soundcard found, using: default
open("/usr/share/alsa/alsa.conf", O_RDONLY) = 6
open("/home/konsti/.asoundrc", O_RDONLY) = 6
open("/dev/snd/controlC1", O_RDONLY)    = 6
open("/dev/snd/controlC1", O_RDONLY)    = 6
open("/dev/snd/controlC1", O_RDWR)      = 6
open("/dev/snd/pcmC1D2p", O_RDWR|O_NONBLOCK) = 7
--- SIGCHLD (Child exited) @ 0 (0) ---
open("/dev/snd/controlC1", O_RDONLY)    = 8
open("/dev/snd/timer", O_RDONLY|O_NONBLOCK) = 8
open("/proc/cpuinfo", O_RDONLY)         = 9
alsa: 44100 Hz/2 channels/4 bpf/30104 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   0.0 (unknown) of 343.0 (05:43.0) ??,?% 

MPlayer interrupted by signal 15 in module: play_audio
alsa-uninit: pcm closed

Regards, Konsti

-- 
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF




More information about the MPlayer-users mailing list