On 01/02/2022 15.57, ToddAndMargo via users wrote:
On 1/31/22 19:43, Eyal Lebedinsky wrote:
> I am on f34 5.15.16-100.fc34.x86_64
>
> This problem started recently (a few weeks, maybe a little longer?).
>
> Initially I noticed audio hiccups when playing mythtv recordings. At times there was
also video noise
> but not always.
>
> I then found that playing audio from a network stream (with vlc) also had hiccups.
The sound would
> stop and start, sometime even repeat a fraction of a second.
>
> I now played a track from a local disk and the same issues were heard.
>
> There are no messages to indicate a problem. I then used 'mplayer' which has
more console messages
> and I now can see an issue:
>
> ==========================================================================
> Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
> libavcodec version 58.134.100 (external)
> Mismatching header version 58.130.100
> AUDIO: 44100 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->176400)
> Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio)
> ==========================================================================
> [AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
> AO: [sdl] 44100Hz 2ch s16le (2 bytes per sample)
> Video: no video
> Starting playback...
> A: 49.9 (49.8) of 278.4 (04:38.4) 0.6%
> Audio device got stuck!
> A: 49.9 (49.8) of 278.4 (04:38.4) 0.6%
> Audio device got stuck!
> A: 50.3 (50.3) of 278.4 (04:38.4) 0.6%
> Audio device got stuck!
> A: 50.3 (50.3) of 278.4 (04:38.4) 0.6%
> Audio device got stuck!
> A: 50.4 (50.3) of 278.4 (04:38.4) 0.6%
> Audio device got stuck!
> A: 50.4 (50.3) of 278.4 (04:38.4) 0.6%
> A: 165.7 (02:45.7) of 278.4 (04:38.4) 0.6%
> Audio device got stuck!
> A: 165.7 (02:45.7) of 278.4 (04:38.4) 0.6%
> Audio device got stuck!
> A: 165.8 (02:45.7) of 278.4 (04:38.4) 0.6%
> Audio device got stuck!
> A: 165.8 (02:45.7) of 278.4 (04:38.4) 0.6%
> Audio device got stuck!
>
> Here are the sound devices:
>
> $ aplay --list-devices
> **** List of PLAYBACK Hardware Devices ****
> card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> card 0: PCH [HDA Intel PCH], device 1: ALC887-VD Digital [ALC887-VD Digital]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
> Subdevices: 0/1
> Subdevice #0: subdevice #0
> card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
>
> I get similar problems with [HDMI 3] and with [ALC887-VD Analog] selected using
pavucontrol.
>
> lspci shows
> Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
>
> What can I do now to diagnose the problem?
>
> One more data point: for a long time (many months) I had a problem where the system
locks up hard
> needing a cold restart. There were no hiccups otherwise. It always had mythtv playing
or YouTube.
> When locked the sound of the last second would loop continuously until the reset. The
video is frozen then.
> Maybe related? This is a long running problem (happens once every few months) but the
audio stutter
> is a recent, new issue.
>
> TIA
>
Try VLC. Let us know.
As I said I did use vlc (actually cvlc) first.
Also, what is your CPU % usage. htop or equivalent
i7-9700, 32GB, mostly idle
top says:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5450 eyal 9 -11 348724 94568 6636 S 10.9 0.3 28:47.79 pipewire-pulse
2292235 eyal 20 0 1774228 108928 83004 S 4.6 0.3 0:03.42 vlc
5449 eyal 9 -11 374888 44600 8316 S 3.0 0.1 12:25.18 pipewire
--
Eyal Lebedinsky (fedora(a)eyal.emu.id.au)