---
# System prepended metadata

title: 【Doc】【Orange PI 5 Plus】 - Gstreamer + MPP 用法
tags: [RockChip, RK3588]

---

---

## Gstreamer

---
* [rtk3588 gstreamer 插件安装](https://community.bwbot.org/topic/16571/rtk3588-gstreamer-%E6%8F%92%E4%BB%B6%E5%AE%89%E8%A3%85)
* 安裝套件 
    ```
    $ sudo apt update
    $ sudo apt install meson
    $ sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
    ```
* 安裝源碼
     ```
    $ git clone https://github.com/JeffyCN/mirrors.git --branch gstreamer-rockchip --depth=1 gstreamer-rockchip
    $ cd gstreamer-rockchip/
    $ meson build
    $ cd build
    $ meson configure --prefix=/usr
    $ ninja build
    $ sudo ninja install
    ```
* 查看套件狀態
    $ gst-inspect-1.0 --version
    ```
    root@orangepi5plus:/home/orangepi/Desktop/Rorkchip# gst-inspect-1.0 --version
    gst-inspect-1.0 version 1.16.3
    GStreamer 1.16.3
    https://launchpad.net/distros/ubuntu/+source/gstreamer1.0
    ```
    $ gst-inspect-1.0 | grep mpp
    ```
    root@orangepi5plus:/home/orangepi/Desktop/Rorkchip/gstreamer-rockchip/build# gst-inspect-1.0 --plugin | grep mpp
    rockchipmpp:  mppjpegdec: Rockchip's MPP JPEG image decoder
    rockchipmpp:  mppvideodec: Rockchip's MPP video decoder
    rockchipmpp:  mppjpegenc: Rockchip Mpp JPEG Encoder
    rockchipmpp:  mppvp8enc: Rockchip Mpp VP8 Encoder
    rockchipmpp:  mpph265enc: Rockchip Mpp H265 Encoder
    rockchipmpp:  mpph264enc: Rockchip Mpp H264 Encoder
    typefindfunctions: audio/x-musepack: mpc, mpp, mp+
    ```
    $ gst-inspect-1.0 | grep g2d
    ```
    orangepi@orangepi5plus:~$ gst-inspect-1.0 | grep g2d
    mpeg2dec:  mpeg2dec: mpeg1 and mpeg2 video decoder
    ```
* How Runing
    ```
    gst-launch-1.0 v4l2src device=/dev/video0 ! image/jpeg,framerate=30/1, width=1280, height=720 ! jpegparse ! mppjpegdec ! videoconvert ! autovideosink sync=false
    ```
* Reference
    * [gstreamer-rockchip是否有调用RGA的方法](https://dev.t-firefly.com/thread-120627-1-1.html)