title: UDP to RTSP server in Gstreamer
body: <p>I have an IP camera and I want to get it's video stream by using Gstreamer and send it to udpsink, then in another network receive it and share by using RTSP server.
  This is my command line in first side</p>
  
  <pre><code>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
  </code></pre>
  
  <p>and in another side I used both these commands.</p>
  
  <pre><code>./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 )"
  </code></pre>
  
  <p>and</p>
  
  <pre><code>./test-launch  "( udpsrc port=5001 ! x264enc ! rtph264pay name=pay0 pt=96 )"
  </code></pre>
  
  <p>But, I got <code>RTSP/1.0 503 service unavailable</code> error.</p>
  
  <p>Does anyone have any idea why is this happening? Any help would be very appreciated!</p>