rtspsrc 到 udpsink 并消费回来

问题描述

我需要帮助将 rtsp 流转换为 udpsink(以便将流推送到远程服务器),但我面临的问题很少。到目前为止,我正在尝试以下命令以发布和使用流: 创建:

gst-launch-1.0 rtspsrc location=rtsp://192.168.10.20:554 ! rtph264depay ! rndbuffersize min=1500 max=1500 ! udpsink host=127.0.0.1 port=8123

消费:

gst-launch-1.0 udpsrc port=8123 ! application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink

但是在消费者端出现如下错误

WARNING: from element /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0: Could not decode stream.
Additional debug info:
gstrtpbasedepayload.c(466): gst_rtp_base_depayload_handle_buffer (): /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0:
Received invalid RTP payload,dropping
ERROR: from element /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0: The stream is in the wrong format.
Additional debug info:
gstrtph264depay.c(1270): gst_rtp_h264_depay_process (): /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0:
NAL unit type 27 not supported yet

我已经尝试了几个命令,但我还没有找到任何解决方案,你能提供一些指导吗?谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)