[MPlayer-users] Re: 100% cpu usage when playing a mp3 file with alsa9:surround40 -channels 4

Thomas Lindroth tholi945 at student.liu.se
Sun Oct 26 02:14:26 CEST 2003


>> Hi,
>> 
>> Since I use mplayer (8 months) I experienced a 100% cpu usage when I play
>> a mp3 file with the following command line:
>> 
>> mplayer -ao alsa9:surround40 -channels 4 "mymp3file"
>> 
>> if I just use mplayer -ao alsa9 it uses less than 1% cpu time.
>> 
>> Why? Whats the big diffrence between those 2 commandlines, except the first
>> one (maybe) uses all 4 channels my soundcard provides.
>> 
>> Alsa Version is: ALSA-0.9.7
>> I´ve got a SB Live! Value soundcard, using those modules:
>> snd-emu10k1            74740   1
>> snd-pcm                64928   0  [snd-emu10k1]
>> snd-timer              15780   0  [snd-pcm]
>> snd-rawmidi            15072   0  [snd-emu10k1]
>> snd-util-mem            1376   0  [snd-emu10k1]
>> snd-page-alloc          6740   0  [snd-emu10k1 snd-pcm]
>> snd-ac97-codec         41880   0  [snd-emu10k1]
>> snd-hwdep               5216   0  [snd-emu10k1]
>> snd-seq-device          4320   0  [snd-emu10k1 snd-rawmidi]
>> snd                    32804   0  [snd-mixer-oss snd-emu10k1 snd-pcm snd-timer snd-rawmidi snd-util-mem snd-ac97-codec snd-hwdep snd-seq-device]
>> 
>> Any ideas? TIA,
> 
> What version of mplayer are you using? If it's anything earlier than
> 1.0pre2, you ought to update.
> 
> If you still have trouble after updating, then please post the _entire_
> output of
> $ mplayer -v -ao alsa9:surround40 -channels 4 "mymp3file"
> 
> -Corey

The same thing happens to me. I've got a SB live 1024 card and alsa 0.9.8
I don't think SB live 1024 supports surround
output:

MPlayer 1.0pre2-3.2.2 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Athlon Thunderbird 1009 MHz (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

Reading config file /usr/local/etc/mplayer/mplayer.conf: Filen eller katalogen finns inte
Reading config file /home/cocobo/.mplayer/config
Reading /home/cocobo/.mplayer/codecs.conf: Can't open '/home/cocobo/.mplayer/codecs.conf': Filen eller katalogen finns inte
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': Filen eller katalogen finns inte
Using built-in default codecs.conf
CommandLine: '-ao' 'alsa9:surround40' '-channels' '4' '-v' '/mnt/datadisk/Mp3/Castlevania - Symphony of the Night OSV/02-Prologue.mp3'
get_path('font/font.desc') -> '/home/cocobo/.mplayer/font/font.desc'
font: can't open file: /home/cocobo/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Linux RTC init error in ioctl (rtc_irqp_set 1024): Åtkomst nekas
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
get_path('input.conf') -> '/home/cocobo/.mplayer/input.conf'
Can't open input config file /home/cocobo/.mplayer/input.conf: Filen eller katalogen finns inte
Can't open input config file /usr/local/etc/mplayer/input.conf: Filen eller katalogen finns inte
Falling back on default (hardcoded) input config
get_path('02-Prologue.mp3.conf') -> '/home/cocobo/.mplayer/02-Prologue.mp3.conf'

Playing /mnt/datadisk/Mp3/Castlevania - Symphony of the Night OSV/02-Prologue.mp3
[file] File size is 1387314 bytes
STREAM: [file] /mnt/datadisk/Mp3/Castlevania - Symphony of the Night OSV/02-Prologue.mp3
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x8576970
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x8576970
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x8576970
Checking for REAL
DEMUXER: freeing demuxer at 0x8576970
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x8576970
DEMUXER: freeing demuxer at 0x85771d8
Searching demuxer type for filename /mnt/datadisk/Mp3/Castlevania - Symphony of the Night OSV/02-Prologue.mp3 ext: .mp3
Trying demuxer 17 based on filename extension
==> Found audio stream: 0
demux_audio: audio data 0x19D - 0x0
Audio file detected.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: made decode tables with MMX optimization
mp3lib: using 3DNow!Ex optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 44100 Hz 128 kbit Joint-Stereo, BPF: 417
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 16000->176400 (128,0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/4ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and bps = 2
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: requested format: 44100 Hz, 4 channels, Signed 16-bit (Little-Endian)
alsa-init: compiled for ALSA-0.9.8
alsa-init: soundcard set to surround40
alsa-init: pcm opend in block-mode
alsa-init: chunksize set to 1024
alsa-init: current val=16, fragcount=16
alsa-init: got buffersize=131072
alsa9: 44100 Hz/4 channels/8 bpf/131072 bytes buffer/Signed 16 bit Little Endian
AO: [alsa9] 44100Hz 4ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: ALSA-0.9.x audio output
AO: Author: Alex Beregszaszi, Joy Winter <joy at pingfm.org>
AO: Comment: under developement
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/4ch/16bit...
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and bps = 2
[libaf] Adding filter channels
[channels] Changing number of channels to 4
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and bps = 2
Video: no video
Freeing 0 unused video chunks
Starting playback...
alsa-space: free space = 131072, status=140052960, prepared --
[libaf] Reallocating memory in module channels, old len = 0, new len = 65540
Uninit audio filters...
[libaf] Removing filter dummy
[libaf] Removing filter channels
uninit audio: mp3lib
DEMUXER: freeing demuxer at 0x85771d8
DEMUXER: freeing sh_audio at 0x8574dc8
alsa-uninit: pcm closed
vo: x11 uninit called but X11 not inited..

Exiting... (Quit)



More information about the MPlayer-users mailing list