From eaa97daf65c659d901cd21139d770a44d4bcdfae Mon Sep 17 00:00:00 2001 From: Ricardo Constantino Date: Mon, 15 Jan 2018 17:56:44 +0000 Subject: 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. --- DOCS/man/options.rst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'DOCS') 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=`` Enable the builtin script that shows useful playback information on a key -- cgit v1.2.3