Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Checklist
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:

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-nativewas preferable in such cases since FFMPEG doesn't handle network recording very well. So with the--hls-prefer-nativeflag, I got these logs:FailedDownload(hls).txt
I'm sorry I forgot to take verbose logs with the
--hls-prefer-nativeabove.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 commandpython 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.batAs 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 pycryptoas 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 installat 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.batAs 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.