Skip to content
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

[https @ 0000000003001860] HTTP error 403 Forbidden [crypto @ 0000000003001740] Unable to open resource: [hls,applehttp @ 00000000024825a0] Failed to open segment of playlist #21554

Closed
ComputerUser-CU opened this issue Jun 28, 2019 · 1 comment
Labels

Comments

@ComputerUser-CU
Copy link

@ComputerUser-CU ComputerUser-CU commented Jun 28, 2019

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

Hello,

I'm trying to download an MP4 video which is being streamed as fragmented ts files with m3u8 playlist. The screenshot of the Network tab in Opera Devtools is as follows:
XHR

So from there, I'm giving youtube-dl the URL of the entry beginning with "chunklist_w..". In the first try, youtube-dl recorded the stream for only about 3 minutes 38 seconds before giving up. The verbose logs are here:
FailedDownload(Verbose).txt

Googling the issue threw up [this webpage](https://gi thub.com//issues/10015). Also, another webpage suggested that using --hls-prefer-native was preferable in such cases since FFMPEG doesn't handle network recording very well. So with the --hls-prefer-native flag, I got these logs:
FailedDownload(hls).txt

I'm sorry I forgot to take verbose logs with the --hls-prefer-native above.

Anyhow, I noticed that [this webpage](https://gi thub.com//issues/10015) also talked of installing python-crypto and then using --hls-prefer-native. So I installed Python 3.7.3 (the latest version of Python) for windows. Then, I got python-crypto_2.6.1.orig.tar.gz from this page's right hand column. However, as I tried installing python-crypto with the command python setup.py install, I got this error:
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath. building 'Crypto.Random.OSRNG.winrandom' extension error: Unable to find vcvarsall.bat

As I went through the README file in the python-crypto package, it said that "PyCrypto is written and tested using Python version 2.1 through 3.2". Also, this youtube video suggested installing Python 2.7.x since PyCrypto worked best with it. So I uninstalled Python 3.7.3 and installed 2.7.16 (python-2.7.16.amd64.msi) from https://www.python.org.

Then, I installed PyCrypto by running the command pip install pycrypto as suggested here. It also asked me to install Microsoft C++ Compiler for Python 2.7 which I duly complied with. PyCrypto was finally installed successfully.

However, I am unable to download the complete video even now. The verbose logs for ffmpeg download and hls-prefer-native download are as follows:
FailedDownload(Verbose)(ffmpeg)(evenAfterPyCrypto).txt
FailedDownload(hls)(Verbose)(evenAfterPyCrypto).txt

Also, if I try to install python-crypto using python setup.py install at the location of my python-crypto_2.6.1.orig.tar package, I still get the error:
building 'Crypto.Random.OSRNG.winrandom' extension error: Unable to find vcvarsall.bat

As I googled this error, I got this webpage. I already have Microsoft C++ Compiler for Python 2.7 installed. So I updated my setuptools and pip as suggested there. But the issue still persists. The logs for this are below:
`
D:\Downloads\python-crypto_2.6.1.orig.tar\pycrypto-2.6.1>python setup.py install
running install
running build
running build_py
running build_ext
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Random.OSRNG.winrandom' extension
error: Unable to find vcvarsall.bat

D:\Downloads\python-crypto_2.6.1.orig.tar\pycrypto-2.6.1>`

Kindly suggest what I need to do right in order to be able to download these videos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.