微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

rtspsrc 到 udpsink 并消费回来

如何解决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 举报,一经查实,本站将立刻删除。