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

Generic Extractor may get stuck on live streams #4032

Closed
ChrisK2 opened this issue Oct 26, 2014 · 1 comment
Closed

Generic Extractor may get stuck on live streams #4032

ChrisK2 opened this issue Oct 26, 2014 · 1 comment

Comments

@ChrisK2
Copy link

@ChrisK2 ChrisK2 commented Oct 26, 2014

Hi, it's me again (See #4003).

Since we have no way of knowing if youtube-dl can resolve an URL, we have no choice but to pass everything that looks like a web address to ytdl. This works fine most of the time, since even if our URL is a direct link to a media-file that doesn't require ytdl, the Generic Extractor will just return the URL as is.

The Problem starts however with HTTP live streams broadcasted by servers that don't support HEAD requests. In this case the Generic Extractor just starts downloading the stream ... forever.

We of course would like to avoid this somehow, since playing streams is a common use-case for mpv.

Example URL: http://ai-radio.org:8000/radio.opus

Possible solutions (in preferred order):

  • Have the Generic Extractor figure out what the fetched data is early (before transfer finished)
  • A way to disable the fallback when the HEAD request fails
  • Have the Generic Extractor stop downloading data after X bytes or Y seconds
  • A way to disable the entire Generic Extractor
@phihag phihag closed this in 23be51d Oct 26, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Oct 26, 2014

Thank you for the report. This has been fixed in youtube-dl 2014.10.26.

phihag added a commit that referenced this issue Oct 26, 2014
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.