Topic: Youtube video can't play by mpv, maybe because of proxy not working?

Hello.
I'm trying to use svptube 2 + mpv to play youtube video now.
I have set the socks5 proxy in authorization for youtube,
and I can get the video list now(without this I can't get the list).
But if I'm using mpv, after I click play button mpv won't start at all.
Here is the log:
21:24:42.365 : Tube: video format id 248 selected
21:24:42.511 : VideoPlayer: mpv connected, waiting for the video info...
21:24:43.007 : VideoPlayer: mpv 0.29.1-2-gc2b2bcc84e

Can I set a proxy for mpv?

Re: Youtube video can't play by mpv, maybe because of proxy not working?

Reimport cookies.txt first. Usually it is the cause.
https://www.svp-team.com/wiki/Manual:SV … n_Websites

You can setup proxy in SVPtube settings not mpv.

Re: Youtube video can't play by mpv, maybe because of proxy not working?

MAG79 wrote:

Reimport cookies.txt first. Usually it is the cause.
https://www.svp-team.com/wiki/Manual:SV … n_Websites

You can setup proxy in SVPtube settings not mpv.

Thank you for reply
I tried to import cookies.txt and set User-Agent, but seems nothing changed with same log.

Re: Youtube video can't play by mpv, maybe because of proxy not working?

You don't need any cookies if you already see the video streams list.

The thing is video player doesn't aware of the proxy settings.
There's a way to specify HTTP/HTTPS proxy for the mpv: add environment variable 'http_proxy', but ffmpeg (and therefore, mpv) doesn't support SOCKS proxy at all.

Re: Youtube video can't play by mpv, maybe because of proxy not working?

Chainik wrote:

You don't need any cookies if you already see the video streams list.

The thing is video player doesn't aware of the proxy settings.
There's a way to specify HTTP/HTTPS proxy for the mpv: add environment variable 'http_proxy', but ffmpeg (and therefore, mpv) doesn't support SOCKS proxy at all.

I also tried to change the proxy to http in svptube, but still not good.
Do I need to add http_proxy somewhere else?

Re: Youtube video can't play by mpv, maybe because of proxy not working?

IF SVPtube works for you via HTTP proxy (not SOCKS5!) THEN you can also force mpv player to make network requests via proxy.
Control Panel -> System -> System properties -> Environment variables -> add new user variable called 'http_proxy'.
Don't forget to restart SVP Manager after adding it.

Re: Youtube video can't play by mpv, maybe because of proxy not working?

Chainik wrote:

IF SVPtube works for you via HTTP proxy (not SOCKS5!) THEN you can also force mpv player to make network requests via proxy.
Control Panel -> System -> System properties -> Environment variables -> add new user variable called 'http_proxy'.
Don't forget to restart SVP Manager after adding it.

Thank you, I successfully get mpv works for youtube.
I'm not famaliar with this option, does this setting also used by other software or system process, such as windows update or something else?
If so, maybe I need to delete it everytime after used because my proxy have a traffic limit.

Re: Youtube video can't play by mpv, maybe because of proxy not working?

it's used only by any ffmpeg-based software

Re: Youtube video can't play by mpv, maybe because of proxy not working?

Chainik wrote:

it's used only by any ffmpeg-based software

That's great:)
Thank you very much