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.
Generic Extractor may get stuck on live streams #4032
Comments
|
Thank you for the report. This has been fixed in youtube-dl 2014.10.26. |
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.opusPossible solutions (in preferred order):