title: How to extract RTSP link from youtube feeds
body: <p>Let say we've youtube video id </p>
  
  <pre><code>$vid = "g6Sji2R1kkQ";
  </code></pre>
  
  <p>then using feeds like </p>
  
  <pre><code>$vfeed="http://gdata.youtube.com/feeds/api/videos/$vid";
  </code></pre>
  
  <p>or also can use</p>
  
  <pre><code>$vfeed="http://gdata.youtube.com/feeds/api/videos?q=$vid&amp;format=1&amp;alt=json";
  </code></pre>
  
  <p>both link shows a lot of data such as title,keywords,description ...etc</p>
  
  <p>within that data there is <code>RTSP</code> link (video link for smartphone).</p>
  
  <p>how to parse any of this <code>gdata</code> links to extract the <code>rtsp</code> link</p>
  
  <p>i want to get it for the above id example the rtsp link should be</p>
  
  <pre><code>rtsp://v1.cache2.c.youtube.com/CiILENy73wIaGQlEknVki6OkgxMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp
  </code></pre>
  
  <p>any help !</p>