我们如何使用Gstreamer来流任意数据?
在这个信息非常丰富的演讲(https://www.youtube.com/watch?v=ZphadMGufY8)中,讲师提到Gstreamer是媒体不可知论的,是用于非媒体应用程序的用例,所以这应该是可能的,但到目前为止我还没有在互联网上找到任何有用的东西。
我感兴趣的特殊用例:高速use摄像头连接到RPi4。RPi4通过网络读取和转发相机帧。现在,Gstreamer不支持(据我所知)通过udp/rtp发送拜耳格式化的帧,因此我需要使用bayer2rgb元素将其转换为RGB格式。然而,这种转换消耗了RPi4的部分处理能力,因此RPi4从摄像机读取和发送帧的速度要低得多。
除此之外,我还使用RPi4作为其他传感器的数据采集系统,所以如果我可以使用Gstreamer来处理所有传感器的话,那就太棒了。
发布于 2022-06-28 15:03:56
发送者管道是
gst-launch-1.0 videotestsrc ! video/x-bayer,format=bggr,width=1440,height=1080,framerate=10/1 ! rtpgstpay mtu=1500 ! queue ! multiudpsink clients=127.0.0.1:5000接收管道是
gst-launch-1.0 -v udpsrc port=5000 caps="application/x-rtp, media=(string)application, clock-rate=(int)90000, encoding-name=(string)X-GST" ! queue ! rtpgstdepay ! bayer2rgb ! videoconvert ! autovideosink照顾mtu,据我所知,PI只支持1500字节,不支持Jumbo帧。也期望丢失包裹。
https://stackoverflow.com/questions/72725047
复制相似问题