如何将 Ros 图像转换为流?
我正在尝试将 ROS 图像转换为流(不是视频格式,例如 mp4)并使用 python 将其发送到 Janus webrtc 服务器。我需要流的原因是aiortc模块中“MediaPlayer”的参数,它有助于与Janus(webrtc)服务器通信,只能接收视频格式和流格式(例如/dev/video0),我不应该将其保存为视频格式。
所以我现在想到的是将ros图像转换为gstreamer。 我该如何转换它?或者有什么好的解决办法吗?
I'm trying to convert ROS Image to stream(not video format eg.mp4) and send it to the Janus webrtc server with python. The reason why I need stream is the params of 'MediaPlayer' in aiortc module which helps communicate with Janus(webrtc) server, can only receive video format and stream format(eg. /dev/video0) and I should not save it as video format.
So what I am thinking now is converting ros image to a gstreamer.
How can I convert it? or is there any good solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用 web_video_server 或 jpeg_streamer
try use web_video_server or jpeg_streamer