-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support SOCKS5 proxies #3373
Comments
If you can use a regular HTTP proxy instead of a SOCKS proxy, you can set the environment variable Judging by a quick glance at FFmpeg code, it doesn't seem to support socks proxies at all, so any support for them in mpv would be blocked by this. (Also keep in mind that youtube-dl would also need support for them if you plan on using it) |
The combination of privoxy, |
Why do you need socks5? There is no a good open source SOCKS 5 server available. |
OpenSSH is an open source SOCKS 5 server. It's even the one I use ( |
I just found this after looking at the man page and not seeing anything socks related. At least for the youtube-dl integration it works for me, like this: http_proxy=socks5://127.0.0.1:9050 mpv [...] mpv 0.18.0 |
Btw, I forgot to mention this, but |
Hope mpv could provide proxy support, might you not know, the VPNs are slaughtered in some countries, like China, Iran, North Korea, and people of those nations have to set up socks and http proxy to get the Youtube, Google and so on. |
@haasn yeap, proxychains is good at linux and unices, but in windows, it is hard to find a handy way except a proxy included in mpv. |
I would also love SOCKS proxy support. It's the proxy of choice for Tor. |
resolved. second, with privoxy or gost to transfer remote socks5 proxy service to a local http proxy port -> 127.0.0.1:1080. then mpv can use local http proxy instead of any socks ones. |
AFAIK, the But otherwise, good info I guess. |
@garoto This is application dependant and I wouldn't trust all programs to get this right. It doesn't hurt to simply
to reduce risk of information leaks. |
If that's the case, then it sucks that there's no conventional way of doing it. Feels kinda dirty to polute your shell .rc with what might be redundant envvars afterall... (I'm on Windows btw). |
@lamarpavel in Xinux, you can do better with proxychains-ng, u can use socks proxy directly instead of transfer for http proxy. so, what I said is just for M$ windows. |
bad news, in Win 10, you have to also set https_proxy env, or you can not access https website by proxy. |
Ugh, I find it hard to believe that there's logic bult in "Win10" to differentiate between a http_proxy and a https_proxy env. variable, but who knows right? |
this is my workout in one line command with win 10: |
Is this still not something that we can get? It's been a request for 2 years now. |
I mean, you can do something like:
But there is some confusing language in the manual about this: "A proxy URL can be passed for youtube-dl to use it in parsing Judging by this text it is half supported, and you must choose between HTTPS or Proxy/Tor? |
For instance, if you feed the output of the command below to I think Justsoos idea of using |
in general, if you run mpv behind proxy, it must be a http proxy, if you have only socks proxy, transfer it to local http proxy first by privoxy or gost. run it like, assuming your http proxy is if you run mpv to see youtube, you have to install youtube-dl first and run command line like: this command seems a CRAZY one which you MUST NOT change any letter of: another way to avoid that maddening shackles is setting the mpv.conf like:
so you do not need to count the numbers on your screen... |
@lamarpavel, @Justsoos is there a guide how to setup |
|
Still no acceptable solution except using You can just forget about HTTP proxies, no video hosting does not work with http protocol! SOCKS5 is a perfect solution that works with browser and curl. But unfortunately it doesn't work anymore neither through http nor through socks5 proxy. :-(
yt-dlp --proxy http://127.0.0.1:3128 -F https://www.youtube.com/watch?v=glfh9XC-p9Q
|
I used 3proxy for this.
3proxy /var/lib/3proxy/3proxy.cfg
The problem is that it doesn't work with YouTube anymore. :-( |
https://en.wikipedia.org/wiki/Censorship_of_YouTube I miss doing Tried proxychains with no luck too. |
It would be nice to have a config item like
socks_proxy
orsocks5_proxy
to support SOCKS proxies.At the moment, even commands like
tsocks mpv http://server/test.webm
fail to work, and thoughcurl --socks5 localhost:1080 http://server/test.webm |mpv --cache=512
works, you can't seek since mpv isn't controlling the network stream.This SO question explains the issue farther.
The text was updated successfully, but these errors were encountered: