You are not logged in.
I used to hear radio live streaming with mpv.
After system update at 2023-08-04_143246 (no mpv update) I get an
Audio device underrun detected.
but only after listening 7..9 minutes, before it's fine. The audio stops for a second, then plays, then stops...
During the last 2 minutes before the underrun I can see the mpv cache is degrading from ~ 10 seconds to 0, then the underrun occurs.
Viewing an live TV stream reduces the time to buffer underun to 2-3 minutes.
mpv with "--cache=no" is a workaround.
vlc works with the same radio live streaming.
Any hints or ideas, which package could be the root cause or which changed setting I missed ?
tested today after fully upgrade with
Linux mine 6.1.44-1-lts #1 SMP PREEMPT_DYNAMIC Tue, 08 Aug 2023 19:07:19 +0000 x86_64 GNU/Linuxmpv command line + example underrun:
mpv --no-config --terminal --force-window=no --no-resume-playback 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/96/seglist.m3u8'
(+) Audio --aid=1 (aac 2ch 48000Hz)
AO: [pipewire] 48000Hz stereo 2ch floatp
File: seglist.m3u8
Format/Protocol: hls
Total Cache: 413.44 KiB (10.7 sec)
Audio: aac (AAC (Advanced Audio Coding))
Channels: 2 Format: floatp
Sample Rate: 48000 Hz
Bitrate: 97 kbps
A: 00:00:05 / 00:00:15 (32%) Cache: 10s/411KB
[...]
File: seglist.m3u8
Size: 24.275 KiB Format/Protocol: hls
Audio: aac (AAC (Advanced Audio Coding))
Channels: 2 Format: floatp
Sample Rate: 48000 Hz
Bitrate: 100 kbps
A: 00:07:15 / 00:07:15 (100%) Cache: 0.0s
Audio device underrun detected.
File: seglist.m3u8
Size: 24.275 KiB Format/Protocol: hls
Total Cache: 118.11 KiB (3.1 sec)the issue appeared with changes at 2023-08-04_143246:
Package (44) Old Version New Version Net Change Download Size
extra/abseil-cpp 20230125.3-1 20230125.3-2 -0,06 MiB
extra/alsa-card-profiles 1:0.3.75-2 1:0.3.76-2 0,00 MiB
extra/audacity 1:3.3.2-1 1:3.3.3-1 0,00 MiB 8,33 MiB
core/binutils 2.40-6 2.41-2 0,71 MiB 7,59 MiB
core/btrfs-progs 6.3.2-1 6.3.3-1 -0,05 MiB 1,16 MiB
core/ca-certificates-mozilla 3.91-1 3.92-1 0,04 MiB
extra/chromium 115.0.5790.110-1 115.0.5790.170-1 0,02 MiB 91,04 MiB
extra/firefox 115.0.3-1 116.0-1 -25,27 MiB 62,09 MiB
core/gcc-libs 13.1.1-2 13.2.1-3 0,02 MiB 35,35 MiB
core/glibc 2.37-3 2.38-1 1,78 MiB 9,90 MiB
extra/glslang 12.3.1-1 12.3.1-2 0,00 MiB
core/gmp 6.2.1-2 6.3.0-1 0,02 MiB 0,43 MiB
extra/gspell 1.12.1-2 1.12.2-1 0,00 MiB
extra/gupnp 1:1.6.4-1 1:1.6.5-1 0,00 MiB 0,12 MiB
extra/harfbuzz 8.0.1-1 8.1.1-1 0,03 MiB 0,94 MiB
extra/harfbuzz-icu 8.0.1-1 8.1.1-1 0,00 MiB 0,01 MiB
extra/imagemagick 7.1.1.14-1 7.1.1.15-1 0,00 MiB 8,14 MiB
core/libarchive 3.7.0-2 3.7.1-1 0,00 MiB 0,52 MiB
extra/libcamera 0.0.5-1 0.1.0-1 -0,11 MiB
extra/libcamera-ipa 0.0.5-1 0.1.0-1 0,08 MiB
core/libelf 0.189-1 0.189-3 0,00 MiB 0,54 MiB
extra/libkscreen 5.27.6-1 5.27.7-1 0,00 MiB 0,38 MiB
extra/libpipewire 1:0.3.75-2 1:0.3.76-2 0,00 MiB
extra/libsysprof-capture 3.48.0-2 3.48.0-4 0,00 MiB 0,04 MiB
core/libtool 2.4.7+4+g1ec8fa28-4 2.4.7+4+g1ec8fa28-6 0,00 MiB 0,40 MiB
core/licenses 20220125-2 20230729-1 0,00 MiB 0,07 MiB
core/linux-api-headers 6.3-1 6.4-1 0,03 MiB 1,20 MiB
core/linux-lts 6.1.39-1 6.1.39-3 0,00 MiB 115,91 MiB
core/mpfr 4.2.0.p12-1 4.2.0.p12-3 0,00 MiB 0,42 MiB
extra/noto-fonts 1:23.7.1-1 1:23.8.1-1 0,00 MiB 27,01 MiB
core/nss 3.91-1 3.92-1 0,00 MiB
extra/openexr 3.1.9-1 3.1.10-1 0,00 MiB 1,19 MiB
core/openssl 3.1.1-1 3.1.2-1 -0,75 MiB 4,51 MiB
extra/pipewire 1:0.3.75-2 1:0.3.76-2 0,00 MiB
extra/pipewire-alsa 1:0.3.75-2 1:0.3.76-2 0,00 MiB
extra/pipewire-audio 1:0.3.75-2 1:0.3.76-2 0,14 MiB
extra/pipewire-pulse 1:0.3.75-2 1:0.3.76-2 0,00 MiB
extra/polkit 122-1 123-1 0,01 MiB 0,39 MiB
extra/qt5-base 5.15.10+kde+r135-1 5.15.10+kde+r145-1 0,00 MiB 13,08 MiB
extra/rubberband 3.2.1-1 3.3.0-1 3,99 MiB
core/systemd 253.7-1 254-1 0,89 MiB 7,61 MiB
core/systemd-libs 253.7-1 254-1 0,13 MiB 1,06 MiB
core/systemd-sysvcompat 253.7-1 254-1 0,00 MiB 0,01 MiB
extra/thunderbird 115.0.1-1 115.1.0-1 0,02 MiB 55,98 MiBmpv with -v flag
[statusline] A: 00:06:51 / 00:06:55 (99%) Cache: 4.6s/178KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/96/seglist.m3u8' for reading
[statusline] A: 00:06:51 / 00:06:55 (99%) Cache: 4.6s/178KB
[ffmpeg/demuxer] hls: Skip ('#EXT-X-VERSION:3')
[ffmpeg/demuxer] hls: Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[statusline] A: 00:06:51 / 00:06:55 (99%) Cache: 3.9s/150KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365666.ts' for reading
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365667.ts' for reading
[statusline] A: 00:06:58 / 00:07:03 (99%) Cache: 5.3s/206KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/96/seglist.m3u8' for reading
[statusline] A: 00:06:58 / 00:07:03 (99%) Cache: 5.3s/206KB
[ffmpeg/demuxer] hls: Skip ('#EXT-X-VERSION:3')
[ffmpeg/demuxer] hls: Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[statusline] A: 00:06:59 / 00:07:03 (99%) Cache: 4.5s/172KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365668.ts' for reading
[statusline] A: 00:07:03 / 00:07:07 (99%) Cache: 4.4s/171KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/96/seglist.m3u8' for reading
[ffmpeg/demuxer] hls: Skip ('#EXT-X-VERSION:3')
[ffmpeg/demuxer] hls: Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[statusline] A: 00:07:04 / 00:07:07 (99%) Cache: 3.5s/137KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365669.ts' for reading
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365670.ts' for reading
[statusline] A: 00:07:11 / 00:07:15 (99%) Cache: 4.3s/166KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/96/seglist.m3u8' for reading
[ffmpeg/demuxer] hls: Skip ('#EXT-X-VERSION:3')
[ffmpeg/demuxer] hls: Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[statusline] A: 00:07:12 / 00:07:15 (99%) Cache: 3.5s/134KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365671.ts' for reading
[statusline] A: 00:07:12 / 00:07:15 (99%) Cache: 3.4s/132KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365672.ts' for reading
[statusline] A: 00:07:16 / 00:07:19 (99%) Cache: 3.2s/125KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/96/seglist.m3u8' for reading
[statusline] A: 00:07:16 / 00:07:19 (99%) Cache: 3.2s/125KB
[ffmpeg/demuxer] hls: Skip ('#EXT-X-VERSION:3')
[ffmpeg/demuxer] hls: Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[statusline] A: 00:07:17 / 00:07:19 (100%) Cache: 2.0s/76KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365673.ts' for reading
[statusline] A: 00:07:25 / 00:07:27 (100%) Cache: 1.9s/72KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/96/seglist.m3u8' for reading
[statusline] A: 00:07:25 / 00:07:27 (100%) Cache: 1.9s/73KB
[ffmpeg/demuxer] hls: Skip ('#EXT-X-VERSION:3')
[ffmpeg/demuxer] hls: Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[statusline] A: 00:07:26 / 00:07:27 (100%) Cache: 0.9s/34KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365674.ts' for reading
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365675.ts' for reading
[statusline] A: 00:07:31 / 00:07:31 (100%) Cache: 0.5s/20KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/96/seglist.m3u8' for reading
[ffmpeg/demuxer] hls: Skip ('#EXT-X-VERSION:3')
[ffmpeg/demuxer] hls: Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[statusline] A: 00:07:31 / 00:07:31 (100%) Cache: 0.0s
[cplayer] Audio device underrun detected.
[cplayer] Enter buffering (buffer went from 100% -> 0%) [0.000000s].
[statusline] (Buffering) A: 00:07:32 / 00:07:31 (100%) Cache: 0.0s
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365676.ts' for reading
[cplayer] Still buffering (buffer went from 0% -> 2%) [0.021333s].
[cplayer] Still buffering (buffer went from 2% -> 6%) [0.064000s].
[statusline] (Buffering) A: 00:07:32 / 00:07:32 (100%) Cache: 0.1s/3KB
[cplayer] Still buffering (buffer went from 6% -> 2%) [0.021333s].
[cplayer] Still buffering (buffer went from 2% -> 0%) [0.000000s].
[statusline] (Buffering) A: 00:07:32 / 00:07:32 (100%) Cache: 0.0s
[cplayer] Still buffering (buffer went from 0% -> 2%) [0.021333s].
[cplayer] Still buffering (buffer went from 2% -> 0%) [0.000000s].
[cplayer] Still buffering (buffer went from 0% -> 2%) [0.021333s].
[statusline] (Buffering) A: 00:07:32 / 00:07:32 (100%) Cache: 0.0s/1KB
[cplayer] Still buffering (buffer went from 2% -> 0%) [0.000000s].
[cplayer] Still buffering (buffer went from 0% -> 4%) [0.042667s].
[cplayer] Still buffering (buffer went from 4% -> 6%) [0.064000s].
[statusline] (Buffering) A: 00:07:32 / 00:07:32 (100%) Cache: 0.1s/3KB
[cplayer] Still buffering (buffer went from 6% -> 27%) [0.277333s].
[cplayer] Still buffering (buffer went from 27% -> 49%) [0.490667s].
[statusline] (Buffering) A: 00:07:32 / 00:07:32 (100%) Cache: 0.5s/18KB
[cplayer] Still buffering (buffer went from 49% -> 53%) [0.533333s].
[cplayer] Still buffering (buffer went from 53% -> 55%) [0.554667s].
[statusline] (Buffering) A: 00:07:32 / 00:07:32 (100%) Cache: 1.0s/38KB
[cplayer] End buffering (waited 1.407743 secs) [1.301333s].
[cplayer] restarting audio after underrun
[statusline] A: 00:07:34 / 00:07:35 (100%) Cache: 1.6s/61KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365677.ts' for reading
[statusline] A: 00:07:38 / 00:07:39 (100%) Cache: 1.7s/66KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/96/seglist.m3u8' for reading
[ffmpeg/demuxer] hls: Skip ('#EXT-X-VERSION:3')
[ffmpeg/demuxer] hls: Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[statusline] A: 00:07:39 / 00:07:39 (100%) Cache: 0.7s/25KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365678.ts' for reading
[statusline] A: 00:07:42 / 00:07:43 (100%) Cache: 1.0s/37KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365679.ts' for reading
[statusline] A: 00:07:46 / 00:07:47 (100%) Cache: 1.3s/48KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/96/seglist.m3u8' for reading
[statusline] A: 00:07:46 / 00:07:47 (100%) Cache: 1.3s/49KB
[ffmpeg/demuxer] hls: Skip ('#EXT-X-VERSION:3')
[ffmpeg/demuxer] hls: Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[statusline] A: 00:07:47 / 00:07:47 (100%) Cache: 0.1s/5KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365680.ts' for reading
[statusline] A: 00:07:51 / 00:07:51 (100%) Cache: 0.4s/16KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365681.ts' for reading
[statusline] A: 00:07:54 / 00:07:55 (100%) Cache: 0.7s/28KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/96/seglist.m3u8' for reading
[ffmpeg/demuxer] hls: Skip ('#EXT-X-VERSION:3')
[ffmpeg/demuxer] hls: Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[statusline] A: 00:07:55 / 00:07:55 (100%) Cache: 0.0s
[cplayer] Audio device underrun detected.
[cplayer] Enter buffering (buffer went from 100% -> 0%) [0.000000s].
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365682.ts' for reading
[statusline] (Buffering) A: 00:07:56 / 00:07:55 (100%) Cache: 0.0s
[cplayer] Still buffering (buffer went from 0% -> 2%) [0.021333s].
[cplayer] End buffering (waited 1.568001 secs) [1.749333s].
[statusline] A: 00:07:56 / 00:07:57 (100%) Cache: 1.7s/67KB
[cplayer] restarting audio after underrun
[statusline] A: 00:07:58 / 00:07:59 (100%) Cache: 1.6s/62KB
[ffmpeg] https: Opening 'https://wdrhf.akamaized.net/hls/live/2027995-b/wdr4/T1691619383/96/segment-36365683.ts' for readingLast edited by ua4000 (2023-08-11 18:54:52)
Offline
Sounds like this
Last edited by dogknowsnx (2023-08-11 14:36:05)
Thank very much!
Yes, seems this is my bug, core/glibc 2.38-1 / posix_memalign regression.
I'm using yt-dlp too, and, since mentioned, I see also the high cpu usage too.
The mentioned workaround
LD_PRELOAD=`jemalloc-config --libdir`/libjemalloc.so.`jemalloc-config --revision` mpv ...works for me.
I will set this to solved and wait for a bugfix from upstream.
Have a great weekend !
Offline