Toybrick

opencv+gstreamer rtp stream, jpeg decoder issue

rakidis

高级会员

积分
507
楼主
发表于 2021-2-27 16:43:49    查看: 11537|回复: 1 | [复制链接]    打印 | 只看该作者
Hello,
I am trying to use gstreamer+opencv to receive an rtp stream and get it as rgb frame in opencv appsink. Yet, it works very slow and makes me question if mpp decoder is not working properly.

I send the stream from my pc using this:
   gst-launch-1.0 -v v4l2src device=/dev/video2 ! image/jpeg,width=1280,height=720  ! rtpjpegpay ! udpsink host=192.168.180.8 port=123

And I capture it in rk1808 using this:
   capturer.open(QString("udpsrc port=1234 ! application/x-rtp,encoding=JPEG,payload=26 !rtpjpegdepay !jpegparse !mppjpegdec !videoflip method=%1  !videoconvert ! appsink")

Am I doing something wrong? What could be the issue?
Is it related to mpp libraries, gst libraries, rga libraries?
Any suggestions on how to solve this?
回复

使用道具 举报

jefferyzhang

版主

积分
13580
沙发
发表于 2021-2-27 17:32:08 | 只看该作者
回复

使用道具 举报

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

本版积分规则

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


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