diff options
author | Ricardo Constantino <wiiaboo@gmail.com> | 2018-01-15 17:56:44 +0000 |
---|---|---|
committer | Ricardo Constantino <wiiaboo@gmail.com> | 2018-01-30 12:19:34 +0000 |
commit | eaa97daf65c659d901cd21139d770a44d4bcdfae (patch) | |
tree | 21f5b7b655fb8f17032bbf3db9b9edb3dec43eef /DOCS/man | |
parent | 196950e905dcbd1a7ac3fd4c6fde80d23587be29 (diff) | |
download | mpv-eaa97daf65c659d901cd21139d770a44d4bcdfae.tar.bz2 mpv-eaa97daf65c659d901cd21139d770a44d4bcdfae.tar.xz |
ytdl_hook: pass http proxy to ffmpeg
FFmpeg only suppports http proxies and ignores it if
the resulting url is https. Also, no SOCKS.
Use it like `--ytdl-raw-options=proxy=[http://127.0.0.1:3128]` so
it doesn't confuse mpv because of the colons.
You need to pass it as an option because youtube-dl doesn't give
us the proxy.
Or just set `http_proxy` environment variable as recommended before.
Added example using -append, which doesn't need escaping.
Diffstat (limited to 'DOCS/man')
-rw-r--r-- | DOCS/man/options.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 57e79806c8..e44a69235b 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -590,10 +590,18 @@ Program Behavior There is no sanity checking so it's possible to break things (i.e. passing invalid parameters to youtube-dl). + A proxy URL can be passed for youtube-dl to use it in parsing the website. + This is useful for geo-restricted URLs. After youtube-dl parsing, some + URLs also require a proxy for playback, so this can pass that proxy + information to mpv. Take note that SOCKS proxies aren't supported and + https URLs also bypass the proxy. This is a limitation in FFmpeg. + .. admonition:: Example - ``--ytdl-raw-options=username=user,password=pass`` - ``--ytdl-raw-options=force-ipv6=`` + - ``--ytdl-raw-options=proxy=[http://127.0.0.1:3128]`` + - ``--ytdl-raw-options-append=proxy=http://127.0.0.1:3128`` ``--load-stats-overlay=<yes|no>`` Enable the builtin script that shows useful playback information on a key |