root@linaro-sdcard:/usr/local/bin# uname -a
Linux linaro-sdcard 4.4.154-90-rockchip-ga14f6502e045 #22 SMP Tue Jul 30 10:32:28 UTC 2019 aarch64 GNU/Linux
I’m getting the following errors when I run my gst-launch pipeline too.
root@linaro-sdcard:/usr/local/bin# ./test_enc.sh
message: output to /home/linaro/2k.ts!
Setting pipeline to PAUSED ...
mpi: mpp version: 5ce1cb85 author: Caesar Wang debian: add rules for mpp with 20190626
mpp_rt: NOT found ion allocator
mpp_rt: found drm allocator
Pipeline is PREROLLING ...
h264e_api: h264e_config MPP_ENC_SET_RC_CFG bps 7776000 [7290000 : 8262000]
mpp_log: Assertion prep->ver_stride == (((prep->height)+(8)-1)&~((8)-1)) failed at h264e_vpu_update_hw_cfg:404
mpp_log: Assertion prep->ver_stride == (((prep->height)+(8)-1)&~((8)-1)) failed at h264e_vpu_update_hw_cfg:404
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
mpp_log: Assertion prep->ver_stride == (((prep->height)+(8)-1)&~((8)-1)) failed at h264e_vpu_update_hw_cfg:404
mpp_log: Assertion prep->ver_stride == (((prep->height)+(8)-1)&~((8)-1)) failed at h264e_vpu_update_hw_cfg:404
mpp_log: Assertion prep->ver_stride == (((prep->height)+(8)-1)&~((8)-1)) failed at h264e_vpu_update_hw_cfg:404
I think the fix is in the kernel. Rockchip has the fix in the stable-4.4 branch but the ROCK Pi 4 current kernel is based on the release-4.4. We have rebased to the latest Rockchip stable-4.4 kernel, some functions are still in the porting(mainly the raspberry pi display) but I think we can release a package for you to test first.
edit your /boot/extlinux/extlinux.conf and check if you have linux-image-4.4.179-6-rockchip entry, make sure linux-image-4.4.179-6-rockchip entry is at the first place.