Audio stutters when playing YouTube videos in Chromium

Hello all,

since the last updates, I am experiencing stuttering audio when trying to play any video on YouTube using Chromium from the official repo.
Even more strange: When I stop the video or even close Chromium altogether, the last bits of audio played are still echoed for a few seconds to minutes. To stop this, I have to killall pipewire.

Interestingly, this only happens with Chromium - Firefox Nightly is not affected by that problem.

$ inxi -F
  Host: gerd-desktop Kernel: 5.19.0-1-MANJARO arch: x86_64 bits: 64
    Desktop: Xfce v: 4.16.0 Distro: Manjaro Linux
  Type: Desktop System: LENOVO product: 7034W12 v: ThinkCentre M91p
    serial: <superuser required>
  Mobo: LENOVO model: N/A serial: <superuser required> BIOS: LENOVO
    v: 9HKT58AUS date: 06/10/2014
  Info: quad core model: Intel Core i5-2400 bits: 64 type: MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 3193 min/max: 1600/3400 cores: 1: 3193 2: 3193 3: 3193
    4: 3193
  Device-1: NVIDIA GM107 [GeForce GTX 750 Ti] driver: nvidia v: 515.57
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2 driver: X:
    loaded: nvidia gpu: nvidia,nvidia-nvswitch resolution: 1: 1920x1080~60Hz
    2: 1920x1080~60Hz
  OpenGL: renderer: NVIDIA GeForce GTX 750 Ti/PCIe/SSE2
    v: 4.6.0 NVIDIA 515.57
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio
    driver: snd_hda_intel
  Device-2: NVIDIA GM107 High Definition Audio [GeForce 940MX]
    driver: snd_hda_intel
  Sound Server-1: ALSA v: k5.19.0-1-MANJARO running: yes
  Sound Server-2: PipeWire v: 0.3.54 running: yes
  Device-1: Intel 82579LM Gigabit Network driver: e1000e
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: 70:f3:95:1b:23:83
  Local Storage: total: 1.64 TiB used: 1.05 TiB (64.2%)
  ID-1: /dev/sda vendor: Intenso model: SSD SATAIII size: 447.13 GiB
  ID-2: /dev/sdb vendor: Western Digital model: WD3200AAKS-00L9A0
    size: 298.09 GiB
  ID-3: /dev/sdc vendor: Seagate model: ST31000333AS size: 931.51 GiB
  ID-1: / size: 430.59 GiB used: 271.84 GiB (63.1%) fs: ext4 dev: /dev/sda1
  ID-2: /home size: 899.56 GiB used: 803.97 GiB (89.4%) fs: ext4
    dev: /dev/sdc1
  ID-1: swap-1 type: partition size: 8.59 GiB used: 145.2 MiB (1.7%)
    dev: /dev/sda2
  System Temperatures: cpu: 76.0 C mobo: N/A
  Fan Speeds (RPM): N/A
  Processes: 251 Uptime: 1h 40m Memory: 7.72 GiB used: 5.03 GiB (65.2%)
  Shell: Bash inxi: 3.3.19


Does the issue happen on a more stable kernel too? I understand the urge to test the latest things, but 5.19 kernel is still experimental … Also, check the Chromium browser settings and what flags you are using. For example i use this in ~/.config/chromium-flags.conf

1 Like

Happens on 5.18, too, but fortunately, to a lesser extent.

Direct Rendering Display Compositor is not (yet) supported on Linux.

Doesn’t do any harm on my end, probably a leftover from when i was doing some tests …

Of course, it is currently simply ignored.

Tested now with kernel 5.15 (recommended as per Manjaro Settings tools). With this kernel, I do not observe significant stuttering anymore.
Looks like there is some glitch with pipewire and kernels >= 5.18, at least on snd_hda_intel, at least for me.

My chromium flags:

#--enable-accelerated-video-decode    #deprecated in favor of --enable-features=VaapiVideoDecoder


As I have two audio devices

I have now switched from the onboard audio to my graphics card - problems solved :smiley:

Apparently, my onboard sound is somehow faulty.