Toybrick

Where can we get VPU(MPP) usage

vincent911001

注册会员

积分
92
楼主
发表于 2020-3-20 11:01:45    查看: 5969|回复: 3 | [复制链接]    打印 | 只看该作者
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

版主

积分
12944
沙发
发表于 2020-3-20 11:40:50 | 只看该作者
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

版主

积分
12944
板凳
发表于 2020-3-20 11:49: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

注册会员

积分
92
地板
 楼主| 发表于 2020-3-20 13:56:18 | 只看该作者
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.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表