Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1056562: chromium: hevc decoding is not supported

84 views
Skip to first unread message

Jianfeng Liu

unread,
Nov 23, 2023, 2:00:06 AM11/23/23
to
Package: chromium
Version: 119.0.6045.159-1~deb12u1
Severity: normal
Tags: patch

Dear Maintainer,

There are two build flags of chromium: enable_platform_hevc and
enable_hevc_parser_and_hw_decoder which will enable hevc codecs on
chromium. I have already made a patch to enable it:
https://salsa.debian.org/amazingfate/chromium/-/commit/2665056127fdac3abe84863eca5497fa4a503dd1.patch
I'm working on enabling v4l2 hardware decoding for arm64 linux chromium.
I've made some progress and some of the patches are already merged
upstream. This patch will let debian support v4l2 hardware decoding out
of box in future release.

-- System Information:
Debian Release: 12.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: arm64 (aarch64)

Kernel: Linux 5.4.225-200.el7.aarch64 (SMP w/64 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages chromium depends on:
ii chromium-common 119.0.6045.159-1~deb12u1
ii libasound2 1.2.8-1+b1
ii libatk-bridge2.0-0 2.46.0-5
ii libatk1.0-0 2.46.0-5
ii libatomic1 12.2.0-14
ii libatspi2.0-0 2.46.0-5
ii libc6 2.36-9+deb12u3
ii libcairo2 1.16.0-7
ii libcups2 2.4.2-3+deb12u4
ii libdbus-1-3 1.14.10-1~deb12u1
ii libdouble-conversion3 3.2.1-1
ii libdrm2 2.4.114-1+b1
ii libevent-2.1-7 2.1.12-stable-8
ii libexpat1 2.5.0-1
ii libflac12 1.4.2+ds-2
ii libfontconfig1 2.14.1-4
ii libfreetype6 2.12.1+dfsg-5
ii libgbm1 22.3.6-1+deb12u1
ii libgcc-s1 12.2.0-14
ii libglib2.0-0 2.74.6-2
ii libgtk-3-0 3.24.38-2~deb12u1
ii libjpeg62-turbo 1:2.1.5-2
ii libjsoncpp25 1.9.5-4
ii liblcms2-2 2.14-2
ii libminizip1 1.1-8+b1
ii libnspr4 2:4.35-1
ii libnss3 2:3.87.1-1
ii libopenh264-7 2.3.1+dfsg-3
ii libopenjp2-7 2.5.0-2
ii libopus0 1.3.1-3
ii libpango-1.0-0 1.50.12+ds-1
ii libpng16-16 1.6.39-2
ii libpulse0 16.1+dfsg1-2+b1
ii libsnappy1v5 1.1.9-3
ii libstdc++6 12.2.0-14
ii libwebp7 1.2.4-0.2+deb12u1
ii libwebpdemux2 1.2.4-0.2+deb12u1
ii libwebpmux3 1.2.4-0.2+deb12u1
ii libwoff1 1.0.2-2
ii libx11-6 2:1.8.4-2+deb12u2
ii libxcb1 1.15-1
ii libxcomposite1 1:0.4.5-1
ii libxdamage1 1:1.1.6-1
ii libxext6 2:1.3.4-1+b1
ii libxfixes3 1:6.0.0-2
ii libxkbcommon0 1.5.0-1
ii libxml2 2.9.14+dfsg-1.3~deb12u1
ii libxnvctrl0 525.85.05-3~deb12u1
ii libxrandr2 2:1.5.2-2+b1
ii libxslt1.1 1.1.35-1
ii zlib1g 1:1.2.13.dfsg-1

Versions of packages chromium recommends:
ii chromium-sandbox 119.0.6045.159-1~deb12u1

Versions of packages chromium suggests:
pn chromium-driver <none>
pn chromium-l10n <none>
pn chromium-shell <none>

Versions of packages chromium-common depends on:
ii libc6 2.36-9+deb12u3
ii libgcc-s1 12.2.0-14
ii libjsoncpp25 1.9.5-4
ii libstdc++6 12.2.0-14
ii libx11-6 2:1.8.4-2+deb12u2
ii libxnvctrl0 525.85.05-3~deb12u1
ii x11-utils 7.7+5
ii xdg-utils 1.1.3-4.1
ii zlib1g 1:1.2.13.dfsg-1

Versions of packages chromium-common recommends:
ii chromium-sandbox 119.0.6045.159-1~deb12u1
ii fonts-liberation 1:1.07.4-11
ii libgl1-mesa-dri 22.3.6-1+deb12u1
ii libu2f-udev 1.1.10-3
ii notification-daemon 3.20.0-4+b1
ii system-config-printer 1.5.18-1
ii upower 0.99.20-2

Versions of packages chromium-sandbox depends on:
ii libc6 2.36-9+deb12u3

-- no debconf information

Andres Salomon

unread,
Nov 24, 2023, 12:40:05 PM11/24/23
to
At least on my platform (amd64), enable_platform_hevc is automatically
set to true:

enable_hevc_parser_and_hw_decoder =
proprietary_codecs &&
(use_fuzzing_engine || is_win || is_apple || is_android ||
is_linux)

enable_platform_hevc =
proprietary_codecs && (enable_hevc_parser_and_hw_decoder ||


buildflag_header("media_buildflags") {
[...]
flags = [
[...]
"ENABLE_PLATFORM_HEVC=$enable_platform_hevc",

dilinger@hm90:~/sid-build/chromium-119.0.6045.159$ grep -q
"ENABLE_PLATFORM_HEVC=true" out/Release/toolchain.ninja; echo $?

0

Where is arm64 disabling it?

Jianfeng Liu

unread,
Nov 24, 2023, 9:00:05 PM11/24/23
to
Hi Andres,
I just rebuilt chromium v119 without those two options and hevc hardware decoder is detected. It seems that upstream has fixed it since v108: https://github.com/chromium/chromium/commit/6078f10cb2b2957f9718adb636851a2715fd38d4. These two options are copied from old build and I haven't checked if they are necessary on new releases. Sorry about your time, please close this bug.

Andres Salomon <dili...@queued.net> 于2023年11月25日周六 01:28写道:
0 new messages