Introduction to rockchip-multimedia ppa for ubuntu jammy

Any idea if hardware encoding is implemented in these pacakges?

You can try v4l2loopback. Hardware encoding is supported by mpp and gstreamer mpp plugin.

Thanks. Btw gstreamer on rockchip is useless as videoconvert is extremely slow on the rockchip and drops a lot of frames… If anyone can do live encoding with videoconvert, please, let me know…

GST_VIDEO_CONVERT_USE_RGA=1 gst-launch-1.0 -e v4l2src device=/dev/video0 ! videoconvert ! waylandsink

Thanks, but still cannot get good fps for videoconvert. Capturing and Encoding HDMI Input maximum 10fps

1 Like

My command will make use of rga.

thank you for the PPA, I was able to get ffmpeg hardware decoding to work. Do you know what it would take to also make HW encoding of h264/h265 possible?

The ffmpeg package in my ppa doesn’t support mpp encoding. There is another version of ffmpeg supporting encoding: https://github.com/jjm2473/ffmpeg-rk.
You can also use gstreamer to encode.

Are there any repos for RebornOS / Archlinux around?

You may find some of these packages in aur.

hey @amazingfate , i’ve installed your ppa on ubuntu jammy, but when i do gstreamer-inspect i only see decoders, not encoders, is that intentional?

root@b32ed7ddddff:/app# gst-inspect-1.0 | grep rock
rockchipmpp:  mppjpegdec: Rockchip's MPP JPEG image decoder
rockchipmpp:  mppvideodec: Rockchip's MPP video decoder
rockchipmpp:  mppvpxalphadecodebin: VP8/VP9 Alpha Decoder

i’ve installed inside docker to make it repeatable

FROM --platform=linux/arm64 ubuntu:jammy as base
# Set the working directory to /app
WORKDIR /app

# gstreamer
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
    && apt-get -y install --no-install-recommends \
    \
    gstreamer1.0-tools \
    gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
    gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \
    \
    python3-gi python3-gst-1.0 \
    \
    && apt-get clean -y && rm -rf /var/lib/apt/lists/*

# gstreamer rockchip
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
    && apt-get -y install --no-install-recommends \
    \
    # prerequisites
    curl gnupg software-properties-common \
    \
    # https://www.armbian.com/rock-5b/
    && add-apt-repository ppa:liujianfeng1994/rockchip-multimedia \
    && apt-get update \
    \
    && apt-get -y install --no-install-recommends \
    \
    # gstreamer
    gstreamer1.0-rockchip \
    \
    && apt-get clean -y && rm -rf /var/lib/apt/lists/*

You need to install rockchip-multimedia-config to set the correct dev permission.

sudo apt install rockchip-multimedia-config
rm ~/.cache/gstreamer-1.0/registry.aarch64.bin
gst-inspect-1.0 rockchipmpp

Not accesible yet for Ubuntu 23.04?

No plan to support non-LTS releases.

Very bad decision

I will not upgrade my ubuntu release until the next LTS, so it is a very good decision for me.

4 Likes

just to post a solution – in my case i was using armbian with 6.3 kernel, to have encoders works one need to use legacy kernel 5.10.110-rockchip-rk3588 and then encoders in gstreamer shows/work

1 Like

when the input is gray8, rga says it is not supported, does that mean monocolor camera with rk3588 won’t achieve higher fps due to no hardware support for videoconvert?

You may try other color conversion method. I’m not familiar with this.

I installed ffmpeg but it doesn’t work :frowning:
(I use edge kernel 6.1 if it matter)