如何在同一网络上使用gstreamer中的udpsink或tcpsink发送图像

如何在同一网络上使用gstreamer中的udpsink或tcpsink发送图像,tcp,udp,gstreamer,Tcp,Udp,Gstreamer,我有一个图像文件image.jpg,我想通过Gstreamer使用udpsink或tcpsink通过同一网络将此图像文件从我的Raspberry Pi发送到我的PC(Windows)。如何实现这一点?您可以尝试简单地使用gst-launch-1.0-v filesrc location=file\u name.img!udpsink主机=192.1XX.XX.XX端口=9001?在另一端,使用filesink.gst-launch-1.0 udpsrc port=9001执行udpsrc并写入驱

我有一个图像文件image.jpg,我想通过Gstreamer使用udpsink或tcpsink通过同一网络将此图像文件从我的Raspberry Pi发送到我的PC(Windows)。如何实现这一点?

您可以尝试简单地使用gst-launch-1.0-v filesrc location=file\u name.img!udpsink主机=192.1XX.XX.XX端口=9001?在另一端,使用filesink.gst-launch-1.0 udpsrc port=9001执行udpsrc并写入驱动器!filesink location=“C:\Desktop\image.jpg”这对接收器有效吗?是的,应该可以,试试看。您总是可以将它通过管道传输到fakesink,以查看是否通过了字节而不是文件链接。因此,我在发送方gst-launch-1.0 udpsrc-v filesrc location=/home/pi/image0.jpg上使用了以下命令!udpsink主机=192.xxx.xxx.xxx端口=6000,接收器上的以下端口为gst-launch-1.0 udpsrc端口=6000!filesink location=“C:\Users\Desktop\image0.jpg”发送方管道执行,但接收方管道不会结束,知道吗?如果我问了一个愚蠢的问题,请原谅,我是Gstreamergst-launch-1.0 udpsrc-v filesrc location=/home/pi/image0.jpg的新手!udpsink主机=192.xxx.xxx.xxx端口=6000同步=错误,接收器gst-launch-1.0 udpsrc端口=6000!filesink location=“C:\Users\Desktop\image0.jpg”-你说“不结束”是什么意思?图像是否已传输?C:\users\bla.img.jpg的大小是多少?