Using MPP
Downloading the Source Code
The release branch is the release
branch, and the development branch is the develop
branch, with the default being the development branch.
Download command:
cd ~
git clone https://github.com/rockchip-linux/mpp.git
Compilation
neardi@LPA3588:~/mpp$ cmake -DRKPLATFORM=ON -DHAVE_DRM=ON && make
Compilation process:
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.
-- cmake version 3.16.3
-- Detected ARMv8 system processor
-- current version:
-- 93b1cd14 author: He Hua 2022-12-26 [vpu_api]: modify struct VideoFrame
...
[ 98%] Built target vpu_api_test
[ 99%] Built target mpi_enc_mt_test
[100%] Built target mpi_dec_nt_test
Installation
sudo make install
Installation process:
[ 10%] Built target osal
[ 16%] Built target mpp_base
[ 16%] Built target hal_common
[ 17%] Built target mpp_rc
...
-- Up-to-date: /usr/local/bin/mpi_rc2_test
-- Up-to-date: /usr/local/bin/mpi_dec_multi_test
-- Up-to-date: /usr/local/bin/vpu_api_test
Execution
mpi_dec_test -t 7 -n 10 -i /tmp/enc.h264
Viewing Logs
journalctl -r | grep mpp