mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Loud audio is distorted/clipping/blown out

Open K4LCIFER opened this issue 2 years ago • 3 comments

Important Information

Provide following Information:

  • mpv version: 0.34.0-253-g2cafe5137f
  • Linux Distribution and Version: Arch Linux, Gnome 42.0, Wayland
  • Source of the mpv binary: AUR
  • If known which version of mpv introduced the problem: Unknown
  • Window Manager and version: Gnome 42.0
  • GPU driver and version: AMD Radeon RX6600

Reproduction steps

Open a video with loud audio. Turn OS volume to max. Observe that audio clips, and is heavily distorted when loud audio is playing. Observe that clipping goes away if you turn down the OS volume.

Expected behavior

I expect to have clear audio

Actual behavior

Loud audio is clipping/blown out/distorted. If I turn down system sounds through the OS, then the clipping is gone. I do not have overamplification enabled.

Log file

output.txt

K4LCIFER avatar Apr 11 '22 05:04 K4LCIFER

Does this happen if you use use a different AO?

Dudemanguy avatar Apr 11 '22 13:04 Dudemanguy

I had a similar issue which came with the version after 0.33.1-3 in arch.

Following the suggestion, I switched from pipewire back to pulseaudio and the issue was fixed (at least for me).

Let me know if you need any more info, happy to test

MagiX13 avatar May 29 '22 20:05 MagiX13

This could be fixed by #10356

t-8ch avatar Jul 08 '22 13:07 t-8ch

Going to assume this was a pipewire pulse emulation thing that has since been fixed since this is old and there haas been a lot of work since then. Feel free to reopen if this is not the case.

Dudemanguy avatar Jan 09 '23 04:01 Dudemanguy

I'm having this problem too after deciding to remove my old mpv version on Ubuntu 22.04 LTS then building it from source into a deb package myself. Pipewire doesn't come with Ubuntu 22.04, but I enabled it myself with pipewire-pulse.

So far, adding an ao=pulse line to mpv.conf seems to have remedied the issue. I'll report back if something else goes wrong, but that seems to be the fix for me

fir3-1ce avatar Dec 10 '23 09:12 fir3-1ce