Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Rock5/guide/rockchip-mpp

< Rock5‎ | guide
    ROCK 5 >  Guide >  Rockchip MPP

Rockchip MPP

Build MPP on ROCK 5B

Download essential packages.

rock@rock-5b:~$ sudo apt install -y git make cmake gcc g++ wget

Download mpp source code.

rock@rock-5b:~$ git clone https://github.com/rockchip-linux/mpp -b develop
rock@rock-5b:~$ cd ~/mpp/build/linux/aarch64
rock@rock-5b:~/mpp/build/linux/aarch64$ ./make-Makefiles.bash
rock@rock-5b:~/mpp/build/linux/aarch64$ make -j$(nproc)

Check mpp demo.

rock@rock-5b:~/mpp/build/linux/aarch64$ ls test/
CMakeFiles           mpi_dec_mt_test     mpi_dec_test     mpi_rc2_test
Makefile             mpi_dec_multi_test  mpi_enc_mt_test  mpp_info_test
cmake_install.cmake  mpi_dec_nt_test     mpi_enc_test     vpu_api_test

MPP demo

mpi_dec_test

Get test video.

rock@rock-5b:~$ wget https://dl.radxa.com/media/video/1080p.264

Print debug log.

rock@rock-5b:~$ export mpi_debug=1 && export mpp_debug=1 &&  export h264d_debug=1 && export mpp_syslog_perror=1

Run mpi_dec_test.

rock@rock-5b:~$ ~/mpp/build/linux/aarch64/test/mpi_dec_test -i ~/1080p.264 -t 7 -h 1080 -w 1920

mpp[1253]: mpi_dec_utils: input file /home/rock/1080p.264 size 10076324
mpp[1253]: mpi_dec_utils: cmd parse result:
mpp[1253]: mpi_dec_utils: input  file name: /home/rock/1080p.264
mpp[1253]: mpi_dec_utils: output file name: 
mpp[1253]: mpi_dec_utils: width      : 1920
mpp[1253]: mpi_dec_utils: height     : 1080
mpp[1253]: mpi_dec_utils: type       :    7
mpp[1253]: mpi_dec_utils: max frames :    0
mpp[1253]: mpi_dec_test: mpi_dec_test start
...
mpp[1253]: mpi_dec_test: 0x558fb02300 found last packet
mpp[1253]: mpi_dec_test: decode 1129 frames time 1172 ms delay  14 ms fps 962.62
mpp[1253]: mpi: mpi_reset enter ctx 0x558fb02300
mpp[1253]: mpi: mpi_reset leave ctx 0x558fb02300 ret 0
mpp[1253]: mpi: mpp_destroy enter ctx 0x558fb02300
mpp[1253]: mpi: mpp_destroy leave ctx 0x558fb02300 ret 0
mpp[1253]: mpi_dec_test: test success max memory 19.92 MB