Last year, I actually used Fydetab Duo to compress videos from my travels. At that time, I found a pre-built library on GitHub, but now I can’t find that repository anymore… So this time, I tried to compile it myself…
The compilation referred to the documentation by library author dnyanmisaka, and the entire process was relatively smooth~
Preparing the compilation environment using pixi
Compared to the git
, meson
, cmake
, pkg-config
, gcc
, libdrm-dev
mentioned in the original documentation, many more things are needed here. After all, FydeOS/ChromeOS is not a traditional Linux distribution and lacks many common libraries, so we need to supplement the missing dependencies.
1 | pixi init |
After creating the pixi environment, you need to enter the virtual environment with pixi shell
. Once inside, all subsequent compilation and installation destinations will point to this virtual environment, ensuring that all dependencies installed can be found during the final ffmpeg compilation.
Compiling rkmpp
1 | git clone -b jellyfin-mpp --depth=1 https://github.com/nyanmisaka/mpp.git rkmpp |
Compiling RGA
1 | git clone -b jellyfin-rga --depth=1 https://github.com/nyanmisaka/rk-mirrors.git rkrga |
Compiling and installing ffmpeg
1 | # ffmpeg part |
Afterword
After executing all the steps above, the virtual environment will have the ffmpeg specifically optimized for Rockchip chips. The video processing speed is more than 10 times faster than the CPU version~
I’m considering turning the above content into a Pixi environment with tasks, and also learning how to package and upload packages using pixi.