youtube downloadable links in php -


i unable youtube downloadable links. using below line of code url links.

$data =file_get_contents('https://www.youtube.com/get_video_info?video_id='.$id); 

but video ids working , of them not working. there new technique downloadable links video youtube url.

the technique used source code->find url_encoded_fmt_stream_map till -> decoding url ->then seperateing downloadable links that.

for example trying download below youtube url:-

https://www.youtube.com/watch?v=pkrtwnmrbb4

then below geting link download link:-

https://r3---sn-aigs6n7y.googlevideo.com/videoplayback?requiressl=yes&id=o-alwyuhyomxf55rtd7ahi7y8e26jm6sal0ipmpozz1ssz&mn=sn-aigs6n7y&mm=31&pl=24&dur=1907.124&lmt=1471163173533220&ip=31.170.164.31&ms=au&ei=qmaawabdksvmw8n8mpac&mv=u&mt=1503315355&expire=1503337224&sparams=dur%2cei%2cid%2cip%2cipbits%2citag%2clmt%2cmime%2cmm%2cmn%2cms%2cmv%2cpl%2cratebypass%2crequiressl%2csource%2cexpire&key=yt6&beids=%5b9466593%5d&ipbits=0&mime=video%2fmp4&itag=22&source=youtube&ratebypass=yes?title=gangster%20|%20%e0%a4%97%e0%a5%88%e0%a4%82%e0%a4%97%e0%a4%b8%e0%a5%8d%e0%a4%9f%e0%a4%b0%20|%20%e0%a4%87%e0%a4%ae%e0%a4%b0%e0%a4%be%e0%a4%a8%20%e0%a4%b9%e0%a4%be%e0%a4%b6%e0%a5%8d%e0%a4%ae%e0%a5%80%20|%20all%20songs%20|%20emraan%20hashmi%20|%20kangna%20ranaut%20|%20audio%20jukebox


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -