Toybrick

标题: Where can we get VPU(MPP) usage [打印本页]

作者: vincent911001    时间: 2020-3-20 11:01
标题: Where can we get VPU(MPP) usage
Hi,

I have been using MPP to do video decoding in gstreamer pipeline.
  1. gst-launch-1.0 filesrc location=sample.mp4 ! qtdemux ! h264parse ! mppvideodec ! videoconvert ! kmssink
复制代码

So, i am curious to know its VPU usage(%) regarding this workload.
Thus, how can we get the VPU usage(%)

Thanks.



作者: jefferyzhang    时间: 2020-3-20 11:40
You can find it here:   https://github.com/rockchip-linux/mpp
And the samples in test folder:  https://github.com/rockchip-linu ... test/mpi_dec_test.c
gstreamer-rockchip is here: https://github.com/rockchip-linux/gstreamer-rockchip
But we don't recommend calling VPU via gstreamer, it's just a compatible API.
作者: jefferyzhang    时间: 2020-3-20 11:49
本帖最后由 jefferyzhang 于 2020-3-20 11:51 编辑

There is no way to check VPU usage(%), but you can check the processing time per frame using :

echo 0x0100 > /sys/module/rk_vcodec/parameter/debug

You can find the processing time by command 'dmesg' after running your application.
(It is about 2-4ms for 1080P h264 frame)
作者: vincent911001    时间: 2020-3-20 13:56
jefferyzhang 发表于 2020-3-20 11:49
There is no way to check VPU usage(%), but you can check the processing time per frame using :

echo ...

Thanks alot for your help.




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3