mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
Rock64 (rk3328) hw acceleration #83
Labels
No labels
bug
enhancement
help wanted
invalid
pull-request
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/ffmpeg-rockchip#83
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fenouil-r on GitHub (Aug 2, 2024).
Hello, thank you for the great work.
I'm trying to use hardware acceleration of a Rock64 board (rk3328) for Frigate.
The board is currently running OMV5 on debian from an old 'Ayufan' release. I just updated the kernel from time to time.
I thought it would be easy with the '-rk' docker images provided by Frigate, but it looks like I need a BSP kernel, and this is where the adventure starts :)
I'm not familiar with linux kernels nor ffmpeg and hw acceleration... So total beginner here.
I also discover that there are 'many' kernel options for this board, and sometimes difficult to understand where they come from (BSP, Ayufan, mainline, ...).
I created an issue there and got help from NickM-27 and MarcA711.
Most information in this post is duplicated from there.
My current kernel is '6.0.0-1164-ayufan-ga2fd0c498'.
I think (but not sure) it's not based on BSP so it can explains why I get an error message when testing ffmpeg from the container (copied from linked issue):
I get:
I cannot install any of 5.10, 6.1, or 6.10 kernel (BSP versions provided by rockchip) from my package manager, so I'm trying to find it somewhere else.
I noticed LibreElec (LE) provides images using these exact versions, so I suspect they are based on BSP (but not sure).
I tried to load LE12 (kernel 6.1) and launch the static build of ffmpeg as suggested by MarcA711 but got the same error message (exact log also in linked issue).
I also noticed here that rockchip plans to support rk3328 only up to kernel 5.1.
However I could not test this version with LibreElec as their userspace is 32bit in this version.
Sorry for the long question, and mostly duplicated information from linked issue.
Any help on getting the HW acceleration working on my board would be appreciated.
Also opened a thread on LE forum to gather information from them too :)
Not sure if Ayufan is still active on rockchip linux, will try to contact him too and let you know.
If you prefer, feel free to close the issue and answer in Frigate linked issue.
Thank you !
@nyanmisaka commented on GitHub (Aug 20, 2024):
This ffmpeg fork has only been tested for the rk35xx series. I have no experience with the rk33xx, but anyway this fork will not work in the mainline kernel. You need the BSP kernel.
@fenouil-r commented on GitHub (Aug 21, 2024):
Ok thank you for the information.
MarcA711 Spotted a set of patch submitted for ffmpeg here.
I hope it'll make its way and allow hw acceleration to work for this chip in the (not too far) future.