Skip to main content
Topic: MPV- Pulse Audio Extreme CPU Usage (Read 324 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

MPV- Pulse Audio Extreme CPU Usage

While playing with mpv, pulseaudio is using 5x the CPU compared when I play the same file on Devuan. FIVE TIMES MORE CPU. This is ridiculous. So now mpv is using 2-3x CPU for video rendering and 5x CPU for pulse audio. This is NOT acceptable.

I have no clue what you did. One thing would be Artix using "manjaro mesa" instead of "arch mesa" and thus resulting in broken acceleartion (vaapi), but there are no errors in Konsole.

But there is another big issue: why pulseaudio is using 5x more CPU?! WTF? >:( !

Add to this kernel (6.9.x) destroying hard drive and Artix is done.

I have no way of testing the defaults. You don't provide KDE weekly builds.

On my part its only the "mpv.conf", which I changed and it is like this (I have the same config on Devuan):

ao=pulse
hwdec=vaapi
vo=gpu-next
===

screenshot-jpeg-quality=100
screenshot-webp-quality=90

That's it on my part. Rest is Artix default. So whatever you have in the defaults and compilation and settings it's TOTALLY BROKEN. Not good. Not at all.


FYI: There are no output errors while in Konsole ["$ mpv video-avc1-24fps.mkv"; the usual vaapi OK output, etc. is there, no errors].

On my part, I have everything O.K. I haven't changed anything. The ball is at your court side.

Re: MPV- Pulse Audio Extreme CPU Usage

Reply #1
If you could identify the package responsible for the change it would be helpful, you say you did nothing but you have chosen to upgrade then not downgrade after it became clear there was an issue. It is quite likely this is something specific to your hardware or particular combination of installed software so you may be the only one experiencing this and able to easily investigate it, and as you provide no details on the hardware and software in question you prevent anyone from resolving this unless they should also stumble upon the same problem themselves. You could possibly remove pulseaudio completely and use just alsa, or replace it with pipewire depending on your usage case - pulseaudio is "poetteringware" like systemd, so many here don't use it.

Re: MPV- Pulse Audio Extreme CPU Usage

Reply #2
How about using pipewire?

 

Re: MPV- Pulse Audio Extreme CPU Usage

Reply #3
Hello,

I have been using alsa only for several years.
I removed all pulse packets except libpulse and libcanberra.

I use alsa and the nice and very practical qastools mixer on different pc:
https://forum.artixlinux.org/index.php/topic,4318.msg27848.html#msg27848

Note: I don't play games and don't use wine or steam.
But I have sound in all my apps.