title: GStreamer rtp stream to vlc
body: <p>I'm having some trouble figuring out how to create a simple rtp stream with gstreamer and display it on vlc.</p>
  
  <p>I've installed GStreamer 0.10.30 and VLC 1.1.3. My only requirement is to use MPEG4 or H.264 codecs.</p>
  
  <p>Right now, I can stream the GStreamer <strong>videotestsrc</strong> through this simple pipeline:</p>
  
  <pre><code>gst-launch videotestsrc ! ffenc_mpeg4 ! rtpmp4vpay ! udpsink host=127.0.0.1 port=5000
  </code></pre>
  
  <p>which outputs the "caps" needed by the client to receive the stream:</p>
  
  <pre><code>/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP4V-ES, profile-level-id=(string)1, config=(string)000001b001000001b58913000001000000012000c48d8800f50a041e1463000001b24c61766335322e3132332e30, payload=(int)96, ssrc=(uint)365697461, clock-base=(uint)390754204, seqnum-base=(uint)10399
  </code></pre>
  
  <p>I'm also able to display the stream using the following pipeline:</p>
  
  <pre><code>gst-launch udpsrc uri=udp://127.0.0.1:5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP4V-ES, profile-level-id=(string)1, config=(string)000001b001000001b58913000001000000012000c48d88007d0a041e1463000001b24c61766335322e3132332e30, payload=(int)96, ssrc=(uint)298758266, clock-base=(uint)3097828288, seqnum-base=(uint)63478" ! rtpmp4vdepay ! ffdec_mpeg4 ! autovideosink
  </code></pre>
  
  <p>but when I try to receive the stream with vlc:</p>
  
  <pre><code>vlc -vvv rtp://127.0.0.1:5000
  </code></pre>
  
  <p>I get nothing...</p>