title: Youtube Video download php script
body: <p>I am trying find solution to get direct video URL for youtube videos. But i am not able to find any solution. </p>
  
  <p>I am currenlty using <a href="https://github.com/jeckman/YouTube-Downloader/" rel="nofollow noreferrer">Youtubedownloader</a> 
  .When i click on download video it generates link to video but its not actually recognized as download link in my web application. I am trying to upload remote video with this url but it says no video found in my web application. </p>
  
  <p>currently its generating links like this. </p>
  
  <pre><code>https://r3---sn-25glen7y.googlevideo.com/videoplayback?mm=31&amp;mn=sn-25glen7y&amp;key=yt6&amp;signature=51F3C4BA56C96FE593901AD0D28FBA8ED477B287.4A15A870692675DDFBC94819EAEB59C9D8DB4141&amp;mt=1495042064&amp;pcm2=yes&amp;mv=m&amp;ei=X4gcWfiiHJCMcJHqmIAO&amp;pl=16&amp;ms=au&amp;sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cusequic%2Cexpire&amp;usequic=no&amp;mime=video%2Fmp4&amp;upn=ZMkz0gtqWNk&amp;expire=1495063743&amp;initcwndbps=11898750&amp;ratebypass=yes&amp;ipbits=0&amp;lmt=1472845289256331&amp;itag=22&amp;requiressl=yes&amp;ip=62.210.149.105&amp;source=youtube&amp;dur=243.623&amp;id=o-APOPZz5wo1XWIE0Wyq_veLdgBGr1xgALdohBIGIJRggx&amp;title=How-Does-it-Grow-Cauliflower
  </code></pre>
  
  <p>What i need to have links generated in "filename.mp4" or "filename.webem" format Is it possible? </p>