title: Gstreamer rtsp playing (with sound)
body: <p>im newbie in gstreamer and simple try to wath rtsp video flow from Dlink 2103 camera.</p>
  
  <p>When i trying it (just video):</p>
  
  <pre><code>gst-launch rtspsrc location=rtsp://192.168.0.20/live1.sdp ! \
  rtph264depay ! \
  h264parse ! capsfilter caps="video/x-h264,width=1280,height=800,framerate=(fraction)25/1" ! 
  ffdec_h264 ! ffmpegcolorspace ! autovideosink
  </code></pre>
  
  <p>Its ok.</p>
  
  <p>When i trying it (just audio):</p>
  
  <pre><code>gst-launch rtspsrc location=rtsp://192.168.0.20/live1.sdp ! \
  rtpg726depay !  ffdec_g726 !  audioconvert ! audioresample ! autoaudiosink
  </code></pre>
  
  <p>Its also ok.</p>
  
  <p>Next i try play both audio and video. gst-launch man page was used for generate something like this:</p>
  
  <pre><code>gst-launch-0.10 -m -vvv -e  rtspsrc location=rtsp://192.168.0.20/live1.sdp  latency=1000  ! \
  gstrtpptdemux name=demuxer  demuxer. ! \
  queue ! \
  rtph264depay  ! h264parse ! capsfilter caps="video/x-h264,width=1280,height=800,framerate=(fraction)25/1" ! \
  ffdec_h264 ! ffmpegcolorspace ! autovideosink demuxer. !  \
  queue ! 
  rtpg726depay !  ffdec_g726 !  audioconvert ! audioresample ! autoaudiosink
  </code></pre>
  
  <p>But video freez with first frame. I also try this classic way using decodebin (both 1 and 2 ver):</p>
  
  <pre><code>gst-launch-0.10 -v  souphttpsrc rtspsrc location=rtsp://192.168.0.20/live1.sdp  ! 
  decodebin name=decoder decoder. ! queue ! audioconvert ! audioresample ! 
  autoaudiosink decoder. ! \
  ffmpegcolorspace ! autovideosink
  </code></pre>
  
  <p>BUT it also freez on first frame.</p>
  
  <p>ONE way i have success it using playbin... </p>
  
  <pre><code>gst-launch-0.10 playbin2 uri=rtsp://192.168.0.20/live1.sdp
  </code></pre>
  
  <p>IS IT my bad pipeline or something wrong with dlink camera? Can you tell me key-word that i should to learn more? </p>
  
  <p>thanks in advance !</p>