-
-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pi 400 and Debian Bullseye aarch64: Hardware Acceleration does not work #5013
Comments
not sure how up-to-date this post is https://forums.raspberrypi.com/viewtopic.php?t=275370
|
Note that the guide you followed is for Raspberry Pi OS 32-bit Buster while you use a 64-bit Bullseye image. That the 64-bit Chromium does not support hardware acceleration on RPi may be outdated. I remember that time there was no I guess it makes sense that we enable EGL by default, probably this is done by default with that build, but just to check whether it makes a difference: sed -i '1s/$/ --use-gl=egl/' /etc/chromium.d/custom_flags
sed -i '1s/$/ --use-gl=egl/' /root/.chromium-browser.init Run the browser as root user while testing, to rule out any permission issues. If accelerated video playback works as root, the required permissions/groups can be applied for the unprivileged login user. Where do you get the info from that Could you try to remove the RPi camera kernel modules from the blacklist? With newer firmware, the legacy video decoding libraries are not used anymore, but V4L2 and libcamera instead. This was previously used only for the RPi camera module, hence we had those blacklisted when not having it enabled explicitly. Parts of those are now used (resp. can be used) for video/HEVC decoding. On Kodi this is the case at least, not sure whether the latest Chromium builds make use of it as well. Just to test it: rm /etc/modprobe.d/dietpi-disable_rpi_camera.conf
modprobe bcm2835_codec bcm2835_v4l2 None of |
I think I've found a possible solution. After checking the Youtube hardware accelerated out-of-the-box experience with a freshly installed RPiOS aarch64 bullseye image, I was curious what that ootb-thing wasnt possible with dietpi so far. While RPiOS plays any youtube video hardware accelerated in chromium without any quirks, just ootb, dietpi fails. So I restarted step-by-step and was "victorious" at the end ;-). What I've done:
=> done. Now I see "VDAVideoDecoder" on any full-HD youtub video (with the CTRL+SHIFT+i debugging console). What's funny: Chromium tells me via chrome://gpu "Video decode: Software accelerated". Maybe a bug in the interface? So please feel free to verify my case and solution :). In my opinion, the chromium-codecs-ffmpeg-extra, FFMPEG and maybe the fbturbo-driver package should be installed/bundled with the "chromium-meta-package" Second the RPI-camera modules should be loaded by default. Have a nice evening and stay healthy! K. |
There is one huge difference I guess. You used RPi OS Buster while we use RPi OS Bullseye to build DietPi. On Bullseye a different version if Kodi is used. It's Kodi18 on Buster vs Kodi19 on Bullseye. |
Sorry, I made a mistake. It was indeed a RPiOS bullseye image, not buster. Sorry! |
It's about Chromium. @Krawei The combination of
Not the module (hardware) itself, or all related kernel modules, but the codec module at least. I need to ask Dom to verify which ones are used for video decoding and which ones by the actual RPi camera hardware only. |
Issue solved with: f11e29e Changelog: dcaa15c |
Creating a bug report/issue
Required Information
DietPi version |
cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=7
G_DIETPI_VERSION_SUB=8
G_DIETPI_VERSION_RC=2
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
G_LIVE_PATCH_STATUS[0]='applied'
G_LIVE_PATCH_STATUS[1]='applied'
G_LIVE_PATCH_STATUS[2]='applied'
Distro version |
echo $G_DISTRO_NAME $G_RASPBIAN
bullseye 0
Kernel version |
uname -a
Linux Pi400 5.10.63-v8+ #1488 SMP PREEMPT Thu Nov 18 16:16:16 GMT 2021 aarch64 GNU/Linux
SBC model |
echo $G_HW_MODEL_NAME
or (EG: RPi3)RPi 400 (aarch64)
Power supply used | (EG: 5V 1A RAVpower)
5V 3A
SDcard used | (EG: SanDisk ultra)
SanDisk Ultra
Additional Information (if applicable)
freshly installed
-yes
Steps to reproduce
Expected behaviour
Actual behaviour
Chromium is using the FFMPEGVideoDecoder
vainfo is crashing for an unknown reason:
$ vainfo
libva info: VA-API version 1.10.0
libva info: Trying to open /usr/lib/aarch64-linux-gnu/dri/vc4_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
Extra details
Chromium was being forced to use Hardware acceleration by issueing
$ chromium-browser --enable-features=VaapiVideoDecode. Under chrome:gpu it tells me:
"Video decode: Hardware accelerated"
Switching the Display drivers from full to fake kms via dietpi-config
didn't help solving the issue.
I noticed that dietpi-config is setting
dtoverlay=vc4-kms-v3d
instead of
dtoverlay=vc4-kms-v3d-pi4
. Could that be the issue?
The text was updated successfully, but these errors were encountered: