Gentoo Archives: gentoo-user

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