Seeking around a paused playback in mpv causes audio artifacts
If you are filing this issue with a regular release please try master as it might already be fixed.
Will try to test master at a later time.
Version, Distribution, Desktop Environment:
0.3.27, NixOS, sway
Description of Problem:
Occasionally the sound coming from pulse clients and in particular mpv ends up in a bad state, malformed, crackly for a period of time.
Steps to Reproduce
I have found that it is most easy to reproduce the issue the following way, but I have encountered this same issue in normal use (e.g. I think the same issue happens sometimes after the stream is buffering, or after you seek the video)
- Open any audio file with
mpv --no-config
(version used 0.33.1, with ffmpeg 4.4); - Pause the playback;
- Seek using the left/right arrows a couple times through the file back and forth;
- Unpause the playback.
Actual Results
Malformed audio is heard, there are a large number of log messages appearing upon unpause, such as
May 29 14:41:54 haibox pipewire-pulse[3711520]: pulse-server 0x55b4ea40a420: [mpv] OVERFLOW channel:0
Expected Results:
The audio should play perfectly without any crackles when unpaused.
pw-dump -N > file
(As Attachment Please):
Additional Info Eg. - This is not an issue with the
alsa
interface (mpv --no-config --ao=alsa
works okay); - I have observed that the issues with one client (
mpv
) affect audio from another pulse clients. In particular I found that seeking around a video in mpv will occasionally interrupt very briefly the playback from quodlibet (a gstreamer-based audio player).