我需要帮助将 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
我已经尝试了几个命令,但我还没有找到任何解决方案,你能提供一些指导吗?谢谢你。