I have installed gstreamer on my i.MX6 board. I want to stream the camera connected using rtsp.
The following command displays the camera content on the LVDS screen:
gst-launch tvsrc ! Imxv4vl2sink
Instead of displaying it on the screen, i want to send the content over network RTSP and display it on other device's display
I used the following command to start streaming which works without throwing any error
gst-launch-0.10 -vv imxv4l2src ! video/x-raw-yuv, framerate=30/1, width=1024
, height=768 ! vpuenc codec=avc ! rtph264pay ! udpsink host=127.0.0.1 port=5004
sync=false
On the other device, i executed the following command:
gst-launch rtspsrc location=rtsp://<ip Address>:5004 name=source ! queue ! rtph264depay !
vpudec low-latency=true ! imxv4l2sink
It fails with the following error:
gstrtspsrc.c(5685): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:source: Failed to connect. (System error: Connection refused)
I can ping from the other device to the streaming device..
What can be the issue.
答案 0 :(得分:1)
您正在通过UDP发送RTP,但不提供任何RTSP协议。因此,尝试通过RTSP连接的接收器将失败。您需要使用GstRTSPServer
类并在发送方实施某些逻辑作为应用程序,或通过udpsrc
接收您的数据。对于后者,您仍然需要一种传输SDP数据的方法(这通常是RTSP服务器所做的一件事)。