Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Different results for different countries #4101
Comments
|
Could you explain what's the exact problem? Can you download the video from the same server? If you are trying to download/stream the url you get on AWS in your computer, that may not work (YouTube locks the url to a specific ip). |
|
Oh I didn't know about ip-locking by youtube. Thanks. |
|
youtube-dl only extracts url valid for the computer running it (as your browser would do), so you'll need to download the videos on you server and download from it. |
|
Alright, thank you. |
|
Note that this depends on the service in question. There are numerous services where a URL extracted from one computer just happens to work from another computer as well (until recently, even YouTube fell into this category when the initial request came via IPv6). |
|
We are concerned about youtube only. Now I can understand why some URLs worked some didn't. |
I am getting correct results on my local machine (India) while when I installed in on Amazon Web Services (Oregon) and executed the command, returned results are different. Moreover, its not working.
Testing url: http://www.youtube.com/watch?v=TvngY4unjn4
Command: youtube-dl --extract-audio --get-url http://www.youtube.com/watch?v=TvngY4unjn4
Returned URL should stream properly in browser.
Result (India-local) [WORKING]: https://r2---sn-ci5gup-qxal.googlevideo.com/videoplayback?id=4ef9e0638ba78e7e&itag=141&source=youtube&requiressl=yes&mm=31&mv=m&ms=au&gcr=in&ratebypass=yes&mime=audio/mp4&gir=yes&clen=8817223&lmt=1412655816692966&dur=276.526&upn=Ypz0gw157Ys&fexp=923360,930666,931349,932404,939977,939981,940620,947209,947215,948124,952302,952606,952901,953912,957103,957201&key=dg_yt0&sver=3&signature=28774F9E1B819EBCBBFE86E39835C0067DF9129E.6505788B1ABB322573D6A8FD5DA2679E38C20E09&mt=1415131505&ip=122.161.214.58&ipbits=0&expire=1415153198&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,mv,ms,gcr,ratebypass,mime,gir,clen,lmt,dur
Result (Oregon-AWS) [NOT WORKING]: https://r12---sn-nx57yn76.googlevideo.com/videoplayback?id=4ef9e0638ba78e7e&itag=141&source=youtube&requiressl=yes&ms=au&mv=m&gcr=us&mm=31&ratebypass=yes&mime=audio/mp4&gir=yes&clen=8817223&lmt=1412655816692966&dur=276.526&signature=80970117208C6285BFC22CA7F1489589175B92DB.53CFCC8B0CA09C8C255F42ADF196CF574629FA7F&sver=3&mt=1415131228&fexp=901466,904732,905639,908549,917000,930666,932404,947209,947215,948124,951821,952302,952901,953761,953912,957103,957201&upn=Kfz_SbeNpxQ&key=dg_yt0&ip=54.201.52.201&ipbits=0&expire=1415152921&sparams=ip,ipbits,expire,id,itag,source,requiressl,ms,mv,gcr,mm,ratebypass,mime,gir,clen,lmt,dur
ANY help is appreciated.