omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Snapdragon: Omarchy's Chromium build has no V4L2 decoder, so browser video never uses the video chip

Open monkey1911 opened this issue 1 day ago • 3 comments

System

  • Microsoft Surface Pro 11 (Snapdragon X, x1e80100), aarch64
  • Omarchy 4.6.0rc2-1, linux-omarchy 7.3.6-20
  • omarchy/chromium 158.0.8127.107-1 (Packager: Omarchy) compared with extra/chromium 158.0.8127.88-2 (Arch Linux ARM Build System)

What's wrong

omarchy-install-video-decode adds AcceleratedVideoDecoder and --use-angle=gles-egl to the Chromium and Chrome flags because, as its comment says, Arch Linux ARM's Chromium needs them to turn on its V4L2 decoder. But the [omarchy] repo comes before [extra] and ships its own chromium with a higher version, so pacman -S chromium installs Omarchy's build. Its chromium.args.arm64.gn (omacom/omarchy-chromium) doesn't set use_v4l2_codec, so the flags have nothing to turn on, and every video in the browser decodes in software.

Arch Linux ARM's PKGBUILD builds with use_vaapi=false and use_v4l2_codec=true.

Evidence

Same machine, same flags file (AcceleratedVideoDecoder, WebRtcPipeWireCamera, --use-angle=gles-egl confirmed on the running process), same YouTube video (1080p AV1). From chrome://media-internals:

omarchy/chromium 158.0.8127.107-1:

Cannot select DecryptingVideoDecoder ... kUnsupportedEncryptionMode
Cannot select VaapiVideoDecoder for video decoding. status=DecoderStatus::Codes::kUnsupportedConfig
Cannot select VpxVideoDecoder ... kUnsupportedConfig
Selected Dav1dVideoDecoder for video decoding, config: codec: av1, ... coded size: [1920,1080]
kIsPlatformVideoDecoder: false

extra/chromium 158.0.8127.88-2:

Cannot select DecryptingVideoDecoder ... kUnsupportedEncryptionMode
VideoDecoderPipeline |decoder_| Initialize() successful
Selected V4L2VideoDecoder for video decoding, config: codec: av1, ... coded size: [1920,1080]
kIsPlatformVideoDecoder: true

Google Chrome (158.0.8127.107) and Brave (1.100.59) also only offer VaapiVideoDecoder and fall back to Dav1dVideoDecoder. There's no VA-API driver for the Snapdragon video chip, so on Snapdragon only Arch Linux ARM's Chromium reaches it.

The video chip itself works: outside the browser, ffmpeg's h264_v4l2m2m, hevc_v4l2m2m and vp9_v4l2m2m decode 1080p test clips bit-exact against software, using 9–25x less CPU, and mpv uses them through hwdec=auto-safe,v4l2m2m-copy.

Possible fixes

  • Build Omarchy's arm64 Chromium with use_v4l2_codec = true (and likely use_vaapi = false, as Arch Linux ARM does) in chromium.args.arm64.gn; or
  • don't override extra/chromium on aarch64-qualcomm, and keep Omarchy's patches elsewhere.

I haven't built Omarchy's Chromium with the V4L2 setting to test it, and I haven't checked other Snapdragon machines or measured CPU use in the browser.

Drafted by Claude Opus 5.5 via Claude Code.

monkey1911 avatar Dec 02 '26 08:12 monkey1911

Some context on scope: since b10da7e59 ("Make Google Chrome the default browser for new installs"), the default browser is Google Chrome, and #20385 offers existing users the switch too. On Snapdragon, Chrome can't reach the video chip at all: Google's arm64 build only has VaapiVideoDecoder, and there's no VA-API driver for this hardware. The media logs above show that, and the AcceleratedVideoDecoder and --use-angle=gles-egl flags that omarchy-chromium-add-feature puts in chrome-flags.conf change nothing.

So on the default setup, every Snapdragon machine decodes browser video on the CPU. Fixing Omarchy's Chromium build helps only people who pick Chromium. For the default browser, the options I can see are a VA-API driver for the video chip (none exists yet, as far as I know), or making Arch Linux ARM's V4L2-enabled Chromium the default on aarch64-qualcomm.

Drafted by Claude Opus 5.5 via Claude Code.

monkey1911 avatar Dec 02 '26 08:12 monkey1911

The active aarch64 Chromium recipe in omarchy-pkgs leaves use_v4l2_codec at Chromium’s default of false. The ARM pacman config puts [omarchy] first, so the installed package lacks the decoder that the Snapdragon flags are meant to enable. That matches your same-machine AV1 comparison. Package recipe

Chromium 158 can build both backends, keep VA-API as the default, and select V4L2 through PreferV4L2VideoAcceleration. That gives the package maintainer a candidate to test on Snapdragon. The worker lacks an Iris decoder. The VA-API drafts could also help the default Google Chrome and still need an installed-package AV1 test. Decoder selection · Kernel draft · Driver draft

GPT-6.2 Sol High, Opus 5.5 High, and muse-wonder via pi (high) checked the diagnosis. Opus identified the AV1 build default that changes when VA-API is disabled.

omarchybot avatar Dec 02 '26 15:12 omarchybot

Omarchy Chromium now includes V4L2 on aarch64 and is live on edge, rc, and stable. On the Surface Pro 11, monkey1911 confirmed that the same 1080p AV1 clip switched from to after applying #21353 at . That PR adds the Snapdragon decoder flag and will close this issue when merged. Package release · Playback confirmation

GPT-6.2 Sol High in Codex and Opus 5.5 High and muse-wonder via pi, thinking high checked the source and agreed that the fix covers the reported Chromium playback. The reviewers saw the same evidence summary, so independence is unverified.

omarchybot avatar Dec 03 '26 00:12 omarchybot