Stuttering with VAAPI on Linux Mint
mpv Information
mpv 0.37.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
libplacebo version: v6.338.2
FFmpeg version: 6.1.1-3ubuntu5
FFmpeg library versions:
libavutil 58.29.100
libavcodec 60.31.102
libavformat 60.16.100
libswscale 7.5.100
libavfilter 9.12.100
libswresample 4.12.100
Other Information
- Linux version: Linux Mint
- Kernel Version: 6.17.0-35-generic
- GPU Model: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series]
- Mesa/GPU Driver Version: Mesa 25.2.8-0ubuntu0.24.04.1
- Window Manager and Version: Linux Mint 22.3 - Cinnamon 64-bit
- Source of mpv: System Package Manager (apt)
- Issue started after the following happened: Reinstalling `amdgpu` related packages.
Reproduction Steps
Download test video with yt-dlp:
./yt-dlp_linux -f 303+251 https://youtu.be/6opX6gBL5gA
Run mpv with --hwdec=auto:
mpv --hwdec=auto Deputy\ Spike\ Feresten\ \[6opX6gBL5gA\].webm
Reduce playback speed until stuttering stops.
Expected Behavior
No stuttering.
Actual Behavior
https://github.com/user-attachments/assets/c2ee9e44-6971-47a7-99d5-48f3c447ce67
In this recording, I tested the playback speeds 0.23 and 0.25 (0.91 and 1.00 with a multiplier of 0.25). Stuttering at 0.23 but not 0.25.
Log File
Sample Files
https://drive.proton.me/urls/KP940YSSFG#7tE56jjhXyYx
Can also be obtained via yt-dlp:
./yt-dlp_linux -f 303+251 https://youtu.be/6opX6gBL5gA
I carefully read all instruction and confirm that I did the following:
- [x] I tested and confirmed that the issue exists with the latest release version or newer.
- [x] I provided all required information including system and mpv version.
- [x] I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of
--log-file=output.txt. - [x] I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
- [x] I attached the full, untruncated log file.
- [x] I attached the backtrace in the case of a crash.
mpv 0.37.0
Contact your distro for support instead. mpv upstream only provides support for the latest tagged release or newer
And your vaapi driver and 3d acceleration driver are somehow from two different versions of Mesa, so your system is just broken in non-trivial ways on top of that.
And your vaapi driver and 3d acceleration driver are somehow from two different versions of Mesa, so your system is just broken in non-trivial ways on top of that.
Ah that was it, I had both mesa-va-drivers and mesa-amdgpu-va-drivers installed, probably back when I was troubleshooting a different AMD driver issue. Uninstalling mesa-amdgpu-va-drivers fixed the stuttering.
Which lines of the log can I find the differing Mesa versions, by the way?
EDIT: Nevermind, just noticed it's different in the mpv log and glxinfo output.