title: GStreamer-Java: RTSP-Source to UDP-Sink
body: <p>I'm currently working on a project to forward (and later transcode) a RTP-Stream from a IP-Webcam to a SIP-User in a videocall.</p>
  
  <p>I came up with the following gstreamer pipeline:</p>
  
  <pre><code>  gst-launch -v rtspsrc location="rtsp://user:pw@ip:554/axis-media/media.amp?videocodec=h264" ! rtph264depay ! rtph264pay ! udpsink sync=false host=xxx.xxx.xx.xx port=xxxx
  </code></pre>
  
  <p>It works very fine. Now I want to create this pipeline using java. This is my code for creating the pipe:</p>
  
  <pre><code>    Pipeline pipe = new Pipeline("IPCamStream");
  
      // Source
      Element source = ElementFactory.make("rtspsrc", "source");
      source.set("location", ipcam);
  
      //Elements
      Element rtpdepay = ElementFactory.make("rtph264depay", "rtpdepay");
      Element rtppay = ElementFactory.make("rtph264pay", "rtppay");
  
      //Sink
      Element udpsink = ElementFactory.make("udpsink", "udpsink");
      udpsink.set("sync", "false");
      udpsink.set("host", sinkurl);
      udpsink.set("port", sinkport);
  
  
      //Connect
      pipe.addMany(source, rtpdepay, rtppay, udpsink);
      Element.linkMany(source, rtpdepay, rtppay, udpsink);
  
  
      return pipe;
  </code></pre>
  
  <p>When I start/set up the pipeline, I'm able to see the input of the camera using wireshark, but unfortunately there is no sending to the UDP-Sink. I have checked the code for mistakes a couple of times, I even set a pipeline for streaming from a file (filesrc) to the same udpsink, and it also works fine.</p>
  
  <p>But why is the "forwarding" of the IP-Cam to the UDP-Sink not working with this Java-Pipeline?</p>