如果没有提供您的管道,我无法具体看到您正在使用哪些组件,因此为了回答您的问题而不进行多次排列 - 如何直接通过Internet使用gstreamer管道进行流传输? 这里是服务器和客户端的基本工作示例,您显然需要更改应用程序的源。 您可能希望将autovideo sink更改为具有h264硬件视频加速的内容,否则这可能会非常缓慢。
服务器
gst-launch videotestsrc ! queue ! x264enc ! queue ! rtph264pay ! queue ! udpsink host=10.0.0.2 port=9002
客户端
gst-launch udpsrc port=9002 caps="application/x-rtp" ! queue ! rtph264depay ! queue ! ffdec_h264 ! queue ! autovideosink
h263 - in case hardware decoding in not an option, it will be much faster.
server
gst-launch videotestsrc \
! video/x-raw-yuv, width=704, height=576, format='(fourcc)'UYVY \
! ffmpegcolorspace \
! ffenc_h263 \
! video/x-h263 \
! rtph263ppay pt=96 \
! udpsink host=127.0.0.1 port=9002 sync=false
client
gst-launch udpsrc port=9002 \
! application/x-rtp, clock-rate=90000,payload=96,media=video, encoding-name=H263! rtph263pdepay queue-delay=0 \
! ffdec_h263 \
! autovideosink