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
Downloading youtube live broadcast using aria2c stops working for a long time #8212
Comments
yt-dlp is generating the list of fragment URLs that it will pass to aria2c. The problem is, the livestream is ongoing, so it will keep generating fragment URLs until the stream ends. And the already-generated fragment URLs may be expired by the time the stream ends. Basically, aria2c can't support It looks like there was a check added in I think we need to do something like this for a fix: diff --git a/yt_dlp/downloader/dash.py b/yt_dlp/downloader/dash.py
index 4328d739c..7a66867b6 100644
--- a/yt_dlp/downloader/dash.py
+++ b/yt_dlp/downloader/dash.py
@@ -15,12 +15,15 @@ class DashSegmentsFD(FragmentFD):
FD_NAME = 'dashsegments'
def real_download(self, filename, info_dict):
- if info_dict.get('is_live') and set(info_dict['protocol'].split('+')) != {'http_dash_segments_generator'}:
+ if set(info_dict['protocol'].split('+')) == {'http_dash_segments_generator'}:
+ real_downloader = None
+ elif info_dict.get('is_live'):
self.report_error('Live DASH videos are not supported')
+ else:
+ real_downloader = get_suitable_downloader(
+ info_dict, self.params, None, protocol='dash_frag_urls', to_stdout=(filename == '-'))
real_start = time.time()
- real_downloader = get_suitable_downloader(
- info_dict, self.params, None, protocol='dash_frag_urls', to_stdout=(filename == '-'))
requested_formats = [{**info_dict, **fmt} for fmt in info_dict.get('requested_formats', [])]
args = [] TL;DR: don't use aria2c with ongoing livestream |
Closes yt-dlp#8212 Authored by: bashonly
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Please make sure the question is worded well enough to be understood
Use aria2c to download youtube live broadcast but no response for more than 10 minutes
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: