Open scfc opened 8 years ago
if youtube-dl was called with the --proxy option and a subcommand does not support using a SOCKS proxy, youtube-dl should abort with an informative error message.
Seems ffmpeg does not support SOCKS5 at all, is it? It's a good idea.
By the way, could you try to install python3-crypto and then run youtube-dl with --hls-prefer-native
?
Requested to ffmpeg at http://trac.ffmpeg.org/ticket/5776.
I successfully tried --hls-prefer-native
, and for the URL mentioned I actually prefer it :-) because the resulting file shrinks from 1.5 GByte to 598 MByte without any noticeable reduction in quality.
I've added a warning if SOCKS is used with ffmpeg. I didn't raise an error as some SOCKS proxies may also work as HTTP proxies.
Hi, for macOS users what should we do to enable --hls-prefer-native
flag? brew install python3-crypto
does not install python3-crypto (no package found).
I remember Homebrew doesn't provide Python packages. Try to install it with pip; e.g. pip install crypto --user
just a note, pycryptodome might be faster in the decryption as it does support AES-NI(not included in the latest stable version of pycrypto).
@yan12125 maybe you mean pip3 install crypto --user
? Which python does youtube-dl uses by default? Python or Python3?
@remitamine so I guess I can use pip3 install cryptodom --user
?
Which python does youtube-dl uses by default? Python or Python3?
That depends. You can check the version from youtube-dl -v
pip3 install cryptodome --user
should work, too.
@yan12125 looks like it uses Python version 2.7.10 - Darwin-17.2.0-x86_64-i386-64bit
, so the follow up question is, can I change the default Python and if not is there a cryptodome for python 2?
Also it looks like when I uses pip I would just get pip: command not found
...
I do have pip3 however...not sure wtf is going on with macOS these days.
For me the following worked:
pip install pycryptodome
Don't forget to source you ~/.bashrc or ~/.zshrc afterwards..
Make sure you are using the latest version: run
youtube-dl --version
and ensure your version is 2016.08.12. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-v
flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
If I run
youtube-dl
on a host in the US to download geo-restricted content like http://www.cwtv.com/shows/penn-teller-fool-us/you-dirty-rathead/?play=0c8763f4-6dfc-42c2-86af-02e9fd078334, it works fine. If I set up a SOCKS proxy and use--proxy socks5://127.0.0.1:11111/
, it fails. I assume this is becauseyoutube-dl
callsffmpeg
, but does not instructffmpeg
to use the proxy.This is confusing. Either
youtube-dl
should pass proxy information to subcommands, or, ifyoutube-dl
was called with the--proxy
option and a subcommand does not support using a SOCKS proxy,youtube-dl
should abort with an informative error message.