ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.67k stars 9.97k forks source link

socks.py raised EOFError with Shadowsocks #11715

Open wukongtea opened 7 years ago

wukongtea commented 7 years ago

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.01.10. If it's not read this FAQ entry and update. Issues with outdated version will be rejected. I've verified and I assure that I'm running youtube-dl 2017.01.10 Before submitting an issue make sure you have: At least skimmed through README and most notably FAQ and BUGS sections Searched the bugtracker for similar issues including closed ones What is the purpose of your issue? Bug report (encountered problems with youtube-dl)

i dont konw what is wrong, how can l dowload this vido? The log output: image image image

yan12125 commented 7 years ago

Which software is running at 127.0.0.1:443?

wukongtea commented 7 years ago

KCPtun

yan12125 commented 7 years ago

Which commands do you use for the server and the client? I'm too lazy to study how to use KCPTun :)

wukongtea commented 7 years ago

i want to use KCPtun make the vps speed up ,so i can use the shaowsocks to download or watch video fluently。if I don‘t use KCPtun ,just
youtube-dl.exe --proxy socks5://vps.xxx.xxx.xxx:443 --all-formats https://www.dramafever.com/zh-cn/drama/4972/15/Doctor_Romantic/ the error comes too, some people think it dosent work when you use shadowsocks to download video with youtube-dl ,beacasuse the website will refuse the request. like hulu.com ban thw VPS ip。 I want to know its true or not ? or can you fix it. another question: youtube-dl doesnt work in the website v.qq.com image

yan12125 commented 7 years ago

Well, so there is EOFError even if you don't use KCPTun but only Shadowsocks?

another question: youtube-dl doesnt work in the website v.qq.com

No, QQ videos are not supported yet. See #6831.

wukongtea commented 7 years ago

Right,if only use shadowsocks, it also doesn't work ,and it take a long time to get the feedback information from the website。Maybe the website ban those vps ip from shadowsocks ,but without it cant visit those website 。You can use the youtube-dl try to download those videos with shadowsocks,you can find out those error。

yan12125 commented 7 years ago

I've set up shadowsocks server & client, both on my own PC. Seems everything works fine:

$ youtube-dl --proxy socks5://127.0.0.1:1080/ https://www.dramafever.com/zh-cn/drama/4972/15/Doctor_Romantic/   
[dramafever] Downloading main.js
[dramafever] Downloading Akamai AMP feed
ERROR: Currently unavailable in your country.

Did you use the latest Shadowsocks (2.9.1)? By the way, from your log the error comes from the initialization stage of SOCKS5. Maybe people at https://github.com/shadowsocks/shadowsocks/issues can help you more.

wukongtea commented 7 years ago

image I use my vps try download it directly without proxy , but i can not find 1080p.

wukongtea commented 7 years ago

OK thank you , How can I download the 1080P video, I cant find the best format 。

yan12125 commented 7 years ago

Please open a new issue for viki videos. Also, please paste text logs instead of screenshots.

wukongtea commented 7 years ago

Ok, I will , only 720 P in dramafever. image can I get the 1080p? thank you for your help.

yan12125 commented 7 years ago

This issue is for discussions about Shadowsocks and KCPTun. Please open new issues for other websites. But first, are you sure there are 1080P videos in those websites?

wukongtea commented 7 years ago

need an vip account, may be use the cookies you can crack and get the root.

wukongtea commented 7 years ago

image

yan12125 commented 7 years ago

youtube-dl supports login to viki. See https://github.com/rg3/youtube-dl#authentication-options

wukongtea commented 7 years ago

thank you I konw 。