An htop-like utility to show v4l2 mem2mem hardware and memory usage.
Linux needs to be patched to be able to retrieve data from the driver. A work in progress branch can be found here. It only supports the rkvdec driver, and only h264 on RK3588 for buffer details.
The crate is not published yet, use the git url to install locally with cargo:
cargo install https://github.com/cazou/v4l2top.gitTo build an arm64 binary, install an arm64 Rust toolchain with rustup:
rustup target add aarch64-unknown-linux-gnuAnd that you have an arm64 linker. Debian:
apt install gcc-aarch64-linux-gnuArch Linux:
pacman -S aarch64-linux-gnu-gccOther linkers can be used, but adapt the .cargo/config.toml file.
Then you can cross compile for arm64 with:
cargo build --target aarch64-unknown-linux-gnuAdd --release for a smaller binary.
You can retrieve it in target/aarch64-unknown-linux-gnu/[release|debug]/v4l2top