excalibur-kvrv / m3u8-dl

A CLI program to download a video played using a m3u8 playlist. Download it here - https://pypi.org/project/m3u8dl/0.5.2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stream Reset error

chanduvardhan007 opened this issue · comments

Describe the bug
While i am running the main.py file by taking fmovies link the download process,video handling process and producer process are getting started but suddenly the process is terminated due to stream reset error "hyper.http20.exceptions.StreamResetError: (Stream forcefully closed)".

To Reproduce
Steps to reproduce the behavior:

  1. Go to online video streaming website "https://ww5.fmovie.sc/"
  2. Play online streaming video then right click on the page and click on inspect.
  3. Go to Network option and got to XHR, u can see several names.
    4.Click on .m3u8 extension link and on the right scroll down to copy the request headers to header.txt file in the project and save it
  4. Scroll up and copy the url and run > python main.py url -c
  5. See error

Expected behavior
what actually happens if there is no bug is the parser will parse all the links and download the chunks of the video in m3u8 format and later it is converted into mp4 format and into a single video.

Screenshots
Screenshot (81)

Desktop (please complete the following information):

  • OS: Windows
  • Browser : Chrome
  • Version Chrome: 83

After debugging the application, it appears the links are being parsed properly. This is an issue with one of the external libraries "hyper", two possible ways of fixing it is either wait till hyper adds support for latest version of "h2" library or wait till requests3 is released in which case hyper will no longer be required. I'll close this issue for now.

issue #9 will be used to solve this issue.