Skip to content
Liangbin Lian edited this page Jun 10, 2024 · 15 revisions

Welcome to the ffmpeg-rk wiki!

CHS:

本项目是支持 Rockchip SoC 的 FFmpeg 版本,支持 MPP 硬件编解码,支持 RGA 硬件缩放。

尝试之前先确保自己安装的固件或内核已经开启了 MPP ,RGA 以及 DRM 支持,如果支持,系统里面一般会有 /proc/mpp_service/dev/rga/dev/dri/dev/dma_heap 等文件。/dev/dri/dev/dma_heap 必须至少存在一个,而且不能存在 /dev/ion,如果有就删掉。
如果运行时出现问题,先尝试 root 用户执行看有没有问题,如果没问题,那只是权限的限制,不要问我怎么修正权限,这是基础知识。

目前 RK35XX 系列的 iStoreOS 固件已经支持上述特性。可以从这里下载体验 https://fw.koolcenter.com/iStoreOS/

ffmpeg-rk:

编译/构建

编解码

RGA滤镜

PS: 如果要集成到 Jellyfin ,这里已经有我构建好的 Docker 镜像:https://hub.docker.com/r/jjm2473/jellyfin-mpp

如果使用 iStoreOS 固件,可以直接在后台的应用商店 iStore 安装 Jellyfin 体验。


ENG:

This project is a version of FFmpeg that supports Rockchip SoC, supports MPP hardware codec, and supports RGA hardware scaling.

Before trying, make sure that the firmware or kernel you installed has enabled MPP, RGA and DRM support. If supported, there will generally be files such as /proc/mpp_service, /dev/rga, /dev/dri or /dev/dma_heap in the system. /dev/dri or /dev/dma_heap must exist at least one, and /dev/ion cannot exist, if there is, delete it.
If there is a problem on runtime, first try to execute it as a root user to see if there is any problem. If there is no problem, it is just a limitation of permissions. Don’t ask me how to correct permissions, it's basic knowledge.

Currently, the iStoreOS firmware of the RK35XX series already supports the above features. Firmware can be downloaded from here https://fw.koolcenter.com/iStoreOS/

ffmpeg-rk:

Compile/Build

Transcode

RGA filter

PS: If you want to integrate into Jellyfin, there is already a Docker image I built here: https://hub.docker.com/r/jjm2473/jellyfin-mpp

If you use iStoreOS firmware, you can install Jellyfin directly on iStore.

Clone this wiki locally