How to Install GStreamer MPP Plugins

Testing Environment:

  • LPA3588: Ubuntu 20.04

  • Kernel Version: 5.10.110

Method 1: Using menuconfig

Use the buildroot tool to build and install these plugins. You need to select the gstreamer1 and gst1-plugins-rockchip options in buildroot’s menuconfig, then recompile and flash the buildroot system image to the board.

Method 2: Install via Command

sudo apt update
sudo apt install gstreamer1.0-rockchip

Method 3: Compile and Install

The MPP codec plugin and rkximagesink display plugin source code are located in the <SDK>/external/gstreamer-rockchipdirectory.

Copy the source code to the /home/neardi directory on the LPA3588 board.

sudo apt update
sudo apt install gcc g++ clang make-guile build-essential meson
cd /home/neardi/gstreamer-rockchip

meson build && ninja -C build
sudo ninja -C build install

Installation successful:

neardi@LPA3588:~/gstreamer-rockchip$ sudo ninja -C build install
ninja: Entering directory `build'
[0/1] Installing files.
Installing gst/rkximage/libgstrkximage.so to /usr/local/lib/aarch64-linux-gnu/gstreamer-1.0
Installing gst/rockchipmpp/libgstrockchipmpp.so to /usr/local/lib/aarch64-linux-gnu/gstreamer-1.0
Installing gst/kmssrc/libgstkmssrc.so to /usr/local/lib/aarch64-linux-gnu/gstreamer-1.0

FAQ

GStreamer User Manual

Refer to the document Linux->Multimedia->Rockchip_User_Guide_Linux_Gstreamer_CN.pdf