Gstreamer中的UDP到RTSP服务器

Gstreamer中的UDP到RTSP服务器,udp,gstreamer,rtsp,sdp,Udp,Gstreamer,Rtsp,Sdp,我有一个IP摄像头,我想使用Gstreamer获取它的视频流,并将其发送到udpsink,然后在另一个网络中使用RTSP服务器接收并共享。 这是我在第一面的命令行 gst-launch-1.0 -v rtspsrc location=rtsp://example:x/media.smp ! rtph264depay ! h264parse ! rtph264pay name=pay0 pt=96 ! udpsink host=127.0.0.1 port=5001 在另一边,我使用了这两个命

我有一个IP摄像头,我想使用Gstreamer获取它的视频流,并将其发送到udpsink,然后在另一个网络中使用RTSP服务器接收并共享。 这是我在第一面的命令行

gst-launch-1.0 -v  rtspsrc location=rtsp://example:x/media.smp ! rtph264depay ! h264parse ! rtph264pay name=pay0 pt=96 ! udpsink host=127.0.0.1 port=5001
在另一边,我使用了这两个命令

./test-launch  "( udpsrc port=5001 caps = "application/x-rtp\,\ media\=\(string\)video\,\ payload\=\(int\)98\,\ clock-rate\=\(int\)90000\,\ encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)1\,\ profile-level-id\=\(string\)640028\,\ sprop-parameter-sets\=\(string\)\"Z2QAKKy0A8ARPyo\\\=\\\,aM4Bniw\\\=\"\,\ a-framesize\=\(string\)1920-1080\,\ a-cliprect\=\(string\)\"0\\\,0\\\,1080\\\,1920\"\,\ a-framerate\=\(string\)25.0\,\ clock-base\=\(uint\)3219500149\,\ seqnum-base\=\(uint\)57852\,\ npt-start\=\(guint64\)0\,\ play-speed\=\(double\)1\,\ play-scale\=\(double\)1\,\ ssrc\=\(uint\)691379019" ! x264enc ! rtph264pay name=pay0 pt=96 )"

但是,我得到
RTSP/1.0 503服务不可用
错误


有人知道为什么会这样吗?任何帮助都将不胜感激

请看-它完全是为这个任务创建的,但是比使用udp流更简单、健壮和灵活。还可以在流中添加SSL加密。谢谢@RSATom。我试图在UbuntuLinux中使用cmake生成make文件,但收到了以下错误消息:
未找到所需的“gstreamer-rtsp-server-1.0”
。我想我需要安装它,但我找不到。我想你需要和
sudo安装libgstrtspserver-1.0-dev
你需要
libgstrtspserver-1.0-0
软件包
./test-launch  "( udpsrc port=5001 ! x264enc ! rtph264pay name=pay0 pt=96 )"