Playback stutters on unpause after being paused for a while with wasapi audio
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
mpv version:
mpv 1c9c2f5 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
built on Dec 10 2023 12:02:48
libplacebo version: v6.338.0-62-g52314e0-dirty
FFmpeg version: N-112938-g12e25af7a
FFmpeg library versions:
libavutil 58.32.100
libavcodec 60.35.100
libavformat 60.18.100
libswscale 7.6.100
libavfilter 9.14.100
libswresample 4.13.100
Windows version:
Edition Windows 11 Home
Version 22H2
Installed on 12/18/2023
OS build 22621.3007
Experience Windows Feature Experience Pack 1000.22681.1000.0
mpv binary:
0.37.0 from Shinchiro, x86_64-v3
GPU model, driver and version:
integrated graphics Radeon 780M on 7840U AMD proc
Reproduction steps
- Grab a video, say this one: https://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4
- mpv --no-config BigBuckBunny_320x180.mp4
- press space bar to pause
- Wait for 10 seconds (longer pauses make it more likely to run into the bug)
- press space bar to unpause
Expected behavior
on step 5, playback should be nice and smooth.
Actual behavior
on step 5, I get a frame or two, a stutter/hiccup of maybe 1/4-1/2 second, then normal playback
If instead I run mpv with --ao=openal or --ao=sdl, the problem does not reproduce. It seems to be a wasapi problem.
Log file
Sample files
Probably any .mp4 file (or any movie) but I did test with BigBuckBunny as indicated in step 1.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with mpv --no-config BigBuckBunny_320x180.mp4, pausing for at least 10 seconds, and read the provided log.txt. Compare WASAPI with the reported OpenAL and SDL runs to narrow the audio-backend behavior. Done means playback resumes without the reported frame drop or 1/4–1/2 second stutter after a long pause.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- cli, desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100