mplayer-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Original]

Re: [MPlayer-users] Re: audio filters drain the cpu


To: "MPlayer usage questions, feature requests, bug reports" <mplayer-users@xxxxxxxxxxxx>
Subject: Re: [MPlayer-users] Re: audio filters drain the cpu
From: Fabio Papa <fn024607@xxxxxxxx>
Date: Mon, 19 Dec 2005 08:24:44 +0100
Delivered-to: itdp@localhost
Delivered-to: mplayer-users@mplayerhq.hu
In-reply-to: <43A65E6E.5070108@yahoo.se>
References: <43A07F02.1070302@yahoo.se> <20051217172430.GE7545@yamamaya.is-a-geek.org><43A65E6E.5070108@yahoo.se>

Fredrik Eriksson wrote:
Tobias Diedrich wrote:

Fredrik Eriksson wrote:


playing a audiofile like

mplayer music.mp3

works just fine, without any notable cpu usage. However, trying to use a audiofilter, like

mplayer -af sub music.mp3

or

mplayer -af surround music.mp3


I can reproduce that on my SB Live.
Can you try the attached patch and see if it makes the problem go away for you?


It seems like snd_pcm_status_get_avail returns something not a
multiple of chunk_size, but snd_pcm_writei only writes multiples of
chunk_size. The while-loop in ao_alsa then retries with the remainder
and the next call to snd_pcm_writei is busy-waiting.


That patch worked somewhat, now most of the time the cpu usage is down to a more reasonable level (about 1-2%), but at times it still goes up to 99-100% for no apparent reason, and then goes down again.

Just for the sake of discussion, have you determined wheter you're using
OSS or ALSA as output device? I've seen the exact same behaviour as you
two, but the problem went completely away using ALSA instead of OSS...

Fabio.

_______________________________________________
MPlayer-users mailing list
MPlayer-users@xxxxxxxxxxxx
http://mplayerhq.hu/mailman/listinfo/mplayer-users


[Prev in Thread] Current Thread [Next in Thread]