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
System:
  Host: gerd-desktop Kernel: 5.19.0-1-MANJARO arch: x86_64 bits: 64
    Desktop: Xfce v: 4.16.0 Distro: Manjaro Linux
Machine:
  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
CPU:
  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
Graphics:
  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
Audio:
  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
Network:
  Device-1: Intel 82579LM Gigabit Network driver: e1000e
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: 70:f3:95:1b:23:83
Drives:
  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
Partition:
  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
Swap:
  ID-1: swap-1 type: partition size: 8.59 GiB used: 145.2 MiB (1.7%)
    dev: /dev/sda2
Sensors:
  System Temperatures: cpu: 76.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 251 Uptime: 1h 40m Memory: 7.72 GiB used: 5.03 GiB (65.2%)
  Shell: Bash inxi: 3.3.19

Hello,

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

--enable-accelerated-2d-canvas
--enable-accelerated-video-decode
--enable-accelerated-mjpeg-decode
--enable-drdc
--enable-features=ParallelDownloading,UnexpireFlagsM90,VaapiVideoEncoder,VaapiVideoDecoder,CanvasOopRasterization
--enable-gpu-compositing
--enable-native-gpu-memory-buffers
--enable-gpu-rasterization
--enable-oop-rasterization
--enable-raw-draw
--enable-zero-copy
--ignore-gpu-blocklist
--disable-features=UseChromeOSDirectVideoDecoder
--ignore-gpu-blocklist
--use-gl=desktop
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-2d-canvas
--enable-accelerated-vpx-decode=3
#--enable-accelerated-video-decode    #deprecated in favor of --enable-features=VaapiVideoDecoder
--enable-accelerated-mjpeg-decode
--enable-display-list-2d-canvas
--enable-experimental-web-platform-features
--enable-fast-unload
--enable-font-antialiasing
--enable-gpu-async-worker-context
--enable-gpu-compositing
--enable-gpu-rasterization
--enable-hardware-overlays
--enable-native-gpu-memory-buffers
--enable-oop-rasterization
--enable-zero-copy
--new-canvas-2d-api
--disable-software-rasterizer
--disable-gpu-driver-bug-workarounds
--disable-gpu-driver-workarounds
--disable-gpu-vsync
--enable-features=VaapiVideoDecoder,ParallelDownloading,UnexpireFlagsM90,VaapiVideoEncoder,CanvasOopRasterization,RawDraw,VaapiIgnoreDriverChecks
--disable-features=UseChromeOSDirectVideoDecoder
--use-vulkan
--ignore-gpu-blocklist
--use-gl=desktop
--num-raster-threads=6
--ozone-platform=x11
--ozone-platform-hint=x11

Update:

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.