Window Manager and Version: none (running directly from TTY in minimal Debian Testing install)
Source mpv: Debian/apt's Testing repository
Introduced in version: unsure, as the issue occurs on both Debian Stable (mpv 0.35.1-4) as well as Testing (0.38.0-1)
Reproduction Steps
Download any test file (in my case, I used yt-dlp https://youtu.be/T0U9ou0HOgY).
Play it with --no-config and provide --audio-device=alsa/plughw:CARD=HDMI,DEV=3 (HDMI output to TV)
Play it with the same options as in 2. but enable hardware decoding with --hwdec.
Expected Behavior
MPV plays the file without issues.
Actual Behavior
The video starts playing, but the audio seems to be 'dropping frames', in that it's very choppy and tends to get worse over time.
The 'choppiness' is also not constant - sometimes it's almost entirely gone, and other times the audio is barely understandable.
Sometimes, the video ends up freezing (once again, not always, but more common when not using --hwdec) as if the 'pause' button had been pressed. Checking the console log, there's always an entry with 'Audio device underrun detected' after this happens. However, I have noticed it is possible for those entries to appear without the video freezing, too.
This is the file I have used to generate the logs above.
I carefully read all instruction and confirm that I did the following:
[X] I tested with the latest mpv version to validate that the issue is not already fixed.
[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 Information
Other Information
Debian GNU/Linux trixie/sid
Linux nucleus 6.7.12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.7.12-1 (2024-04-24) x86_64 GNU/Linux
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 09)
Mesa 22.3.6 (LLVM 15.0.6)
Reproduction Steps
yt-dlp https://youtu.be/T0U9ou0HOgY
).--no-config
and provide--audio-device=alsa/plughw:CARD=HDMI,DEV=3
(HDMI output to TV)--hwdec
.Expected Behavior
MPV plays the file without issues.
Actual Behavior
The video starts playing, but the audio seems to be 'dropping frames', in that it's very choppy and tends to get worse over time.
The 'choppiness' is also not constant - sometimes it's almost entirely gone, and other times the audio is barely understandable.
Sometimes, the video ends up freezing (once again, not always, but more common when not using
--hwdec
) as if the 'pause' button had been pressed. Checking the console log, there's always an entry with 'Audio device underrun detected' after this happens. However, I have noticed it is possible for those entries to appear without the video freezing, too.Log File
Without
--hwdec
(file played until the end): output-without-hwdec.txtWith
--hwdec
(file paused and I quit mpv manually with 'q'): output-with-hwdec.txtSample Files
I have downloaded this Numberphile video and cut it down to 30 seconds (to be able to upload it) with:
This results in the following file: https://github.com/mpv-player/mpv/assets/59916540/25415712-cbcd-4310-b26b-da64b98d0cf0
This is the file I have used to generate the logs above.
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt
.