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.
Youtube-dl in Ubuntu 14.04 return redirect link, not original video link #11777
Comments
|
URLs starting with https://r2---sn-3u-bh2r.googlevideo.com are original links.
Most likely that's due to incorrect CDNs. #9001 (comment) may help. |
|
@yan12125 Thanks for your comment. There is no problem when i use one video tag. I found that the problem is chrome doesn't cache redirected video, so when I add new video dynamically, chrome unnecessarily requests the same video every time. Also, I found that chrome cache all videos well with direct video link. |
|
I don't quite understand your problems, but I guess that's a Chrome problem rather than YouTube or youtube-dl. In my experience Firefox usually follows w3c standards while Chrome often invent their own standards. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.01.18. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-vflag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
I'm using youtube-dl with -g option to play original youtube video in my website.
I made simple server that return original video url.
It's all okay when I test in my local Mac.
However, when I deploy my youtube-dl server to Ubuntu 14.04, It's little bit strange.
I'm using same version of youtube-dl(2017.01.18) and same version of python(2.7.12) in both Mac and Ubuntu, but they give me different url.
The main problem is the url from Ubuntu is not real original video url. It redirects to another video url.(In above case, https://r2---sn-3u-bh2r.googlevideo.com/videoplayback?pl=16&ei=NXSAWLe3KIqJ4gK3l6SIBw&upn=Wgx7FL9FhmU&ipbits=0&requiressl=yes&itag=22&ratebypass=yes&dur=241.696&lmt=1476952144664504&source=youtube&sparams=dur,ei,expire,id,ip,ipbits,ipbypass,itag,lmt,mime,mm,mn,ms,mv,nh,pcm2cms,pl,ratebypass,requiressl,source,upn&key=cms1&mime=video%2Fmp4&expire=1484834965&id=o-AEo6sQA7hwMJULAegASwEhfi2ZdV2gpJELqOXnDuNIzS&signature=5EC2ACF647F1BCA174DD3A9B470B81C91349E363.29E250BFE6C3A7B09E7ACAFBFC4E1C4509D6529F&ip=175.209.23.156&redirect_counter=1&req_id=9deccb23abc7a3ee&cms_redirect=yes&ipbypass=yes&mm=31&mn=sn-3u-bh2r&ms=au&mt=1484813143&mv=m&pcm2cms=yes)
I need real video link because i have to load same video a lot of time. When i load the videos with wrong link, It's became really slow...(I think it's because of browser cache or something..)
Why is it different and can you fix it?
Thanks.