Gentoo Archives: gentoo-user

From: Mike Myers <fluffymikey@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] mplayer sound issues
Date: Tue, 28 Feb 2006 23:45:24
Message-Id: 4404DDB7.5050603@gmail.com
In Reply to: Re: [gentoo-user] mplayer sound issues by Richard Fish
1 Richard Fish wrote:
2
3 >On 2/28/06, Mike Myers <fluffymikey@×××××.com> wrote:
4 >
5 >
6 >>I seem to get that error regardless of what I'm playing. I can play
7 >>some files, like mp3s with the ao=alsa and that message will still
8 >>appear, but it plays anyway.
9 >>
10 >>
11 >
12 >Ok, theorizing time. (ie., I have absolute no idea whether this is
13 >right or not)
14 >
15 >It sounds like this may be related to the sampling frequency of the
16 >generated PCM. If some application (like arts) is using /dev/dsp and
17 >programming a specific rate (like 44100Hz), then when another
18 >application (like mplayer) wants to generate PCM, it must program a
19 >different rate (the wav file in your original message uses a 8000Hz
20 >rate). But the card cannot be changed to the 8kHz rate because the
21 >original application is still "using" the OSS device.
22 >
23 >
24 The weird thing is that this was totally working great before modular
25 Xorg. I'm really thinking it's just a matter of reinstalling
26 something. I just don't know what. Also, when I play the .wav file, it
27 plays for like a split second, and then mplayer just hangs. But I do
28 hear it for that first short second.
29
30 >If you play through arts, it handles the rate conversions for you, so
31 >everything works.
32 >
33 >You can test this by trying "mplayer -srate 44100 -ao arts file.wav".
34 >You can try different rates, or carefully examine the output of
35 >mplayer with an mp3 to see what rate it is using there.
36 >
37 >One last question: do you have a ~/.asoundrc file, and if so, what is in it?
38 >
39 >-Richard
40 >
41 >
42 >
43 Here's the output from doing that:
44
45 /Desktop $ mplayer -vo alsa -srate 44100 file.wav
46 MPlayer dev-CVS-060217-04:46-3.4.4 (C) 2000-2006 MPlayer Team
47 CPU: Intel Pentium M Dothan (Family: 6, Stepping: 8)
48 MMX supported but disabled
49 MMX2 supported but disabled
50 CPUflags: MMX: 0 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
51 Compiled for x86 CPU with extensions: SSE SSE2
52
53
54
55 91 audio & 206 video codecs
56 Playing 2006-02-27 13-42-42.wav.
57 Audio file file format detected.
58 ==========================================================================
59 Opening audio decoder: [pcm] Uncompressed PCM audio decoder
60 AUDIO: 8000 Hz, 1 ch, s16le, 128.0 kbit/100.00% (ratio: 16000->16000)
61 Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
62 ==========================================================================
63 [AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or
64 resource busy
65 alsa-init: 1 soundcard found, using: default
66 alsa: 44100 Hz/1 channels/2 bpf/30104 bytes buffer/Signed 16 bit Little
67 Endian
68 AO: [alsa] 44100Hz 1ch s16le (2 bytes per sample)
69 Video: no video
70 Starting playback...
71 A: 0.0 (00.0) of 2991.0 (49:51.0) ??,?%
72
73 It does the same, plays for a short second and then it still locks up.
74 I have an mp3 that runs at that rate and it works fine.
75
76 Thanks a lot for your help and patience so far, btw. I really
77 appreciate it.
78
79 Mike
80 --
81 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] mplayer sound issues Mike Myers <fluffymikey@×××××.com>