大华网络摄像头通过gstreamer 获取不到RTSP流
運行:
gst-launch-1.0 rtspsrc latency=0 location= "rtsp://admin:L21CF489@192.168.117.9:554/cam/realmonitor?channel=1&subtype=0" latency=0 ?! ?rtph264depay ! avdec_h264 ! videoconvert ! videoscale ! ximagesink name=videosink
報錯:
root@ubuntu:/home/book/filebeat-8.5.0-linux-x86_64# gst-launch-1.0 rtspsrc latency=0 location= "rtsp://admin:L21CF489@192.168.117.9:554/cam/realmonitor?channel=1&subtype=0" latency=0 ?! ?rtph264depay ! avdec_h264 ! videoconvert ! videoscale ! ximagesink name=videosink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:L21CF489@192.168.117.9:554/cam/realmonitor?channel=1&subtype=0
Progress: (open) Retrieving server options
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.
Additional debug info:
gstrtspsrc.c(5917): gst_rtsp_src_receive_response (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive message. (Timeout while waiting for server response)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
?
解決:
sudo apt-get remove gstreamer1.0-plugins-ugly
最后通過下面鏈接找到的RTSP Gstreamer Simple Recieve and Store in File - Jetson & Embedded Systems / Jetson Nano - NVIDIA Developer Forums
總結
以上是生活随笔為你收集整理的大华网络摄像头通过gstreamer 获取不到RTSP流的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 闭关修炼(一)多线程
- 下一篇: 第四十九章